From b5f58fc0a7a3a6042fe7d7abc268291e4ce26b18 Mon Sep 17 00:00:00 2001 From: Carlos Pascual Date: Fri, 8 Apr 2022 09:52:23 +0200 Subject: [PATCH] Update black version to 22.3.0 CI started to fail due to an incompatibility between black 22.1.0 and click 8.1.0: See: https://github.com/psf/black/issues/2964 Use black 22.3.0 both for CI checks and for pre-commit --- .gitlab-ci.yml | 2 +- .pre-commit-config.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e067b4395..82985664d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -44,7 +44,7 @@ flake8_and_black: image: python:3.9-slim-bullseye needs: [] before_script: - - pip install flake8==3.9.2 black==22.1.0 + - pip install flake8==3.9.2 black==22.3.0 script: # check with flake8 - flake8 . diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f7d17f14a..e68fdf634 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/psf/black - rev: 22.1.0 + rev: 22.3.0 hooks: - id: black # It is recommended to specify the latest version of Python