Closed dylanpulver closed 4 weeks ago
The changes in this pull request modify the get_dependencies
function in the safety/scan/ecosystems/python/dependencies.py
file to include support for the FileType.PYPROJECT_TOML
in its conditional checks. This allows the function to process PYPROJECT_TOML
files when retrieving dependencies, alongside the previously supported file types. Additionally, a minor formatting change was made by adding a newline character after the last return statement. No other logic or error handling changes were introduced.
File Path | Change Summary |
---|---|
safety/scan/ecosystems/python/dependencies.py | Updated get_dependencies to include FileType.PYPROJECT_TOML in the conditional check; added newline at end. |
safety_schemas
dependency to ensure compatibility with the new support for pyproject.toml
, which is directly related to the modifications made in the get_dependencies
function to include FileType.PYPROJECT_TOML
.🐇 In the code where rabbits play,
New types of files join the fray.
Withpyproject.toml
now in sight,
Dependencies gather, oh what a delight!
A newline added, neat and bright,
Hopping forward, all feels right! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This PR adds support for pyproject.toml files into the safety CLI repo.
Summary by CodeRabbit
New Features
PYPROJECT_TOML
files in addition to existing file types.Style