On Friday, February 23, 2018, Nick Coghlan <ncogh...@gmail.com> wrote:
> On 23 February 2018 at 03:09, Eric Snow <ericsnowcurren...@gmail.com> > wrote: > > So, coupled with slow CI, linting failures were > > particularly onerous. We all got in the habit of locally running the > > linter frequently. IIRC, I even set up VIM to run the linter whenever > > I saved. > > For reindent.py, we used to have instructions for setting that up as a > local pre-commit hook in Mercurial. It may make sense to create > similar instructions for git (if we don't already have those > somewhere). A pre-commit hook with flake8, clang-format, and the requisite CPython style configs would be great. https://git-scm.com/book/gr/v2/Customizing-Git-Git-Hooks Batch and ad-hoc CLN commits to cleanup for style really muddle the git blame history. > > Cheers, > Nick. > > -- > Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia > _______________________________________________ > Python-Dev mailing list > Python-Dev@python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: https://mail.python.org/mailman/options/python-dev/ > wes.turner%40gmail.com >
_______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com