pre-commit is a great framework for applying consistent rules across a repository on every commit, in a way that's not very disruptive for contributors. When coupled with highly opinionated formatters (like black), it keeps diffs small and avoids any argument over stylistic disagreements.
In order to make these hooks' behavior as reproducible as possible, this branch moves linting/formatting commands into tox.ini. This branch also applies the black, flake8, and isort formatters across all files so that contributors have a reasonable baseline to work against. Reviewing one commit at a time might be easier than reviewing all at once.
pre-commit is a great framework for applying consistent rules across a repository on every commit, in a way that's not very disruptive for contributors. When coupled with highly opinionated formatters (like black), it keeps diffs small and avoids any argument over stylistic disagreements.
In order to make these hooks' behavior as reproducible as possible, this branch moves linting/formatting commands into
tox.ini
. This branch also applies the black, flake8, and isort formatters across all files so that contributors have a reasonable baseline to work against. Reviewing one commit at a time might be easier than reviewing all at once.