From c4aa1921d32cca435ef7d25b395709906e140521 Mon Sep 17 00:00:00 2001 From: Martijn Pieters Date: Mon, 28 Mar 2022 20:56:05 +0100 Subject: [PATCH] Upgrade black to 22.3.0 This release fixes the issues that required pinning click, so we can drop that pin again. --- .pre-commit-config.yaml | 5 +---- CHANGES/702.misc.rst | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 CHANGES/702.misc.rst diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 82d906872..7b0e05c81 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,13 +12,10 @@ repos: hooks: - id: isort - repo: https://github.com/psf/black - rev: '22.1.0' + rev: '22.3.0' hooks: - id: black language_version: python3 # Should be a command that runs python3.6+ - # Black misbehaved and broke when click 8.1.0 was released with an internal - # module removed. See https://github.com/psf/black/issues/2964 - additional_dependencies: ['click<8.1.0'] - repo: https://github.com/pre-commit/pre-commit-hooks rev: 'v4.0.1' hooks: diff --git a/CHANGES/702.misc.rst b/CHANGES/702.misc.rst new file mode 100644 index 000000000..bb84ada4e --- /dev/null +++ b/CHANGES/702.misc.rst @@ -0,0 +1,2 @@ +Updated pre-commit-hooks black to a newer release with a fix for black#2964, +dropping the need for a work-around.