pallets-eco / flask-debugtoolbar

A toolbar overlay for debugging Flask applications
https://flask-debugtoolbar.readthedocs.io
BSD 3-Clause "New" or "Revised" License
952 stars 146 forks source link

apply formatting and linting rules #258

Closed davidism closed 6 months ago

davidism commented 6 months ago

Using Ruff, apply Black formatting, as well as linting with pycodestyle, pyflakes, bugbear, isort, and pyupgrade rules. A pre-commit config is available to run this automatically on commit, do pre-commit install --install-hooks in your local repo. https://pre-commit.ci is enabled for this repo, meaning the checks will also run as part of CI and automatic fixes will be pushed to PRs. The tox style env is enabled by default and runs this as part of the tox suite.

jeffwidman commented 6 months ago

Nice! I'm totally stealing some of this config for a few other projects I work on...