Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: skip pyproject.toml unless it contains tool.poetry before ensuring lockfiles #6681

Merged
merged 1 commit into from
May 25, 2024

Conversation

maxgip
Copy link
Contributor

@maxgip maxgip commented May 22, 2024

Fixes Issue #5971

Description of Change

Even after this PR was merged I am encountering the issue found in #5971. When scanning a dependency with a pyproject.toml file that does not use Poetry, an exception is still thrown.

The changes in this PR check if "tool.poetry" exists in pyproject.toml before checking that a lockfile (poetry.lock, requirements.txt) exist so that we can return gracefully if Poetry is not present instead of throwing an exception.

Have test cases been added to cover the new functionality?

yes, but am open to adding more if needed

@boring-cyborg boring-cyborg bot added core changes to core tests test cases labels May 22, 2024
@jeremylong jeremylong added this to the 10.0 milestone May 23, 2024
@jeremylong jeremylong merged commit 6c0ac76 into jeremylong:main May 25, 2024
6 checks passed
@jeremylong
Copy link
Owner

Thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core changes to core tests test cases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants