Implement a pre-commit git hook to run pycodestyle #2095

Closed
opened 2025-12-29 17:22:14 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Nov 7, 2018).

Proposed Changes

Implement a pre-commit hook for git at .git/hooks/pre-commit that invokes pycodestyle prior to committing. The commit should fail if any warnings or errors are reported.

Justification

This will help cut down on CI tests which fail due to PEP8 violations.

Originally created by @jeremystretch on GitHub (Nov 7, 2018). ### Proposed Changes Implement a pre-commit hook for git at `.git/hooks/pre-commit` that invokes `pycodestyle` prior to committing. The commit should fail if any warnings or errors are reported. ### Justification This will help cut down on CI tests which fail due to PEP8 violations.
adam added the status: acceptedtype: housekeeping labels 2025-12-29 17:22:14 +01:00
adam closed this issue 2025-12-29 17:22:15 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2095