Class: Dependabot::Python::FileParser::PipfileFilesParser

Inherits:
Object
  • Object
show all
Defined in:
lib/dependabot/python/file_parser/pipfile_files_parser.rb

Constant Summary collapse

DEPENDENCY_GROUP_KEYS =
[
  {
    pipfile: "packages",
    lockfile: "default"
  },
  {
    pipfile: "dev-packages",
    lockfile: "develop"
  }
].freeze

Instance Method Summary collapse

Constructor Details

#initialize(dependency_files:) ⇒ PipfileFilesParser

Returns a new instance of PipfileFilesParser.



25
26
27
# File 'lib/dependabot/python/file_parser/pipfile_files_parser.rb', line 25

def initialize(dependency_files:)
  @dependency_files = dependency_files
end

Instance Method Details

#dependency_setObject



29
30
31
32
33
34
35
36
# File 'lib/dependabot/python/file_parser/pipfile_files_parser.rb', line 29

def dependency_set
  dependency_set = Dependabot::FileParsers::Base::DependencySet.new

  dependency_set += pipfile_dependencies
  dependency_set += pipfile_lock_dependencies

  dependency_set
end