From e188e78bddd686dd0197e7071c9ff7da8b41c7a8 Mon Sep 17 00:00:00 2001 From: Hugo Date: Tue, 23 Jun 2020 11:21:40 +0300 Subject: [PATCH] pre-commit autoupdate, show diff on failure, and force colour on GHA --- .pre-commit-config.yaml | 6 +++--- tox.ini | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8461ec4..da1e286 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/tox.ini b/tox.ini index f6e43d7..ecb5bd7 100644 --- a/tox.ini +++ b/tox.ini @@ -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