gtalarico / pyairtable

Python Api Client for Airtable
https://pyairtable.readthedocs.io
MIT License
765 stars 138 forks source link

Use pre-commit and tox, then apply black/flake8 to all files #239

Closed mesozoic closed 1 year ago

mesozoic commented 1 year ago

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.