Proposal to add pre-commit

2020-11-06 Thread smi...@gmail.com
Hi All I have opened a ticket[1] which proposes to add pre-commit[2] to Django, and wish to gather thoughts on it here. For anyone not familiar pre-commit checks for simple issues before each `git commit`. The aim is to try and catch format errors closer to the developer and therefore reduce

Re: Proposal to add pre-commit

2020-11-06 Thread Adam Johnson
Hi David I like pre-commit too. I think it would be a great addition. Your initial setup looks good - and perhaps we can add a few more hooks from pre-commit-hooks like check-case-conflict and check-json. One thing I prefer to do is use pre-commit to run binaries through "system" (e.g. [1]). This