pre-commit autoupdate, show diff on failure, and force colour on GHA

This commit is contained in:
Hugo 2020-06-23 11:21:40 +03:00
parent 158273e0ae
commit e188e78bdd
2 changed files with 5 additions and 4 deletions

View file

@ -1,6 +1,6 @@
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v2.4.4
rev: v2.6.1
hooks:
- id: pyupgrade
args: ["--py3-plus"]
@ -15,13 +15,13 @@ repos:
types: []
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.2
rev: 3.8.3
hooks:
- id: flake8
additional_dependencies: [flake8-2020, flake8-implicit-str-concat]
- repo: https://github.com/asottile/seed-isort-config
rev: v2.1.1
rev: v2.2.0
hooks:
- id: seed-isort-config

View file

@ -16,5 +16,6 @@ commands = {posargs}
[testenv:lint]
deps = pre-commit
commands = pre-commit run --all-files
commands = pre-commit run --all-files --show-diff-on-failure
skip_install = true
passenv = PRE_COMMIT_COLOR