Skip to content

Commit

Permalink
feature/pyproject-support (#625)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanpulver authored and SafetyQuincyF committed Oct 31, 2024
1 parent f1f85ec commit 9a8db03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions safety/scan/ecosystems/python/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,10 @@ def get_dependencies(f: InspectableFile) -> List[PythonDependency]:
return []

if f.file_type in [FileType.REQUIREMENTS_TXT, FileType.POETRY_LOCK,
FileType.PIPENV_LOCK]:
FileType.PIPENV_LOCK, FileType.PYPROJECT_TOML]:
return list(read_dependencies(f.file, resolve=True))

if f.file_type == FileType.VIRTUAL_ENVIRONMENT:
return list(read_virtual_environment_dependencies(f))

return []
return []

0 comments on commit 9a8db03

Please sign in to comment.