Skip to content

Update safety_check.py#63

Merged
Lucas-C merged 4 commits intoLucas-C:masterfrom
alsuarez:patch-1
Apr 28, 2025
Merged

Update safety_check.py#63
Lucas-C merged 4 commits intoLucas-C:masterfrom
alsuarez:patch-1

Conversation

@alsuarez
Copy link
Copy Markdown
Contributor

Fixes issue where the pre-commit hook fails when requirements.txt files are in a directory named "requirements" but do not contain "requirements" in their name.

@Lucas-C
Copy link
Copy Markdown
Owner

Lucas-C commented Apr 28, 2025

Hi @alsuarez

Thank you for your contribution 👍

Could you add a unit test covering this case in tests/safety_test.py as part of this PR, please?

@alsuarez
Copy link
Copy Markdown
Contributor Author

@Lucas-C Sure thing! I added the requested test to the PR; check it out.

@Lucas-C
Copy link
Copy Markdown
Owner

Lucas-C commented Apr 28, 2025

Thank you @alsuarez

Merging this now.

Thank you for your contribution 👍

@Lucas-C Lucas-C merged commit 3c0617a into Lucas-C:master Apr 28, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants