Skip to content

Commit

Permalink
feature/pyproject-support
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanpulver committed Oct 25, 2024
1 parent 8d610ff commit b75ff90
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 b75ff90

Please sign in to comment.