From ce292e59707c1067ca52fe021583d928759ad5f1 Mon Sep 17 00:00:00 2001 From: Leo Stanislas Date: Thu, 31 Mar 2022 13:51:53 -0400 Subject: [PATCH 1/2] Fix precommit bug with black. --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e602d9e4..19e2d5ba 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,3 +29,4 @@ repos: hooks: - id: black language_version: python + additional_dependencies: ['click==8.0.4'] From bd1e4527280d4629ceca8731d0863aa2c2bba78c Mon Sep 17 00:00:00 2001 From: Leo Stanislas Date: Thu, 31 Mar 2022 14:01:57 -0400 Subject: [PATCH 2/2] Fix precommit unauthenticated git protocol error. --- .pre-commit-config.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 19e2d5ba..89251e88 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: # - id: mdformat # name: (Markdown) Format with mdformat -- repo: git://github.com/pocc/pre-commit-hooks +- repo: https://github.com/pocc/pre-commit-hooks rev: v1.3.5 hooks: - id: clang-format @@ -25,8 +25,7 @@ repos: args: ["-i"] additional_dependencies: ["clang-format==12.0.1"] - repo: https://github.com/psf/black - rev: 22.1.0 + rev: 22.3.0 hooks: - id: black language_version: python - additional_dependencies: ['click==8.0.4']