Skip to content

docs: limit pre-commit hook to requirements files#1002

Open
gcomneno wants to merge 6 commits intopypa:mainfrom
gcomneno:contrib/issue-334-precommit-files
Open

docs: limit pre-commit hook to requirements files#1002
gcomneno wants to merge 6 commits intopypa:mainfrom
gcomneno:contrib/issue-334-precommit-files

Conversation

@gcomneno
Copy link

@gcomneno gcomneno commented Feb 14, 2026

Closes #334.

Updates the README pre-commit example to include a files filter so the pip-audit hook only runs when requirements files change.

@gcomneno
Copy link
Author

Note: I kept the regex intentionally simple for readability. If you’d prefer broader matching (e.g. or ), I can adjust it.

@gcomneno
Copy link
Author

Note: I kept the files regex intentionally simple for readability. If you’d prefer broader matching (e.g. requirements/.txt or requirements-.txt), I can adjust it.

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.

Better pre-commit hook: use of files

1 participant

Comments