From 4d4a111ab83205f810e038f9fd932ce2f8ce0bd6 Mon Sep 17 00:00:00 2001 From: mtkennerly Date: Mon, 10 May 2021 19:18:54 -0400 Subject: [PATCH] Pin Black pre-commit hook to 20.8b1 to avoid new minimum pre-commit requirement on Black stable --- .pre-commit-config.yaml | 53 +++++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1ed5cd6..5ea90d8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,26 +1,27 @@ -- repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.1.0 - hooks: - - id: trailing-whitespace - - id: end-of-file-fixer -- repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.1.6 - hooks: - - id: forbid-tabs -- repo: https://github.com/ambv/black - rev: stable - hooks: - - id: black -- repo: https://github.com/pre-commit/mirrors-mypy - rev: "v0.700" - hooks: - - id: mypy - args: - - --ignore-missing-imports -- repo: local - hooks: - - id: flake8 - name: flake8 - language: system - entry: poetry run flake8 - types: [python] +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.1.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - repo: https://github.com/Lucas-C/pre-commit-hooks + rev: v1.1.6 + hooks: + - id: forbid-tabs + - repo: https://github.com/ambv/black + rev: 20.8b1 + hooks: + - id: black + - repo: https://github.com/pre-commit/mirrors-mypy + rev: "v0.700" + hooks: + - id: mypy + args: + - --ignore-missing-imports + - repo: local + hooks: + - id: flake8 + name: flake8 + language: system + entry: poetry run flake8 + types: [python]