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.



27
28
29
# File 'lib/dependabot/python/file_parser/pipfile_files_parser.rb', line 27

def initialize(dependency_files:)
  @dependency_files = dependency_files
end

Instance Method Details

#dependency_setObject



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

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

  dependency_set += pipfile_dependencies
  dependency_set += pipfile_lock_dependencies

  dependency_set
end