From 2ddcf26eb44a99f263d77090386eac2f4292970e Mon Sep 17 00:00:00 2001 From: Leighton Pritchard Date: Thu, 27 May 2021 09:49:27 +0100 Subject: [PATCH] update black version in pre-commit As inidicated in psf/black#420 the mutable tag is not appropriate, so we change to pin a fixed version tag. Additionally, we remove the black version dependency from blacken-docs, and add blacken-docs to the requirements-dev.txt file. --- .pre-commit-config.yaml | 6 +++--- requirements-dev.txt | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 82e06ced..b50d86e1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,14 +1,14 @@ repos: - repo: https://github.com/psf/black - rev: stable + rev: 21.5b1 hooks: - id: black language_version: python3 - repo: https://github.com/asottile/blacken-docs - rev: v0.3.0 + rev: v1.10.0 hooks: - id: blacken-docs - additional_dependencies: [black==18.9b0] + additional_dependencies: [black] - repo: https://github.com/pre-commit/pre-commit-hooks rev: v1.2.3 hooks: diff --git a/requirements-dev.txt b/requirements-dev.txt index 0c3b0597..ba67624b 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,5 +1,6 @@ bandit black +blacken-docs codecov coverage doc8