pre-commit autoupdate, show diff on failure, and force colour on GHA
This commit is contained in:
parent
158273e0ae
commit
e188e78bdd
2 changed files with 5 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/asottile/pyupgrade
|
- repo: https://github.com/asottile/pyupgrade
|
||||||
rev: v2.4.4
|
rev: v2.6.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyupgrade
|
- id: pyupgrade
|
||||||
args: ["--py3-plus"]
|
args: ["--py3-plus"]
|
||||||
|
@ -15,13 +15,13 @@ repos:
|
||||||
types: []
|
types: []
|
||||||
|
|
||||||
- repo: https://gitlab.com/pycqa/flake8
|
- repo: https://gitlab.com/pycqa/flake8
|
||||||
rev: 3.8.2
|
rev: 3.8.3
|
||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
additional_dependencies: [flake8-2020, flake8-implicit-str-concat]
|
additional_dependencies: [flake8-2020, flake8-implicit-str-concat]
|
||||||
|
|
||||||
- repo: https://github.com/asottile/seed-isort-config
|
- repo: https://github.com/asottile/seed-isort-config
|
||||||
rev: v2.1.1
|
rev: v2.2.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: seed-isort-config
|
- id: seed-isort-config
|
||||||
|
|
||||||
|
|
3
tox.ini
3
tox.ini
|
@ -16,5 +16,6 @@ commands = {posargs}
|
||||||
|
|
||||||
[testenv:lint]
|
[testenv:lint]
|
||||||
deps = pre-commit
|
deps = pre-commit
|
||||||
commands = pre-commit run --all-files
|
commands = pre-commit run --all-files --show-diff-on-failure
|
||||||
skip_install = true
|
skip_install = true
|
||||||
|
passenv = PRE_COMMIT_COLOR
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue