#32165: Add pre-commit Hooks
-----------------------------------------+------------------------
Reporter: David Smith | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
To add support for pre-commit hooks via [https://pre-commit.com/ pre-
commit]. Specifically, I propose to add the flake8 and isort hooks, with
appropriate guidance added to the contributing docs.
The aim is to reduce the number of PRs opened where a 'simple' lint error
needs to be fixed, and in doing so we end up running the whole test suite
at Jenkins twice. I appreciate this won't stop all instances as folk will
have an extra step to install them; however, I think even if it stops the
occasional occurrence the addition will be worthwhile.
--
Ticket URL: <https://code.djangoproject.com/ticket/32165>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.66394de30e9fbeac2a1c09c11bb28fea%40djangoproject.com.