From 8f3044513bf695fdfb8c80f0c302253b3bdc5977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Gmach?= Date: Sun, 7 Nov 2021 09:37:27 +0100 Subject: [PATCH] update linter setup - run linters via `tox -e lint` --- .pre-commit-config.yaml | 4 ++-- CONTRIBUTING.rst | 2 +- tox.ini | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f30aba6..1dfbccd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/PyCQA/isort - rev: 5.9.3 + rev: 5.10.0 hooks: - id: isort @@ -13,7 +13,7 @@ repos: rev: 4.0.1 hooks: - id: flake8 - additional_dependencies: [flake8-bugbear==20.1.4] + additional_dependencies: [flake8-bugbear==21.9.2] - repo: https://github.com/asottile/pyupgrade rev: v2.29.0 diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 1b1fab2..3a28da7 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -34,6 +34,6 @@ Some examples. tox -e py38 # runs the tests for Python 3.8 - tox -e flake8 # runs the Flake8 linter + tox -e lint # runs various linters via pre-commit If there is anything unclear, please feel free to ask! diff --git a/tox.ini b/tox.ini index 97876d5..438ea89 100644 --- a/tox.ini +++ b/tox.ini @@ -21,7 +21,7 @@ description = generate coverage report commands = pytest --cov tests --cov flask_uploads --cov-report term-missing --cov-report html --cov-context=test --cov-fail-under=100 {posargs} -[testenv:pre-commit] +[testenv:lint] deps = pre-commit commands = pre-commit run --all-files --show-diff-on-failure