Class: Dependabot::Python::FileParser::PyprojectFilesParser
- Inherits:
-
Object
- Object
- Dependabot::Python::FileParser::PyprojectFilesParser
- Defined in:
- lib/dependabot/python/file_parser/pyproject_files_parser.rb
Constant Summary collapse
- POETRY_DEPENDENCY_TYPES =
%w(dependencies dev-dependencies).freeze
- UNSUPPORTED_DEPENDENCY_TYPES =
%w(git path url).freeze
Instance Method Summary collapse
- #dependency_set ⇒ Object
-
#initialize(dependency_files:) ⇒ PyprojectFilesParser
constructor
A new instance of PyprojectFilesParser.
Constructor Details
#initialize(dependency_files:) ⇒ PyprojectFilesParser
Returns a new instance of PyprojectFilesParser.
22 23 24 |
# File 'lib/dependabot/python/file_parser/pyproject_files_parser.rb', line 22 def initialize(dependency_files:) @dependency_files = dependency_files end |
Instance Method Details
#dependency_set ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/dependabot/python/file_parser/pyproject_files_parser.rb', line 26 def dependency_set dependency_set = Dependabot::FileParsers::Base::DependencySet.new dependency_set += pyproject_dependencies if using_poetry? || using_pep621? dependency_set += lockfile_dependencies if using_poetry? && lockfile dependency_set end |