Skip to content

Commit

Permalink
update linter setup
Browse files Browse the repository at this point in the history
- run linters via `tox -e lint`
  • Loading branch information
jugmac00 committed Nov 7, 2021
1 parent d43f874 commit 8f30445
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/PyCQA/isort
rev: 5.9.3
rev: 5.10.0
hooks:
- id: isort

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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!
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8f30445

Please sign in to comment.