From bf0da875cad9f34821c221c47fb46d304a664577 Mon Sep 17 00:00:00 2001 From: Roman Yurchak Date: Fri, 18 Jun 2021 10:56:21 +0200 Subject: [PATCH] MAINT Update pre-commit setup for black (#20292) --- .pre-commit-config.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 67a2996157234..db2c5084cbbb2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,14 +5,15 @@ repos: - id: check-yaml - id: end-of-file-fixer - id: trailing-whitespace +- repo: https://github.com/psf/black + rev: 21.6b0 + hooks: + - id: black - repo: https://gitlab.com/pycqa/flake8 - rev: 3.7.8 + rev: 3.9.2 hooks: - id: flake8 types: [file, python] - # only check for unused imports for now, as long as - # the code is not fully PEP8 compatible - args: [--select=F401] - repo: https://github.com/pre-commit/mirrors-mypy rev: v0.782 hooks: