Class: Dependabot::Python::FileParser::PyprojectFilesParser
- Inherits:
-
Object
- Object
- Dependabot::Python::FileParser::PyprojectFilesParser
- Extended by:
- T::Sig
- 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
25 26 27 |
# File 'lib/dependabot/python/file_parser/pyproject_files_parser.rb', line 25 def initialize(dependency_files:) @dependency_files = dependency_files end |
Instance Method Details
#dependency_set ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/dependabot/python/file_parser/pyproject_files_parser.rb', line 30 def dependency_set dependency_set = Dependabot::FileParsers::Base::DependencySet.new dependency_set += pyproject_dependencies if using_poetry? || using_pep621? || using_pep735? dependency_set += lockfile_dependencies if using_poetry? && lockfile dependency_set end |