From d8095a7713c0007a37cc1701294669b5831a1d8d Mon Sep 17 00:00:00 2001 From: Dylan Pulver <35541198+dylanpulver@users.noreply.github.com> Date: Fri, 25 Oct 2024 15:41:05 -0400 Subject: [PATCH] feature/pyproject-support (#625) --- safety/scan/ecosystems/python/dependencies.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/safety/scan/ecosystems/python/dependencies.py b/safety/scan/ecosystems/python/dependencies.py index 9be67c67..d4850dc6 100644 --- a/safety/scan/ecosystems/python/dependencies.py +++ b/safety/scan/ecosystems/python/dependencies.py @@ -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 [] \ No newline at end of file + return []