From 816facd1a01f7a5dabeb99af5013553c7704b13f Mon Sep 17 00:00:00 2001
From: Eric Berquist
Date: Fri, 18 Jun 2021 18:59:37 -0400
Subject: [PATCH 001/368] Add snakefmt for Snakemake files
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index be58a7f4..a169f713 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -192,3 +192,4 @@
- https://github.com/jonasbb/pre-commit-latex-hooks
- https://github.com/dfm/black_nbconvert
- https://github.com/crate-ci/typos
+- https://github.com/snakemake/snakefmt
From e9bd08d5345b31d085c2497ff5853dc20c0a7371 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Mon, 21 Jun 2021 09:14:55 -0700
Subject: [PATCH 002/368] Disable skjold
broken here: https://github.com/twu/skjold/pull/48/files#r655524560
---
all-repos.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index a169f713..04319f50 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -121,7 +121,7 @@
- https://github.com/dmitri-lerko/pre-commit-docker-kustomize
- https://github.com/perltidy/perltidy
- https://github.com/talos-systems/conform
-- https://github.com/twu/skjold
+# - https://github.com/twu/skjold
- https://github.com/commitizen-tools/commitizen
- https://github.com/gherynos/pre-commit-java
# - https://github.com/JamesWoolfenden/pre-commit
From 5e0a2d2af63978be453cb14407be64cd4a6c6a8a Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 21 Jun 2021 17:34:05 +0000
Subject: [PATCH 003/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v7.28.0 → v7.29.0](https://github.com/pre-commit/mirrors-eslint/compare/v7.28.0...v7.29.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index fa39c888..e49c52ed 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -40,7 +40,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v7.28.0
+ rev: v7.29.0
hooks:
- id: eslint
args: [--fix]
From 95a5c215cc330931fab8b082ed12232346f84120 Mon Sep 17 00:00:00 2001
From: twu
Date: Mon, 21 Jun 2021 23:34:21 +0200
Subject: [PATCH 004/368] Re-enable skjold.
---
all-repos.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index 04319f50..a169f713 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -121,7 +121,7 @@
- https://github.com/dmitri-lerko/pre-commit-docker-kustomize
- https://github.com/perltidy/perltidy
- https://github.com/talos-systems/conform
-# - https://github.com/twu/skjold
+- https://github.com/twu/skjold
- https://github.com/commitizen-tools/commitizen
- https://github.com/gherynos/pre-commit-java
# - https://github.com/JamesWoolfenden/pre-commit
From 8cd562c29abf40929ce8d1ece806d188c8b43426 Mon Sep 17 00:00:00 2001
From: Lennart Regebro
Date: Tue, 22 Jun 2021 16:09:58 +0200
Subject: [PATCH 005/368] Add Pyroma
Pyroma 3.2 now supports pre-commit.
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index a169f713..86d4b028 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -193,3 +193,4 @@
- https://github.com/dfm/black_nbconvert
- https://github.com/crate-ci/typos
- https://github.com/snakemake/snakefmt
+- https://github.com/regebro/pyroma
From 1b6501fdb49efa046e5831d51b170872bb11e15f Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 28 Jun 2021 17:37:16 +0000
Subject: [PATCH 006/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v0.902 → v0.910](https://github.com/pre-commit/mirrors-mypy/compare/v0.902...v0.910)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e49c52ed..ccfec7a0 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -35,7 +35,7 @@ repos:
hooks:
- id: add-trailing-comma
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v0.902
+ rev: v0.910
hooks:
- id: mypy
additional_dependencies: [types-all]
From 197151733dc92272609a090936c7ee6a4253bdc2 Mon Sep 17 00:00:00 2001
From: wwuck <301402+wwuck@users.noreply.github.com>
Date: Thu, 1 Jul 2021 15:16:57 +1000
Subject: [PATCH 007/368] Add hook for tox-ini-fmt
tox-ini-fmt supports pre-commit
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 86d4b028..f92dce79 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -194,3 +194,4 @@
- https://github.com/crate-ci/typos
- https://github.com/snakemake/snakefmt
- https://github.com/regebro/pyroma
+- https://github.com/tox-dev/tox-ini-fmt
From f28a4606c84cc58f6777bfb8db836806518d182f Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 5 Jul 2021 22:01:59 +0000
Subject: [PATCH 008/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/pyupgrade: v2.19.4 → v2.20.0](https://github.com/asottile/pyupgrade/compare/v2.19.4...v2.20.0)
- [github.com/pre-commit/mirrors-eslint: v7.29.0 → v7.30.0](https://github.com/pre-commit/mirrors-eslint/compare/v7.29.0...v7.30.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index ccfec7a0..9d711eea 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -23,7 +23,7 @@ repos:
- id: reorder-python-imports
files: install-local.py
- repo: https://github.com/asottile/pyupgrade
- rev: v2.19.4
+ rev: v2.20.0
hooks:
- id: pyupgrade
args: [--py36-plus]
@@ -40,7 +40,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v7.29.0
+ rev: v7.30.0
hooks:
- id: eslint
args: [--fix]
From 2e09308b53807652427902b2de3e4b823885deea Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 12 Jul 2021 23:20:39 +0000
Subject: [PATCH 009/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/pyupgrade: v2.20.0 → v2.21.0](https://github.com/asottile/pyupgrade/compare/v2.20.0...v2.21.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 9d711eea..c491b54a 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -23,7 +23,7 @@ repos:
- id: reorder-python-imports
files: install-local.py
- repo: https://github.com/asottile/pyupgrade
- rev: v2.20.0
+ rev: v2.21.0
hooks:
- id: pyupgrade
args: [--py36-plus]
From 15b2eef93b81300e1a0ba4361788ad43dc5aecac Mon Sep 17 00:00:00 2001
From: Janosh Riebesell
Date: Wed, 14 Jul 2021 08:37:28 +0200
Subject: [PATCH 010/368] all-repos.yaml add format-ipy-cells hook
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index f92dce79..a620594f 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -195,3 +195,4 @@
- https://github.com/snakemake/snakefmt
- https://github.com/regebro/pyroma
- https://github.com/tox-dev/tox-ini-fmt
+- https://github.com/janosh/format-ipy-cells
From 57b679656e8b3c55a00df9549aed2e8f785e23e7 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 19 Jul 2021 21:58:27 +0000
Subject: [PATCH 011/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/pyupgrade: v2.21.0 → v2.21.2](https://github.com/asottile/pyupgrade/compare/v2.21.0...v2.21.2)
- [github.com/pre-commit/mirrors-eslint: v7.30.0 → v7.31.0](https://github.com/pre-commit/mirrors-eslint/compare/v7.30.0...v7.31.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c491b54a..fac89319 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -23,7 +23,7 @@ repos:
- id: reorder-python-imports
files: install-local.py
- repo: https://github.com/asottile/pyupgrade
- rev: v2.21.0
+ rev: v2.21.2
hooks:
- id: pyupgrade
args: [--py36-plus]
@@ -40,7 +40,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v7.30.0
+ rev: v7.31.0
hooks:
- id: eslint
args: [--fix]
From 2f7016438a8cfe8093be81d5110ed6ed31005305 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 26 Jul 2021 17:50:20 +0000
Subject: [PATCH 012/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/reorder_python_imports: v2.5.0 → v2.6.0](https://github.com/asottile/reorder_python_imports/compare/v2.5.0...v2.6.0)
- [github.com/asottile/pyupgrade: v2.21.2 → v2.23.0](https://github.com/asottile/pyupgrade/compare/v2.21.2...v2.23.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index fac89319..090b8799 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -15,7 +15,7 @@ repos:
hooks:
- id: autopep8
- repo: https://github.com/asottile/reorder_python_imports
- rev: v2.5.0
+ rev: v2.6.0
hooks:
- id: reorder-python-imports
args: [--py36-plus]
@@ -23,7 +23,7 @@ repos:
- id: reorder-python-imports
files: install-local.py
- repo: https://github.com/asottile/pyupgrade
- rev: v2.21.2
+ rev: v2.23.0
hooks:
- id: pyupgrade
args: [--py36-plus]
From 07a812db37ec21c8d2a820d6be4b38d86179f15a Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 2 Aug 2021 18:00:31 +0000
Subject: [PATCH 013/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/pyupgrade: v2.23.0 → v2.23.1](https://github.com/asottile/pyupgrade/compare/v2.23.0...v2.23.1)
- [github.com/pre-commit/mirrors-eslint: v7.31.0 → v7.32.0](https://github.com/pre-commit/mirrors-eslint/compare/v7.31.0...v7.32.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 090b8799..fde8ae19 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -23,7 +23,7 @@ repos:
- id: reorder-python-imports
files: install-local.py
- repo: https://github.com/asottile/pyupgrade
- rev: v2.23.0
+ rev: v2.23.1
hooks:
- id: pyupgrade
args: [--py36-plus]
@@ -40,7 +40,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v7.31.0
+ rev: v7.32.0
hooks:
- id: eslint
args: [--fix]
From c8b6ed106bf1b01cd7d0bf38572b94977baceffd Mon Sep 17 00:00:00 2001
From: Tom Morelly
Date: Tue, 3 Aug 2021 10:33:33 +0200
Subject: [PATCH 014/368] add lint-gitlab-ci
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index a620594f..cde78e5c 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -196,3 +196,4 @@
- https://github.com/regebro/pyroma
- https://github.com/tox-dev/tox-ini-fmt
- https://github.com/janosh/format-ipy-cells
+- https://github.com/FalcoSuessgott/lint-gitlab-ci
From c96c5f832a6d3e329fa161f79193ca1f1c3f1d7e Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 9 Aug 2021 18:03:55 +0000
Subject: [PATCH 015/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/pyupgrade: v2.23.1 → v2.23.3](https://github.com/asottile/pyupgrade/compare/v2.23.1...v2.23.3)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index fde8ae19..4a41b11a 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -23,7 +23,7 @@ repos:
- id: reorder-python-imports
files: install-local.py
- repo: https://github.com/asottile/pyupgrade
- rev: v2.23.1
+ rev: v2.23.3
hooks:
- id: pyupgrade
args: [--py36-plus]
From 9cc3e5ae9bade95827b48e661a9888432142623c Mon Sep 17 00:00:00 2001
From: Julien Rottenberg
Date: Mon, 9 Aug 2021 19:23:56 -0700
Subject: [PATCH 016/368] Prepare frigate integration
https://github.com/rapidsai/frigate#pre-commit-hook
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index cde78e5c..171299cd 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -197,3 +197,4 @@
- https://github.com/tox-dev/tox-ini-fmt
- https://github.com/janosh/format-ipy-cells
- https://github.com/FalcoSuessgott/lint-gitlab-ci
+- https://github.com/rapidsai/frigate
From 2dacaf9b16b1031a2689ee27eb42717f21911a04 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 16 Aug 2021 17:55:00 +0000
Subject: [PATCH 017/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v7.32.0 → v8.0.0-beta.0](https://github.com/pre-commit/mirrors-eslint/compare/v7.32.0...v8.0.0-beta.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 4a41b11a..cebc6947 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -40,7 +40,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v7.32.0
+ rev: v8.0.0-beta.0
hooks:
- id: eslint
args: [--fix]
From 189a0d72a7b0d95aaff0cd1048bea18f86490553 Mon Sep 17 00:00:00 2001
From: Thibaud Chupin
Date: Fri, 20 Aug 2021 16:45:16 +0200
Subject: [PATCH 018/368] Add `xmllint` check
Add pre-commit hook to validate xml using xmllint.
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 171299cd..34ded808 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -198,3 +198,4 @@
- https://github.com/janosh/format-ipy-cells
- https://github.com/FalcoSuessgott/lint-gitlab-ci
- https://github.com/rapidsai/frigate
+- https://github.com/comkieffer/pre-commit-xmllint
From 69a21868c2564289f212b5e6df445f9f80026cca Mon Sep 17 00:00:00 2001
From: Thibaud Chupin
Date: Fri, 20 Aug 2021 19:34:13 +0200
Subject: [PATCH 019/368] Update repo url after renaming
Upstream repo renamed to not use the `pre-commit` name.
---
all-repos.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index 34ded808..5a9f76d2 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -198,4 +198,4 @@
- https://github.com/janosh/format-ipy-cells
- https://github.com/FalcoSuessgott/lint-gitlab-ci
- https://github.com/rapidsai/frigate
-- https://github.com/comkieffer/pre-commit-xmllint
+- https://github.com/comkieffer/xml-linter-hook
From 36642e9170050548053c9d6280c2bd036f144075 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 23 Aug 2021 18:12:08 +0000
Subject: [PATCH 020/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/pyupgrade: v2.23.3 → v2.24.0](https://github.com/asottile/pyupgrade/compare/v2.23.3...v2.24.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index cebc6947..774d8411 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -23,7 +23,7 @@ repos:
- id: reorder-python-imports
files: install-local.py
- repo: https://github.com/asottile/pyupgrade
- rev: v2.23.3
+ rev: v2.24.0
hooks:
- id: pyupgrade
args: [--py36-plus]
From 3ca6206602260e6595bb60bb912fc28107e63556 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Mon, 23 Aug 2021 14:35:51 -0400
Subject: [PATCH 021/368] Remove frigate
this is breaking the build:
```
pre_commit.clientlib.InvalidManifestError:
==> File /tmp/tmpbfwyy66_/repo/.pre-commit-hooks.yaml
==> At Hook(id='frigate')
==> At key: types
==> At index 0
=====> Type tag 'helm' is not recognized. Try upgrading identify and pre-commit?
```
---
all-repos.yaml | 1 -
1 file changed, 1 deletion(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index 5a9f76d2..7f4d7265 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -197,5 +197,4 @@
- https://github.com/tox-dev/tox-ini-fmt
- https://github.com/janosh/format-ipy-cells
- https://github.com/FalcoSuessgott/lint-gitlab-ci
-- https://github.com/rapidsai/frigate
- https://github.com/comkieffer/xml-linter-hook
From f714bc256d11d429b0f08c4837fe1b1570376eff Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 30 Aug 2021 18:36:21 +0000
Subject: [PATCH 022/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/pyupgrade: v2.24.0 → v2.25.0](https://github.com/asottile/pyupgrade/compare/v2.24.0...v2.25.0)
- [github.com/pre-commit/mirrors-eslint: v8.0.0-beta.0 → v8.0.0-beta.1](https://github.com/pre-commit/mirrors-eslint/compare/v8.0.0-beta.0...v8.0.0-beta.1)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 774d8411..1c780a15 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -23,7 +23,7 @@ repos:
- id: reorder-python-imports
files: install-local.py
- repo: https://github.com/asottile/pyupgrade
- rev: v2.24.0
+ rev: v2.25.0
hooks:
- id: pyupgrade
args: [--py36-plus]
@@ -40,7 +40,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.0.0-beta.0
+ rev: v8.0.0-beta.1
hooks:
- id: eslint
args: [--fix]
From 0cab2873a30767b3242f540553813a48cdc92176 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Mon, 6 Sep 2021 15:44:07 -0400
Subject: [PATCH 023/368] add docs for 2.15.0 features
---
sections/advanced.md | 24 +++++++++++++++++++++++-
sections/cli.md | 12 ++++++------
sections/new-hooks.md | 23 ++++++++++++++++++++++-
sections/plugins.md | 2 +-
template_lib.py | 22 +++++++++++++++++++---
5 files changed, 71 insertions(+), 12 deletions(-)
diff --git a/sections/advanced.md b/sections/advanced.md
index d2d8d804..443fa833 100644
--- a/sections/advanced.md
+++ b/sections/advanced.md
@@ -187,6 +187,28 @@ post-checkout hook from Git.
[post-checkout]: https://git-scm.com/docs/githooks#_post_checkout
+## pre-commit for rewriting
+
+_new in 2.15.0_: pre-commit can be used to manage [post-rewrite] hooks.
+
+To use `post-rewrite` hooks with pre-commit, run:
+
+```console
+$ pre-commit install --hook-type post-rewrite
+pre-commit installed at .git/hooks/post-rewrite
+```
+
+`post-rewrite` is triggered after git commands which modify history such as
+`git commit --amend` and `git rebase`.
+
+since `post-rewrite` does not operate on any files, you must set
+[`always_run: true`](#hooks-always_run).
+
+`git` tells the `post-rewrite` hook which command triggered the rewrite.
+`pre-commit` exposes this as `$PRE_COMMIT_REWRITE_COMMAND`.
+
+[post-rewrite]: https://git-scm.com/docs/githooks#_post_rewrite
+
## Confining hooks to run at certain stages
Since the [`default_stages`](#top_level-default_stages) top level configuration property of the
@@ -200,7 +222,7 @@ to run at the `push` stage.
Hooks can however be confined to a stage by setting the [`stages`](#config-stages)
property in your `.pre-commit-config.yaml`. The [`stages`](#config-stages) property
is an array and can contain any of `commit`, `merge-commit`, `push`, `prepare-commit-msg`,
-`commit-msg`, `post-checkout`, `post-commit`, `post-merge`, and `manual`.
+`commit-msg`, `post-checkout`, `post-commit`, `post-merge`, `post-rewrite`, and `manual`.
If you do not want to have hooks installed by default on the stage passed
during a `pre-commit install --hook-type ...`, please set the [`default_stages`](#top_level-default_stages)
diff --git a/sections/cli.md b/sections/cli.md
index a22752b1..7238dff5 100644
--- a/sections/cli.md
+++ b/sections/cli.md
@@ -95,8 +95,8 @@ Install hook script in a directory intended for use with
Options:
-- `-t {pre-commit,pre-merge-commit,pre-push,prepare-commit-msg,commit-msg,post-checkout,post-commit,post-merge}`,
- `--hook-type {pre-commit,pre-merge-commit,pre-push,prepare-commit-msg,commit-msg,post-checkout,post-commit,post-merge}`:
+- `-t {pre-commit,pre-merge-commit,pre-push,prepare-commit-msg,commit-msg,post-checkout,post-commit,post-merge,post-rewrite}`,
+ `--hook-type {pre-commit,pre-merge-commit,pre-push,prepare-commit-msg,commit-msg,post-checkout,post-commit,post-merge,post-rewrite}`:
which hook type to install.
Some example useful invocations:
@@ -132,8 +132,8 @@ Options:
- `--install-hooks`: Also install environments for all available hooks now
(rather than when they are first executed). See [`pre-commit
install-hooks`](#pre-commit-install-hooks).
-- `-t {pre-commit,pre-merge-commit,pre-push,prepare-commit-msg,commit-msg,post-checkout,post-commit,post-merge}`,
- `--hook-type {pre-commit,pre-merge-commit,pre-push,prepare-commit-msg,commit-msg,post-checkout,post-commit,post-merge}`:
+- `-t {pre-commit,pre-merge-commit,pre-push,prepare-commit-msg,commit-msg,post-checkout,post-commit,post-merge,post-rewrite}`,
+ `--hook-type {pre-commit,pre-merge-commit,pre-push,prepare-commit-msg,commit-msg,post-checkout,post-commit,post-merge,post-rewrite}`:
Specify which hook type to install.
- `--allow-missing-config`: Hook scripts will permit a missing configuration
file.
@@ -238,6 +238,6 @@ Uninstall the pre-commit script.
Options:
-- `-t {pre-commit,pre-merge-commit,pre-push,prepare-commit-msg,commit-msg,post-checkout,post-commit,post-merge}`,
- `--hook-type {pre-commit,pre-merge-commit,pre-push,prepare-commit-msg,commit-msg,post-checkout,post-commit,post-merge}`:
+- `-t {pre-commit,pre-merge-commit,pre-push,prepare-commit-msg,commit-msg,post-checkout,post-commit,post-merge,post-rewrite}`,
+ `--hook-type {pre-commit,pre-merge-commit,pre-push,prepare-commit-msg,commit-msg,post-checkout,post-commit,post-merge,post-rewrite}`:
which hook type to uninstall.
diff --git a/sections/new-hooks.md b/sections/new-hooks.md
index 181efcd1..280a517f 100644
--- a/sections/new-hooks.md
+++ b/sections/new-hooks.md
@@ -76,7 +76,7 @@ file that tells pre-commit:
=c= [`stages`](_#hooks-stages)
=c= (optional: default (all stages)) confines the hook to the `commit`, `merge-commit`,
`push`, `prepare-commit-msg`, `commit-msg`, `post-checkout`, `post-commit`,
- `post-merge`, or `manual` stage. See
+ `post-merge`, `post-rewrite`, or `manual` stage. See
[Confining hooks to run at certain stages](#confining-hooks-to-run-at-certain-stages).
```
@@ -140,6 +140,7 @@ Hello from foo hook!
- [conda](#conda)
- [coursier](#coursier)
+- [dart](#dart)
- [docker](#docker)
- [docker_image](#docker_image)
- [dotnet](#dotnet)
@@ -188,6 +189,26 @@ package manager installed. The specific coursier applications you install may de
on various versions of the JVM, consult the hooks' documentation for clarification.
It has been tested on linux.
+### dart
+
+_new in 2.15.0_
+
+The hook repository must have a `pubspec.yaml` -- this must contain an
+`executables` section which will list the binaries that will be available
+after installation. Match the [`entry`](#hooks-entry) to an executable.
+
+`pre-commit` will build each executable using `dart compile exe bin/{executable}.dart`.
+
+`language: dart` also supports [`additional_dependencies`](#config-additional_dependencies).
+to specify a version for a dependency, separate the package name by a `:`:
+
+```yaml
+ additional_dependencies: ['hello_world_dart:1.0.0']
+```
+
+__Support:__ `dart` hooks are known to work on any system which has the `dart`
+sdk installed. It has been tested on linux, macOS, and windows.
+
### docker
The hook repository must have a `Dockerfile`. It will be installed via
diff --git a/sections/plugins.md b/sections/plugins.md
index 0245648d..c4d07e49 100644
--- a/sections/plugins.md
+++ b/sections/plugins.md
@@ -143,7 +143,7 @@ repository's configuration.
=c= [`stages`](_#config-stages)
=c= (optional) confines the hook to the `commit`, `merge-commit`, `push`,
`prepare-commit-msg`, `commit-msg`, `post-checkout`, `post-commit`,
- `post-merge`, or `manual` stage. See
+ `post-merge`, `post-rewrite`, or `manual` stage. See
[Confining hooks to run at certain stages](#confining-hooks-to-run-at-certain-stages).
=r=
=c= [`additional_dependencies`](_#config-additional_dependencies)
diff --git a/template_lib.py b/template_lib.py
index e9e5ef80..138546f4 100644
--- a/template_lib.py
+++ b/template_lib.py
@@ -1,9 +1,11 @@
+from __future__ import annotations
+
+import html
import os
import re
import shlex
import subprocess
import sys
-from typing import Optional
import markdown_code_blocks
import markupsafe
@@ -90,7 +92,7 @@ def _render_cmd(code: str) -> str:
class Renderer(markdown_code_blocks.CodeRenderer):
def link(
- self, link: str, text: Optional[str], title: Optional[str],
+ self, link: str, text: str | None, title: str | None,
) -> str:
if link.startswith(SELF_LINK_PREFIX):
a_id = link[len(SELF_LINK_PREFIX):]
@@ -118,7 +120,21 @@ def codespan(self, text: str) -> str:
else:
return super().codespan(text)
- def block_code(self, code: str, info: Optional[str] = None) -> str:
+ def image(
+ self,
+ src: str,
+ alt: str = '',
+ title: str | None = None,
+ ) -> str:
+ return (
+ f'
'
+ )
+
+ def block_code(self, code: str, info: str | None = None) -> str:
copyable = False
if info is not None:
copyable_s = '#copyable'
From 7fbfa35b021fa5cb8af314b1375d573be7601ac9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ville=20Skytt=C3=A4?=
Date: Sun, 12 Sep 2021 22:29:25 +0300
Subject: [PATCH 024/368] Add pymarkdown
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 7f4d7265..6a36356a 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -198,3 +198,4 @@
- https://github.com/janosh/format-ipy-cells
- https://github.com/FalcoSuessgott/lint-gitlab-ci
- https://github.com/comkieffer/xml-linter-hook
+- https://github.com/jackdewinter/pymarkdown
From 6c85deb63fa9285d53126331afc2671c44cf95e9 Mon Sep 17 00:00:00 2001
From: Janosh Riebesell
Date: Mon, 13 Sep 2021 08:09:38 +0100
Subject: [PATCH 025/368] add cspell to all_repos.yaml
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 6a36356a..26f2769c 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -199,3 +199,4 @@
- https://github.com/FalcoSuessgott/lint-gitlab-ci
- https://github.com/comkieffer/xml-linter-hook
- https://github.com/jackdewinter/pymarkdown
+- https://github.com/streetsidesoftware/cspell
From 1efa407dc41d8f654998b6d73b3602741f395c96 Mon Sep 17 00:00:00 2001
From: Janosh Riebesell
Date: Mon, 13 Sep 2021 10:03:28 +0100
Subject: [PATCH 026/368] link correct repo (streetsidesoftware/cspell-cli#47)
---
all-repos.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index 26f2769c..cf12a69e 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -199,4 +199,4 @@
- https://github.com/FalcoSuessgott/lint-gitlab-ci
- https://github.com/comkieffer/xml-linter-hook
- https://github.com/jackdewinter/pymarkdown
-- https://github.com/streetsidesoftware/cspell
+- https://github.com/streetsidesoftware/cspell-cli
From 5ba80ff6228314355b7dbf6ed689e4396055ac6e Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 13 Sep 2021 18:51:36 +0000
Subject: [PATCH 027/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/pyupgrade: v2.25.0 → v2.26.0](https://github.com/asottile/pyupgrade/compare/v2.25.0...v2.26.0)
- [github.com/pre-commit/mirrors-eslint: v8.0.0-beta.1 → v8.0.0-beta.2](https://github.com/pre-commit/mirrors-eslint/compare/v8.0.0-beta.1...v8.0.0-beta.2)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 1c780a15..b6acc8a0 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -23,7 +23,7 @@ repos:
- id: reorder-python-imports
files: install-local.py
- repo: https://github.com/asottile/pyupgrade
- rev: v2.25.0
+ rev: v2.26.0
hooks:
- id: pyupgrade
args: [--py36-plus]
@@ -40,7 +40,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.0.0-beta.1
+ rev: v8.0.0-beta.2
hooks:
- id: eslint
args: [--fix]
From 932dd4805799b7e9840ee5e5f1c6241a866647ad Mon Sep 17 00:00:00 2001
From: Kilian Lieret
Date: Sun, 29 Aug 2021 13:29:00 +0200
Subject: [PATCH 028/368] Add jekyll-relative-url-hook
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 6a36356a..a5f2f62b 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -199,3 +199,4 @@
- https://github.com/FalcoSuessgott/lint-gitlab-ci
- https://github.com/comkieffer/xml-linter-hook
- https://github.com/jackdewinter/pymarkdown
+- https://github.com/klieret/jekyll-relative-url-check
From c7528a74d1ff2a5108ac11aaddd25cfba61fb4a9 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 27 Sep 2021 18:48:41 +0000
Subject: [PATCH 029/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/pyupgrade: v2.26.0 → v2.28.0](https://github.com/asottile/pyupgrade/compare/v2.26.0...v2.28.0)
- [github.com/pre-commit/mirrors-eslint: v8.0.0-beta.2 → v8.0.0-rc.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.0.0-beta.2...v8.0.0-rc.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b6acc8a0..f0231213 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -23,7 +23,7 @@ repos:
- id: reorder-python-imports
files: install-local.py
- repo: https://github.com/asottile/pyupgrade
- rev: v2.26.0
+ rev: v2.28.0
hooks:
- id: pyupgrade
args: [--py36-plus]
@@ -40,7 +40,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.0.0-beta.2
+ rev: v8.0.0-rc.0
hooks:
- id: eslint
args: [--fix]
From ce3fed0d6b7a07dc7ed65f600f72687cd8c612c2 Mon Sep 17 00:00:00 2001
From: Patrick Ruckstuhl
Date: Mon, 27 Sep 2021 20:29:00 +0000
Subject: [PATCH 030/368] Adding https://github.com/tarioch/pre-commit-flux
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index a5f2f62b..fe8ef272 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -200,3 +200,4 @@
- https://github.com/comkieffer/xml-linter-hook
- https://github.com/jackdewinter/pymarkdown
- https://github.com/klieret/jekyll-relative-url-check
+- https://github.com/tarioch/flux-check-hook
From 3134830c184bf24b6fdc1f9f9eefe7362ec9c195 Mon Sep 17 00:00:00 2001
From: Stephen Rosen
Date: Wed, 29 Sep 2021 20:09:16 +0000
Subject: [PATCH 031/368] Add sirosen/fix-ligatures to all-repos
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index fe8ef272..a6fed1b5 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -162,6 +162,7 @@
- https://github.com/PrincetonUniversity/blocklint
- https://github.com/sirosen/check-jsonschema
- https://github.com/sirosen/fix-smartquotes
+- https://github.com/sirosen/fix-ligatures
- https://github.com/snok/pep585-upgrade
- https://github.com/jendrikseipp/vulture
- https://github.com/mwouts/jupytext
From 4f6790fc0ccf5d9c4d9ee650815fda8ff92bad6f Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 4 Oct 2021 18:54:10 +0000
Subject: [PATCH 032/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/pyupgrade: v2.28.0 → v2.29.0](https://github.com/asottile/pyupgrade/compare/v2.28.0...v2.29.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f0231213..47c65843 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -23,7 +23,7 @@ repos:
- id: reorder-python-imports
files: install-local.py
- repo: https://github.com/asottile/pyupgrade
- rev: v2.28.0
+ rev: v2.29.0
hooks:
- id: pyupgrade
args: [--py36-plus]
From 438416ba9fa5b011000e276a64fcc93767d560e1 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Mon, 4 Oct 2021 19:54:21 -0400
Subject: [PATCH 033/368] add mirrors-clang-format
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index a6fed1b5..97bf4743 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -1,6 +1,7 @@
# This file is used to generate all-hooks.json
- https://github.com/pre-commit/pre-commit-hooks
- https://github.com/pre-commit/mirrors-autopep8
+- https://github.com/pre-commit/mirrors-clang-format
- https://github.com/pre-commit/mirrors-coffeelint
- https://github.com/pre-commit/mirrors-csslint
- https://github.com/pre-commit/mirrors-eslint
From 75eed8014ea9900d5b50497b975ed8245f26d682 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 5 Oct 2021 16:48:20 +0000
Subject: [PATCH 034/368] [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---
all-repos.yaml | 1 -
1 file changed, 1 deletion(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index afb2312a..46e988fd 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -204,4 +204,3 @@
- https://github.com/klieret/jekyll-relative-url-check
- https://github.com/tarioch/flux-check-hook
- https://github.com/streetsidesoftware/cspell-cli
-
From 29b450a99f8653e1fd0364ea739737cffbd4e3ad Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 11 Oct 2021 18:55:15 +0000
Subject: [PATCH 035/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/PyCQA/flake8: 3.9.2 → 4.0.1](https://github.com/PyCQA/flake8/compare/3.9.2...4.0.1)
- [github.com/pre-commit/mirrors-mypy: v0.910 → v0.910-1](https://github.com/pre-commit/mirrors-mypy/compare/v0.910...v0.910-1)
- [github.com/pre-commit/mirrors-eslint: v8.0.0-rc.0 → v8.0.0-1](https://github.com/pre-commit/mirrors-eslint/compare/v8.0.0-rc.0...v8.0.0-1)
---
.pre-commit-config.yaml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 47c65843..bbddccad 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -7,7 +7,7 @@ repos:
- id: check-yaml
- id: debug-statements
- repo: https://github.com/PyCQA/flake8
- rev: 3.9.2
+ rev: 4.0.1
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-autopep8
@@ -35,12 +35,12 @@ repos:
hooks:
- id: add-trailing-comma
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v0.910
+ rev: v0.910-1
hooks:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.0.0-rc.0
+ rev: v8.0.0-1
hooks:
- id: eslint
args: [--fix]
From 956173b445dc0778b81a111165c3e9c692083e98 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 18 Oct 2021 18:39:16 +0000
Subject: [PATCH 036/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.0.0-1 → v8.0.1](https://github.com/pre-commit/mirrors-eslint/compare/v8.0.0-1...v8.0.1)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index bbddccad..115700a3 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -40,7 +40,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.0.0-1
+ rev: v8.0.1
hooks:
- id: eslint
args: [--fix]
From b69b5bec72887d43c37f20c798c26510ba18b4a6 Mon Sep 17 00:00:00 2001
From: Julien Rottenberg
Date: Sat, 25 Sep 2021 12:52:26 -0700
Subject: [PATCH 037/368] helm docs generators
---
all-repos.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 46e988fd..bd4df59d 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -204,3 +204,5 @@
- https://github.com/klieret/jekyll-relative-url-check
- https://github.com/tarioch/flux-check-hook
- https://github.com/streetsidesoftware/cspell-cli
+- https://github.com/rapidsai/frigate
+- https://github.com/norwoodj/helm-docs
From c12820fa00107f8d6a274b15f9f135774e778d8c Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Sat, 23 Oct 2021 13:23:57 -0400
Subject: [PATCH 038/368] replace exit(main()) with raise SystemExit(main())
Committed via https://github.com/asottile/all-repos
---
install-local.py | 2 +-
make_all_hooks.py | 2 +-
make_templates.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/install-local.py b/install-local.py
index 925cf4bf..054956d1 100644
--- a/install-local.py
+++ b/install-local.py
@@ -123,4 +123,4 @@ def main():
if __name__ == '__main__':
- exit(main())
+ raise SystemExit(main())
diff --git a/make_all_hooks.py b/make_all_hooks.py
index 63106c20..54b0f406 100644
--- a/make_all_hooks.py
+++ b/make_all_hooks.py
@@ -52,4 +52,4 @@ def main() -> int:
if __name__ == '__main__':
- exit(main())
+ raise SystemExit(main())
diff --git a/make_templates.py b/make_templates.py
index 8b592b1d..03be4e90 100644
--- a/make_templates.py
+++ b/make_templates.py
@@ -77,4 +77,4 @@ def main() -> int:
if __name__ == '__main__':
- exit(main())
+ raise SystemExit(main())
From 856c692661a6e49c01f8ce71a3ea63e938ee18d5 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 25 Oct 2021 18:58:18 +0000
Subject: [PATCH 039/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/add-trailing-comma: v2.1.0 → v2.2.0](https://github.com/asottile/add-trailing-comma/compare/v2.1.0...v2.2.0)
- [github.com/pre-commit/mirrors-eslint: v8.0.1 → v8.1.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.0.1...v8.1.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 115700a3..edd4426f 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -31,7 +31,7 @@ repos:
- id: pyupgrade
files: install-local.py
- repo: https://github.com/asottile/add-trailing-comma
- rev: v2.1.0
+ rev: v2.2.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/pre-commit/mirrors-mypy
@@ -40,7 +40,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.0.1
+ rev: v8.1.0
hooks:
- id: eslint
args: [--fix]
From 382abeda8acc09dd65177cfe866f8f267089224a Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Mon, 25 Oct 2021 18:49:07 -0400
Subject: [PATCH 040/368] specify `require_serial: true` for pylint to prevent
fork bomb
---
sections/advanced.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/sections/advanced.md b/sections/advanced.md
index 443fa833..e881b043 100644
--- a/sections/advanced.md
+++ b/sections/advanced.md
@@ -325,6 +325,7 @@ Here's an example configuration with a few `local` hooks:
entry: pylint
language: system
types: [python]
+ require_serial: true
- id: check-x
name: Check X
entry: ./bin/check-x.sh
From 84ac8ab7c2688bee8199210e839f9f7ca28b934e Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Fri, 5 Nov 2021 06:04:48 -0700
Subject: [PATCH 041/368] remove tflint
upstream deleted the configuration in response to a bug :/
---
all-repos.yaml | 1 -
1 file changed, 1 deletion(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index bd4df59d..9c9a367b 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -168,7 +168,6 @@
- https://github.com/jendrikseipp/vulture
- https://github.com/mwouts/jupytext
- https://github.com/ejba/pre-commit-maven
-- https://github.com/terraform-linters/tflint
- https://github.com/tfsec/tfsec
- https://github.com/yoheimuta/protolint
- https://github.com/hadolint/hadolint
From af6b922b02242445fb8002b6df365c4116a6c802 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 8 Nov 2021 19:25:47 +0000
Subject: [PATCH 042/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.1.0 → v8.2.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.1.0...v8.2.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index edd4426f..745ffb13 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -40,7 +40,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.1.0
+ rev: v8.2.0
hooks:
- id: eslint
args: [--fix]
From 944c90a35293c08a670ec41e5282af2bae50c762 Mon Sep 17 00:00:00 2001
From: Ruairidh MacLeod
Date: Sat, 13 Nov 2021 12:03:28 +0000
Subject: [PATCH 043/368] add sqlfluff hook
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 9c9a367b..7daf4689 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -205,3 +205,4 @@
- https://github.com/streetsidesoftware/cspell-cli
- https://github.com/rapidsai/frigate
- https://github.com/norwoodj/helm-docs
+- https://github.com/sqlfluff/sqlfluff
From 264838702d87b2e32ba1dfa1aaab595e70a16cc1 Mon Sep 17 00:00:00 2001
From: Adam Johnson
Date: Mon, 15 Nov 2021 11:14:20 +0000
Subject: [PATCH 044/368] Add adamchainz/pre-commit-dprint mirror
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 7daf4689..3d723e73 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -206,3 +206,4 @@
- https://github.com/rapidsai/frigate
- https://github.com/norwoodj/helm-docs
- https://github.com/sqlfluff/sqlfluff
+- https://github.com/adamchainz/pre-commit-dprint
From e2503e54b6880b27e8283c513eb45ef0dc4563e0 Mon Sep 17 00:00:00 2001
From: Adam Johnson
Date: Tue, 16 Nov 2021 10:01:15 +0000
Subject: [PATCH 045/368] Set Git merge=union for all-repos.yaml
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This should prevent conflicts from parallel PR’s like in #580. We’ve done this for [Django’s release notes](https://github.com/django/django/blob/12fe3224f5086161462faf614cad91f3fad32e78/.gitattributes#L7) for a while.
---
.gitattributes | 1 +
1 file changed, 1 insertion(+)
create mode 100644 .gitattributes
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 00000000..333300d0
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+all-repos.yaml merge=union
From ffe34826c2e5dcac871a6b2d17a3d12416ac5c42 Mon Sep 17 00:00:00 2001
From: Stephen Rosen
Date: Wed, 17 Nov 2021 06:15:49 +0000
Subject: [PATCH 046/368] Add `texthooks` project, remove hooks it replaces
---
all-repos.yaml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index 3d723e73..82b47cb1 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -162,8 +162,7 @@
- https://github.com/ecugol/pre-commit-hooks-django
- https://github.com/PrincetonUniversity/blocklint
- https://github.com/sirosen/check-jsonschema
-- https://github.com/sirosen/fix-smartquotes
-- https://github.com/sirosen/fix-ligatures
+- https://github.com/sirosen/texthooks
- https://github.com/snok/pep585-upgrade
- https://github.com/jendrikseipp/vulture
- https://github.com/mwouts/jupytext
From 55413823a9027ab59c1f01179739b65539ea04c3 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Wed, 17 Nov 2021 13:25:35 -0500
Subject: [PATCH 047/368] Remove commented out and broken repos (devopshq was
deleted)
---
all-repos.yaml | 5 -----
1 file changed, 5 deletions(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index 82b47cb1..8ec1295a 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -65,7 +65,6 @@
- https://github.com/mattlqx/pre-commit-ruby
- https://github.com/mattlqx/pre-commit-sign
- https://github.com/mattlqx/pre-commit-search-and-replace
-# - https://github.com/openstack-dev/bashate
- https://github.com/pryorda/dockerfilelint-precommit-hooks
- https://github.com/alessandrojcm/commitlint-pre-commit-hook
- https://github.com/henryykt/pre-commit-perl
@@ -105,14 +104,12 @@
- https://github.com/codingjoe/relint
- https://github.com/nix-community/nixpkgs-fmt
- https://github.com/d6e/beancount-check
-# - https://github.com/thg-consulting/inspectortiger
- https://gitlab.com/iamlikeme/nbhooks
- https://github.com/Vimjas/vint
- https://github.com/eschulte/lisp-format
- https://github.com/shellcheck-py/shellcheck-py
- https://github.com/APIDevTools/swagger-cli
- https://github.com/kynan/nbstripout
-- https://gitlab.com/devopshq/gitlab-ci-linter
- https://github.com/bmorcos/pre-commit-hooks-cpp
- https://github.com/igorshubovych/markdownlint-cli
- https://github.com/TekWizely/pre-commit-golang
@@ -125,7 +122,6 @@
- https://github.com/twu/skjold
- https://github.com/commitizen-tools/commitizen
- https://github.com/gherynos/pre-commit-java
-# - https://github.com/JamesWoolfenden/pre-commit
- https://github.com/lietu/go-pre-commit
- https://github.com/macisamuele/language-formatters-pre-commit-hooks
- https://github.com/jlebar/pre-commit-hooks
@@ -135,7 +131,6 @@
- https://github.com/hcodes/yaspeller
- https://github.com/maltzj/google-style-precommit-hook
- https://github.com/jvstein/pre-commit-dotnet-format
-# - https://github.com/hakancelik96/unimport
- https://github.com/PeterMosmans/jenkinslint
- https://github.com/nicklockwood/SwiftFormat
- https://github.com/executablebooks/mdformat
From cd59b76871a46c209cc92bf97ce934158faf8fa1 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Thu, 18 Nov 2021 07:30:15 -0800
Subject: [PATCH 048/368] Remove mention of install-local.py
---
sections/install.md | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/sections/install.md b/sections/install.md
index c114c049..79129cf0 100644
--- a/sections/install.md
+++ b/sections/install.md
@@ -7,16 +7,6 @@ Using pip:
pip install pre-commit
```
-Non-administrative installation:
-
-- _to upgrade: run again, to uninstall: pass `uninstall` to python_
-- _does not work on platforms without symlink support (windows)_
-
-
-```bash
-curl https://pre-commit.com/install-local.py | python -
-```
-
In a python project, add the following to your requirements.txt (or
requirements-dev.txt):
From a2780760026f6cd111e8835f6b2020d6790673d6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ville=20Skytt=C3=A4?=
Date: Sun, 21 Nov 2021 09:48:00 +0200
Subject: [PATCH 049/368] Add scop/pre-commit-shfmt
The major difference of this compared to other shfmt hooks listed here
is that this one actually installs shfmt (or uses a Docker image,
user's choice), whereas others currently here require it to be
installed separately.
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 8ec1295a..748430a3 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -201,3 +201,4 @@
- https://github.com/norwoodj/helm-docs
- https://github.com/sqlfluff/sqlfluff
- https://github.com/adamchainz/pre-commit-dprint
+- https://github.com/scop/pre-commit-shfmt
From a569075445ef0ee8973c599321c7b009d14e3c02 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 22 Nov 2021 19:52:40 +0000
Subject: [PATCH 050/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/pyupgrade: v2.29.0 → v2.29.1](https://github.com/asottile/pyupgrade/compare/v2.29.0...v2.29.1)
- [github.com/asottile/add-trailing-comma: v2.2.0 → v2.2.1](https://github.com/asottile/add-trailing-comma/compare/v2.2.0...v2.2.1)
- [github.com/pre-commit/mirrors-eslint: v8.2.0 → v8.3.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.2.0...v8.3.0)
---
.pre-commit-config.yaml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 745ffb13..09a949d2 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -23,7 +23,7 @@ repos:
- id: reorder-python-imports
files: install-local.py
- repo: https://github.com/asottile/pyupgrade
- rev: v2.29.0
+ rev: v2.29.1
hooks:
- id: pyupgrade
args: [--py36-plus]
@@ -31,7 +31,7 @@ repos:
- id: pyupgrade
files: install-local.py
- repo: https://github.com/asottile/add-trailing-comma
- rev: v2.2.0
+ rev: v2.2.1
hooks:
- id: add-trailing-comma
- repo: https://github.com/pre-commit/mirrors-mypy
@@ -40,7 +40,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.2.0
+ rev: v8.3.0
hooks:
- id: eslint
args: [--fix]
From a3eacbd38fc537f0fc03c56ffc7efa2137eca7d6 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Tue, 23 Nov 2021 11:25:08 -0500
Subject: [PATCH 051/368] Use org-default .github/FUNDING.yml
Committed via https://github.com/asottile/all-repos
---
.github/FUNDING.yml | 2 --
1 file changed, 2 deletions(-)
delete mode 100644 .github/FUNDING.yml
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
deleted file mode 100644
index 9408e44d..00000000
--- a/.github/FUNDING.yml
+++ /dev/null
@@ -1,2 +0,0 @@
-github: asottile
-open_collective: pre-commit
From a40ed5a3fba92a9866d8bdebe8ebdea72942f53c Mon Sep 17 00:00:00 2001
From: Aleksey Burov
Date: Wed, 24 Nov 2021 17:45:51 +0700
Subject: [PATCH 052/368] Add devopshq/gitlab-ci-linter
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 748430a3..148cd90e 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -110,6 +110,7 @@
- https://github.com/shellcheck-py/shellcheck-py
- https://github.com/APIDevTools/swagger-cli
- https://github.com/kynan/nbstripout
+- https://gitlab.com/devopshq/gitlab-ci-linter
- https://github.com/bmorcos/pre-commit-hooks-cpp
- https://github.com/igorshubovych/markdownlint-cli
- https://github.com/TekWizely/pre-commit-golang
From 72a134875e232ac5356b65806364d5cbacd0fe17 Mon Sep 17 00:00:00 2001
From: Blank Spruce <32396809+BlankSpruce@users.noreply.github.com>
Date: Thu, 25 Nov 2021 15:50:54 +0100
Subject: [PATCH 053/368] Add gersemi CMake formatter
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 148cd90e..5a03f26f 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -203,3 +203,4 @@
- https://github.com/sqlfluff/sqlfluff
- https://github.com/adamchainz/pre-commit-dprint
- https://github.com/scop/pre-commit-shfmt
+- https://github.com/BlankSpruce/gersemi
From 63ef78be38da86110a93a5935c8ae8e740b36b81 Mon Sep 17 00:00:00 2001
From: Hannes Ljungberg
Date: Wed, 1 Dec 2021 10:55:05 +0100
Subject: [PATCH 054/368] Add SwiftLint
https://github.com/realm/SwiftLint/pull/3714
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 5a03f26f..963522b5 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -204,3 +204,4 @@
- https://github.com/adamchainz/pre-commit-dprint
- https://github.com/scop/pre-commit-shfmt
- https://github.com/BlankSpruce/gersemi
+- https://github.com/realm/SwiftLint
From 438c88496cd2fb641a9b983023b3233be2b79550 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Wed, 1 Dec 2021 08:57:09 -0800
Subject: [PATCH 055/368] updates for 2.16.0
---
sections/new-hooks.md | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sections/new-hooks.md b/sections/new-hooks.md
index 280a517f..d42d0e7d 100644
--- a/sections/new-hooks.md
+++ b/sections/new-hooks.md
@@ -45,6 +45,10 @@ file that tells pre-commit:
=c= [`always_run`](_#hooks-always_run)
=c= (optional: default `false`) if `true` this hook will run even if there
are no matching files.
+=r=
+ =c= [`fail_fast`'](_#hooks-fail_fast)
+ =c= (optional: default `false`) if `true` pre-commit will stop running
+ hooks if this hook fails. _new in 2.16.0_.
=r=
=c= [`verbose`](_#hooks-verbose)
=c= (optional) if `true`, forces the output of the hook to be printed even when
From 812fb0ccb8805ee19873cce52f8fb9992ee47e5e Mon Sep 17 00:00:00 2001
From: Ben Mares
Date: Fri, 3 Dec 2021 23:56:11 +0100
Subject: [PATCH 056/368] Add check-json5 to all-repos.yaml
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 963522b5..1ad69b39 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -205,3 +205,4 @@
- https://github.com/scop/pre-commit-shfmt
- https://github.com/BlankSpruce/gersemi
- https://github.com/realm/SwiftLint
+- https://gitlab.com/bmares/pre-commit-check-json5
From 0f9d134620e3d628e69830c9936d1e12f7e73317 Mon Sep 17 00:00:00 2001
From: Ben Mares
Date: Sat, 4 Dec 2021 00:18:55 +0100
Subject: [PATCH 057/368] =?UTF-8?q?Rename=20hook=20pre-commit-check-json5?=
=?UTF-8?q?=20=E2=86=92=20check-json5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
all-repos.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index 1ad69b39..f1e199eb 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -205,4 +205,4 @@
- https://github.com/scop/pre-commit-shfmt
- https://github.com/BlankSpruce/gersemi
- https://github.com/realm/SwiftLint
-- https://gitlab.com/bmares/pre-commit-check-json5
+- https://gitlab.com/bmares/check-json5
From b1d431616da642c85e4e4974d3b73a2a7b40cf3f Mon Sep 17 00:00:00 2001
From: Johan K
Date: Wed, 14 Apr 2021 13:01:31 +0200
Subject: [PATCH 058/368] Add Dansabel Ansible linter
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index f1e199eb..c960e4e9 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -206,3 +206,4 @@
- https://github.com/BlankSpruce/gersemi
- https://github.com/realm/SwiftLint
- https://gitlab.com/bmares/check-json5
+- https://github.com/semaphor-dk/dansabel
From 6d3308b29c5d5b02a55d3317c0427ea2c6625e23 Mon Sep 17 00:00:00 2001
From: Jorgen Phillips
Date: Mon, 6 Dec 2021 13:57:22 -0600
Subject: [PATCH 059/368] Fix typo in new-hooks.md
Remove the unnecessary `'` symbol
---
sections/new-hooks.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sections/new-hooks.md b/sections/new-hooks.md
index d42d0e7d..47c5c284 100644
--- a/sections/new-hooks.md
+++ b/sections/new-hooks.md
@@ -46,7 +46,7 @@ file that tells pre-commit:
=c= (optional: default `false`) if `true` this hook will run even if there
are no matching files.
=r=
- =c= [`fail_fast`'](_#hooks-fail_fast)
+ =c= [`fail_fast`](_#hooks-fail_fast)
=c= (optional: default `false`) if `true` pre-commit will stop running
hooks if this hook fails. _new in 2.16.0_.
=r=
From 8bc33afb7114faa5c62e2371588de3e0cb0e5eeb Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 6 Dec 2021 20:05:03 +0000
Subject: [PATCH 060/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.3.0 → v8.4.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.3.0...v8.4.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 09a949d2..bdfbc66f 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -40,7 +40,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.3.0
+ rev: v8.4.0
hooks:
- id: eslint
args: [--fix]
From 4f20e0600cfbf64652e83ab88f2de922e7a39825 Mon Sep 17 00:00:00 2001
From: Adam Johnson
Date: Thu, 9 Dec 2021 17:19:29 +0000
Subject: [PATCH 061/368] Add adamchainz/pre-commit-oxipng mirror
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index c960e4e9..209644ad 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -207,3 +207,4 @@
- https://github.com/realm/SwiftLint
- https://gitlab.com/bmares/check-json5
- https://github.com/semaphor-dk/dansabel
+- https://github.com/adamchainz/pre-commit-oxipng
From abfe8fb36f12c0370cea0234838c3b721f5fbe0f Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Thu, 9 Dec 2021 12:34:35 -0500
Subject: [PATCH 062/368] Revert "Set Git merge=union for all-repos.yaml"
---
.gitattributes | 1 -
1 file changed, 1 deletion(-)
delete mode 100644 .gitattributes
diff --git a/.gitattributes b/.gitattributes
deleted file mode 100644
index 333300d0..00000000
--- a/.gitattributes
+++ /dev/null
@@ -1 +0,0 @@
-all-repos.yaml merge=union
From e29e273d381ce65baee868a239df0b243247f74d Mon Sep 17 00:00:00 2001
From: Sofien <45047538+SofienM@users.noreply.github.com>
Date: Thu, 9 Dec 2021 16:06:43 +0100
Subject: [PATCH 063/368] Add ggshield hook
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 209644ad..c13565d2 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -208,3 +208,4 @@
- https://gitlab.com/bmares/check-json5
- https://github.com/semaphor-dk/dansabel
- https://github.com/adamchainz/pre-commit-oxipng
+- https://github.com/gitguardian/gg-shield
From 058b7102f9dff8f2850d0ea9ece72a585337823f Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 13 Dec 2021 19:05:04 +0000
Subject: [PATCH 064/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.4.0 → v8.4.1](https://github.com/pre-commit/mirrors-eslint/compare/v8.4.0...v8.4.1)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index bdfbc66f..ccbe752a 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -40,7 +40,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.4.0
+ rev: v8.4.1
hooks:
- id: eslint
args: [--fix]
From 3caf735a4e2f8a802dbaa81c74d14f6b555e37f4 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 20 Dec 2021 19:42:16 +0000
Subject: [PATCH 065/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v0.910-1 → v0.920](https://github.com/pre-commit/mirrors-mypy/compare/v0.910-1...v0.920)
- [github.com/pre-commit/mirrors-eslint: v8.4.1 → v8.5.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.4.1...v8.5.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index ccbe752a..1d054942 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -35,12 +35,12 @@ repos:
hooks:
- id: add-trailing-comma
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v0.910-1
+ rev: v0.920
hooks:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.4.1
+ rev: v8.5.0
hooks:
- id: eslint
args: [--fix]
From fe26860bc7eec1f849a84b88030a98aaf4eb2396 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 27 Dec 2021 20:06:34 +0000
Subject: [PATCH 066/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.0.1 → v4.1.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.0.1...v4.1.0)
- [github.com/pre-commit/mirrors-mypy: v0.920 → v0.930](https://github.com/pre-commit/mirrors-mypy/compare/v0.920...v0.930)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 1d054942..0a012a54 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v4.0.1
+ rev: v4.1.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
@@ -35,7 +35,7 @@ repos:
hooks:
- id: add-trailing-comma
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v0.920
+ rev: v0.930
hooks:
- id: mypy
additional_dependencies: [types-all]
From 3733cb845cd941a76d5be7d45e15963b6ac08476 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Fri, 31 Dec 2021 18:20:45 -0800
Subject: [PATCH 067/368] remove link to 0.x compatibility guide
---
sections/advanced.md | 3 ---
1 file changed, 3 deletions(-)
diff --git a/sections/advanced.md b/sections/advanced.md
index e881b043..fe11cece 100644
--- a/sections/advanced.md
+++ b/sections/advanced.md
@@ -516,9 +516,6 @@ with `#!/usr/bin/env python3` will also be matched.
As with `files` and `exclude`, you can also exclude types if necessary using
`exclude_types`.
-If you'd like to use `types` with compatibility for older versions
-[here is a guide to ensuring compatibility](https://github.com/pre-commit/pre-commit/pull/551#issuecomment-312535540).
-
## Regular expressions
The patterns for `files` and `exclude` are python
From c21606241379952b53fe8c5a76c185b557460c14 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 3 Jan 2022 20:02:20 +0000
Subject: [PATCH 068/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-autopep8: v1.5.7 → v1.6.0](https://github.com/pre-commit/mirrors-autopep8/compare/v1.5.7...v1.6.0)
- [github.com/asottile/pyupgrade: v2.29.1 → v2.31.0](https://github.com/asottile/pyupgrade/compare/v2.29.1...v2.31.0)
- [github.com/pre-commit/mirrors-eslint: v8.5.0 → v8.6.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.5.0...v8.6.0)
---
.pre-commit-config.yaml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 0a012a54..1a47dec5 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -11,7 +11,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-autopep8
- rev: v1.5.7
+ rev: v1.6.0
hooks:
- id: autopep8
- repo: https://github.com/asottile/reorder_python_imports
@@ -23,7 +23,7 @@ repos:
- id: reorder-python-imports
files: install-local.py
- repo: https://github.com/asottile/pyupgrade
- rev: v2.29.1
+ rev: v2.31.0
hooks:
- id: pyupgrade
args: [--py36-plus]
@@ -40,7 +40,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.5.0
+ rev: v8.6.0
hooks:
- id: eslint
args: [--fix]
From 00e7fb75fed2d6c246c87731734ea9ff9f26b2f1 Mon Sep 17 00:00:00 2001
From: HectorMenezes
Date: Thu, 6 Jan 2022 10:01:55 -0300
Subject: [PATCH 069/368] Black version updated
Black used to have a problem with [assignment expression](https://github.com/psf/black/pull/1655). Now the docs provide a black version that won't break.
---
sections/install.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sections/install.md b/sections/install.md
index 79129cf0..06aec41f 100644
--- a/sections/install.md
+++ b/sections/install.md
@@ -64,7 +64,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
- rev: 19.3b0
+ rev: 21.12b0
hooks:
- id: black
```
From 259064280ac603f6be534b98e10b5e5c05166c50 Mon Sep 17 00:00:00 2001
From: Ian Fijolek
Date: Fri, 7 Jan 2022 12:23:16 -0800
Subject: [PATCH 070/368] Add StyLua
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index c13565d2..cf508dbb 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -209,3 +209,4 @@
- https://github.com/semaphor-dk/dansabel
- https://github.com/adamchainz/pre-commit-oxipng
- https://github.com/gitguardian/gg-shield
+- https://github.com/JohnnyMorganz/StyLua
From aebd08d8483252ad8b04ea98a38c6de2c38e0449 Mon Sep 17 00:00:00 2001
From: Liam Beguin
Date: Fri, 7 Jan 2022 17:54:30 -0500
Subject: [PATCH 071/368] Use upstream url for robotframework-tidy
Signed-off-by: Liam Beguin
---
all-repos.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index cf508dbb..f16fac17 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -16,7 +16,7 @@
- https://github.com/pre-commit/pygrep-hooks
- https://github.com/FalconSocial/pre-commit-mirrors-pep257
- https://github.com/FalconSocial/pre-commit-python-sorter
-- https://github.com/guykisel/pre-commit-robotframework-tidy
+- https://github.com/MarketSquare/robotframework-tidy
- https://github.com/guykisel/prospector-mirror
- https://github.com/asottile/add-trailing-comma
- https://github.com/asottile/pyupgrade
From 3a3d6a2191c3fca94d648c0ca063c30880b18320 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 10 Jan 2022 20:21:35 +0000
Subject: [PATCH 072/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v0.930 → v0.931](https://github.com/pre-commit/mirrors-mypy/compare/v0.930...v0.931)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 1a47dec5..c182e29e 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -35,7 +35,7 @@ repos:
hooks:
- id: add-trailing-comma
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v0.930
+ rev: v0.931
hooks:
- id: mypy
additional_dependencies: [types-all]
From 16e869f30453cb1f31cecd1ba047d8425d7a0cb4 Mon Sep 17 00:00:00 2001
From: Adam Johnson
Date: Sat, 15 Jan 2022 10:57:34 +0000
Subject: [PATCH 073/368] Swap oxipng mirror for source repository
The upstream repo merged a `.pre-commit-hooks.yaml` file, so the mirror is no longer required. Noted in mirror docs: https://github.com/adamchainz/pre-commit-oxipng#deprecated-2022-01-15
---
all-repos.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index f16fac17..1bf3c997 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -207,6 +207,6 @@
- https://github.com/realm/SwiftLint
- https://gitlab.com/bmares/check-json5
- https://github.com/semaphor-dk/dansabel
-- https://github.com/adamchainz/pre-commit-oxipng
- https://github.com/gitguardian/gg-shield
- https://github.com/JohnnyMorganz/StyLua
+- https://github.com/shssoichiro/oxipng
From 9c72ea05faac35ce189dd64cc49de99625bd99cb Mon Sep 17 00:00:00 2001
From: Adam Johnson
Date: Sat, 15 Jan 2022 11:06:08 +0000
Subject: [PATCH 074/368] Avoid displaying empty descriptions for hooks
As discussed: https://github.com/pre-commit/pre-commit-mirror-maker/pull/115#pullrequestreview-837778277
---
hooks.mako | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hooks.mako b/hooks.mako
index eb490be6..9546b468 100644
--- a/hooks.mako
+++ b/hooks.mako
@@ -38,7 +38,7 @@ Also available in json.
% for hook_dict in hooks:
${hook_dict['id']}
- % if 'description' in hook_dict:
+ % if hook_dict.get('description'):
- ${hook_dict['description']}
% elif hook_dict['name'].lower() != hook_dict['id'].lower():
- ${hook_dict['name']}
From be4c5dec2d53113c1a63cb5da9185e02a8cb677d Mon Sep 17 00:00:00 2001
From: Murilo Cunha
Date: Thu, 13 Jan 2022 09:57:19 -0300
Subject: [PATCH 075/368] Add databooks hook
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 1bf3c997..5a224e35 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -210,3 +210,4 @@
- https://github.com/gitguardian/gg-shield
- https://github.com/JohnnyMorganz/StyLua
- https://github.com/shssoichiro/oxipng
+- https://github.com/datarootsio/databooks
\ No newline at end of file
From 8ee48b2640e6fb8d64c7ca72694bf00d274f3e99 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Sun, 16 Jan 2022 00:51:14 +0000
Subject: [PATCH 076/368] [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---
all-repos.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index 5a224e35..56f9fbb2 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -210,4 +210,4 @@
- https://github.com/gitguardian/gg-shield
- https://github.com/JohnnyMorganz/StyLua
- https://github.com/shssoichiro/oxipng
-- https://github.com/datarootsio/databooks
\ No newline at end of file
+- https://github.com/datarootsio/databooks
From 22ad0a0b8986a3853ed722bd127f6075d303a9d4 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 17 Jan 2022 19:57:27 +0000
Subject: [PATCH 077/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.6.0 → v8.7.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.6.0...v8.7.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c182e29e..84844b22 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -40,7 +40,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.6.0
+ rev: v8.7.0
hooks:
- id: eslint
args: [--fix]
From b61a97dcdda90d97cfed2a8097f0ea41451e5172 Mon Sep 17 00:00:00 2001
From: Matt Layman
Date: Tue, 18 Jan 2022 09:57:18 -0500
Subject: [PATCH 078/368] Add documentation about Lua language support.
---
all-repos.yaml | 1 +
sections/new-hooks.md | 10 ++++++++++
2 files changed, 11 insertions(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 56f9fbb2..4f7d3b36 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -87,6 +87,7 @@
- https://github.com/homebysix/pre-commit-macadmin
- https://github.com/fortman/pre-commit-prometheus
- https://github.com/syntaqx/git-hooks
+- https://github.com/lunarmodules/luacheck
- https://github.com/Calinou/pre-commit-luacheck
- https://github.com/belminf/pre-commit-chef
- https://github.com/pocc/pre-commit-hooks
diff --git a/sections/new-hooks.md b/sections/new-hooks.md
index 47c5c284..ea582ff5 100644
--- a/sections/new-hooks.md
+++ b/sections/new-hooks.md
@@ -150,6 +150,7 @@ Hello from foo hook!
- [dotnet](#dotnet)
- [fail](#fail)
- [golang](#golang)
+- [lua](#lua)
- [node](#node)
- [perl](#perl)
- [python](#python)
@@ -313,6 +314,15 @@ the [`entry`](#hooks-entry) should match an executable which will get installed
__Support:__ golang hooks are known to work on any system which has go
installed. It has been tested on linux, macOS, and windows.
+### lua
+
+_new in 2.17.0_
+
+Lua hooks are installed with the version of Lua that is used by Luarocks.
+
+__Support:__ Lua hooks are known to work on any system which has Luarocks
+installed. It has been tested on linux and macOS and _may_ work on windows.
+
### node
The hook repository must have a `package.json`. It will be installed via
From 44eb214ce85187d8288f8502e5d87c725d29f059 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Tue, 18 Jan 2022 13:49:41 -0500
Subject: [PATCH 079/368] docs update for 2.17.0
---
sections/new-hooks.md | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/sections/new-hooks.md b/sections/new-hooks.md
index ea582ff5..5f9fe9ab 100644
--- a/sections/new-hooks.md
+++ b/sections/new-hooks.md
@@ -174,6 +174,10 @@ The `conda` language also supports [`additional_dependencies`](#config-additiona
and will pass any of the values directly into `conda install`. This language can therefore be
used with [local](#repository-local-hooks) hooks.
+_new in 2.17.0_: `mamba` or `micromamba` can be used to install instead via the
+`PRE_COMMIT_USE_MAMBA=1` or `PRE_COMMIT_USE_MICROMAMBA=1` environment
+variables.
+
__Support:__ `conda` hooks work as long as there is a system-installed `conda`
binary (such as [`miniconda`](https://docs.conda.io/en/latest/miniconda.html)).
It has been tested on linux, macOS, and windows.
@@ -307,10 +311,12 @@ being added to the `changelog` directory:
### golang
The hook repository must contain go source code. It will be installed via
-`go get ./...`. pre-commit will create an isolated `GOPATH` for each hook and
-the [`entry`](#hooks-entry) should match an executable which will get installed into the
+`go install ./...`. pre-commit will create an isolated `GOPATH` for each hook
+and the [`entry`](#hooks-entry) should match an executable which will get installed into the
`GOPATH`'s `bin` directory.
+_changed in 2.17.0_: previously `go get ./...` was used
+
__Support:__ golang hooks are known to work on any system which has go
installed. It has been tested on linux, macOS, and windows.
From f4b6821d9cc354f66cc625f731f250248ecf330e Mon Sep 17 00:00:00 2001
From: Matt Layman
Date: Sat, 22 Jan 2022 01:58:16 -0500
Subject: [PATCH 080/368] Add the LuaFormatter hook definition from the
canonical repo.
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 4f7d3b36..1eda8780 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -88,6 +88,7 @@
- https://github.com/fortman/pre-commit-prometheus
- https://github.com/syntaqx/git-hooks
- https://github.com/lunarmodules/luacheck
+ https://github.com/Koihik/LuaFormatter
- https://github.com/Calinou/pre-commit-luacheck
- https://github.com/belminf/pre-commit-chef
- https://github.com/pocc/pre-commit-hooks
From 0507542e5e593a6849487f441989c8c14ba9c584 Mon Sep 17 00:00:00 2001
From: Matt Layman
Date: Sat, 22 Jan 2022 02:03:53 -0500
Subject: [PATCH 081/368] Oops... forgot the dash character.
---
all-repos.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index 1eda8780..3187da22 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -88,7 +88,7 @@
- https://github.com/fortman/pre-commit-prometheus
- https://github.com/syntaqx/git-hooks
- https://github.com/lunarmodules/luacheck
- https://github.com/Koihik/LuaFormatter
+- https://github.com/Koihik/LuaFormatter
- https://github.com/Calinou/pre-commit-luacheck
- https://github.com/belminf/pre-commit-chef
- https://github.com/pocc/pre-commit-hooks
From 67612d6ecb9c0e60fb94a71db8ee2c0852a640cc Mon Sep 17 00:00:00 2001
From: Chris Kuehl
Date: Thu, 27 Jan 2022 14:46:02 -0800
Subject: [PATCH 082/368] Disable smooth scrolling when searching on the page
---
scss/_variables.scss | 2 ++
scss/main_bs5.scss | 22 ++++++++++++++++++++++
2 files changed, 24 insertions(+)
diff --git a/scss/_variables.scss b/scss/_variables.scss
index f231a640..c4339549 100644
--- a/scss/_variables.scss
+++ b/scss/_variables.scss
@@ -23,3 +23,5 @@ $code-color: #e83e8c !default;
$lead-font-size: 1.75rem !default;
$lead-font-weight: 400 !default;
+
+$enable-smooth-scroll: false;
diff --git a/scss/main_bs5.scss b/scss/main_bs5.scss
index 88d9547d..9dd7db04 100644
--- a/scss/main_bs5.scss
+++ b/scss/main_bs5.scss
@@ -4,6 +4,28 @@
// flush footer to bottom
html {
height: 100%;
+
+ // smooth scrolling only when clicking between sections.
+ animation: smoothscroll1 1s;
+
+ &:focus-within {
+ animation-name: smoothscroll2;
+ scroll-behavior: smooth;
+ }
+}
+
+@keyframes smoothscroll1 {
+ from,
+ to {
+ scroll-behavior: smooth;
+ }
+}
+
+@keyframes smoothscroll2 {
+ from,
+ to {
+ scroll-behavior: smooth;
+ }
}
body {
From 0bb34fbd1ff50661a7f56a8f77a5e6cc4e054eec Mon Sep 17 00:00:00 2001
From: Chris Kuehl
Date: Thu, 27 Jan 2022 15:09:32 -0800
Subject: [PATCH 083/368] Just disable smooth scrolling entirely
---
scss/main_bs5.scss | 22 ----------------------
1 file changed, 22 deletions(-)
diff --git a/scss/main_bs5.scss b/scss/main_bs5.scss
index 9dd7db04..88d9547d 100644
--- a/scss/main_bs5.scss
+++ b/scss/main_bs5.scss
@@ -4,28 +4,6 @@
// flush footer to bottom
html {
height: 100%;
-
- // smooth scrolling only when clicking between sections.
- animation: smoothscroll1 1s;
-
- &:focus-within {
- animation-name: smoothscroll2;
- scroll-behavior: smooth;
- }
-}
-
-@keyframes smoothscroll1 {
- from,
- to {
- scroll-behavior: smooth;
- }
-}
-
-@keyframes smoothscroll2 {
- from,
- to {
- scroll-behavior: smooth;
- }
}
body {
From b3f7c7c47331224fea14e2e068b13b957b07fd38 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 31 Jan 2022 21:02:27 +0000
Subject: [PATCH 084/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/reorder_python_imports: v2.6.0 → v2.7.1](https://github.com/asottile/reorder_python_imports/compare/v2.6.0...v2.7.1)
- [github.com/pre-commit/mirrors-eslint: v8.7.0 → v8.8.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.7.0...v8.8.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 84844b22..e07c43f9 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -15,7 +15,7 @@ repos:
hooks:
- id: autopep8
- repo: https://github.com/asottile/reorder_python_imports
- rev: v2.6.0
+ rev: v2.7.1
hooks:
- id: reorder-python-imports
args: [--py36-plus]
@@ -40,7 +40,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.7.0
+ rev: v8.8.0
hooks:
- id: eslint
args: [--fix]
From 0c55c82151833a5ec0ad460ef3592cf967cea9b6 Mon Sep 17 00:00:00 2001
From: Adam Johnson
Date: Thu, 3 Feb 2022 11:42:28 +0000
Subject: [PATCH 085/368] Add Standard JS
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 3187da22..fe74f0c8 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -213,3 +213,4 @@
- https://github.com/JohnnyMorganz/StyLua
- https://github.com/shssoichiro/oxipng
- https://github.com/datarootsio/databooks
+- https://github.com/standard/standard
From 8b777e5855af7e2a09b14d1b77c7d566b7a96d4f Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Mon, 7 Feb 2022 15:17:21 -0500
Subject: [PATCH 086/368] replace gitlab flake8 with github flake8
---
sections/advanced.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sections/advanced.md b/sections/advanced.md
index fe11cece..1dab84d9 100644
--- a/sections/advanced.md
+++ b/sections/advanced.md
@@ -241,8 +241,8 @@ arguments by specifying the [`args`](#config-args) property in your `.pre-commit
as follows:
```yaml
-- repo: https://gitlab.com/PyCQA/flake8
- rev: 3.8.3
+- repo: https://github.com/PyCQA/flake8
+ rev: 4.0.1
hooks:
- id: flake8
args: [--max-line-length=131]
From 3bd7a34777f454159f44e36d2cc34e39fd071c7b Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 14 Feb 2022 20:38:23 +0000
Subject: [PATCH 087/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.8.0 → v8.9.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.8.0...v8.9.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e07c43f9..02a07c2c 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -40,7 +40,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.8.0
+ rev: v8.9.0
hooks:
- id: eslint
args: [--fix]
From 86475e723f81c2947fbe23f2d7e2db4384270588 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 28 Feb 2022 20:30:42 +0000
Subject: [PATCH 088/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.9.0 → v8.10.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.9.0...v8.10.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 02a07c2c..5fea4130 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -40,7 +40,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.9.0
+ rev: v8.10.0
hooks:
- id: eslint
args: [--fix]
From c415ed09be99c03970231f13909c011695946c48 Mon Sep 17 00:00:00 2001
From: Stephen Rosen
Date: Mon, 28 Feb 2022 23:09:21 +0000
Subject: [PATCH 089/368] Update the home of 'check-jsonschema'
---
all-repos.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index fe74f0c8..001f3508 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -159,7 +159,7 @@
- https://github.com/mgedmin/check-manifest
- https://github.com/ecugol/pre-commit-hooks-django
- https://github.com/PrincetonUniversity/blocklint
-- https://github.com/sirosen/check-jsonschema
+- https://github.com/python-jsonschema/check-jsonschema
- https://github.com/sirosen/texthooks
- https://github.com/snok/pep585-upgrade
- https://github.com/jendrikseipp/vulture
From 6d72a7507b6ce80f4f3b61835002a15c4bd24bc8 Mon Sep 17 00:00:00 2001
From: Khai Do
Date: Tue, 1 Mar 2022 09:48:01 -0800
Subject: [PATCH 090/368] A linter for Sceptre stack configs
Add a reference to the Sceptre pre-commit linter. This linter checks
sceptre stack configurations[1]
[1] https://docs.sceptre-project.org/dev/docs/stack_config.html
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index fe74f0c8..41eeb2bc 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -214,3 +214,4 @@
- https://github.com/shssoichiro/oxipng
- https://github.com/datarootsio/databooks
- https://github.com/standard/standard
+- https://github.com/Sceptre/sceptrelint
From 2af5334ef39a8005793504f744ef93025c35f09d Mon Sep 17 00:00:00 2001
From: wwuck
Date: Fri, 4 Mar 2022 15:06:45 +1100
Subject: [PATCH 091/368] Add yamlfix hook
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index c752fa01..bce05f18 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -215,3 +215,4 @@
- https://github.com/datarootsio/databooks
- https://github.com/standard/standard
- https://github.com/Sceptre/sceptrelint
+- https://github.com/lyz-code/yamlfix
From f596fa33523bf500e14227cfc599de7a7e395374 Mon Sep 17 00:00:00 2001
From: Danny Sepler
Date: Mon, 7 Mar 2022 19:42:30 -0500
Subject: [PATCH 092/368] Add rm_unneeded_f_str
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index bce05f18..76bd713a 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -216,3 +216,4 @@
- https://github.com/standard/standard
- https://github.com/Sceptre/sceptrelint
- https://github.com/lyz-code/yamlfix
+- https://github.com/dannysepler/rm_unneeded_f_str
From 7d38fdcc2e09f3cc7d953f3458235c7032a7f415 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Sun, 13 Mar 2022 19:56:10 -0400
Subject: [PATCH 093/368] remove unneeded gitignore lines
- coverage-html: coverage>=6.2 writes a .gitignore file
- mypy_cache: mypy>=0.770 writes a .gitignore file
- pytest_cache: pytest>=3.8.1 writes a .gitignore file
- venv: virtualenv>=20.0.21 writes a .gitignore file
Committed via https://github.com/asottile/all-repos
---
.gitignore | 2 --
1 file changed, 2 deletions(-)
diff --git a/.gitignore b/.gitignore
index 2deee430..8a877944 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1,6 @@
*.html
*.pyc
*.swp
-/.mypy_cache
/all-hooks.json
/build
/node_modules
-/venv
From 39f3d580c8ae803551fbd5c30ee393c175a44c73 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 14 Mar 2022 22:18:37 +0000
Subject: [PATCH 094/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/reorder_python_imports: v2.7.1 → v3.0.1](https://github.com/asottile/reorder_python_imports/compare/v2.7.1...v3.0.1)
- [github.com/asottile/pyupgrade: v2.31.0 → v2.31.1](https://github.com/asottile/pyupgrade/compare/v2.31.0...v2.31.1)
- [github.com/pre-commit/mirrors-mypy: v0.931 → v0.940](https://github.com/pre-commit/mirrors-mypy/compare/v0.931...v0.940)
- [github.com/pre-commit/mirrors-eslint: v8.10.0 → v8.11.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.10.0...v8.11.0)
---
.pre-commit-config.yaml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 5fea4130..cd502fca 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -15,7 +15,7 @@ repos:
hooks:
- id: autopep8
- repo: https://github.com/asottile/reorder_python_imports
- rev: v2.7.1
+ rev: v3.0.1
hooks:
- id: reorder-python-imports
args: [--py36-plus]
@@ -23,7 +23,7 @@ repos:
- id: reorder-python-imports
files: install-local.py
- repo: https://github.com/asottile/pyupgrade
- rev: v2.31.0
+ rev: v2.31.1
hooks:
- id: pyupgrade
args: [--py36-plus]
@@ -35,12 +35,12 @@ repos:
hooks:
- id: add-trailing-comma
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v0.931
+ rev: v0.940
hooks:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.10.0
+ rev: v8.11.0
hooks:
- id: eslint
args: [--fix]
From bfff9149e8383f59a944d97fafade3bff6d72014 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 14 Mar 2022 22:19:23 +0000
Subject: [PATCH 095/368] [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---
install-local.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/install-local.py b/install-local.py
index 054956d1..e46e9816 100644
--- a/install-local.py
+++ b/install-local.py
@@ -4,7 +4,6 @@
from __future__ import unicode_literals
import contextlib
-import distutils.spawn
import hashlib
import io
import os.path
@@ -13,6 +12,8 @@
import sys
import tarfile
+import distutils.spawn
+
if str is bytes:
from urllib import urlopen # type: ignore
From f44b06c6011769d5e9d9afd45ce4ab377673beab Mon Sep 17 00:00:00 2001
From: Bastien Gerard
Date: Fri, 18 Mar 2022 22:47:40 +0100
Subject: [PATCH 096/368] Document issue with gitlab non-constant build
location clashing with pre-commit cache that expects a constant location
---
sections/advanced.md | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sections/advanced.md b/sections/advanced.md
index 1dab84d9..3693781c 100644
--- a/sections/advanced.md
+++ b/sections/advanced.md
@@ -742,6 +742,9 @@ my_job:
- ${PRE_COMMIT_HOME}
```
+pre-commit's cache requires to be served from a constant location between the different builds. This isn't the default when using k8s runners
+on Gitlab. In case you face the error `InvalidManifestError`, set `builds_dir` to something static e.g `builds_dir = "/builds"` in your `[[runner]]` config
+
### travis-ci example
```yaml
From b4100d325d81740001cd2601ef2e7faa232b0504 Mon Sep 17 00:00:00 2001
From: Bastien Gerard
Date: Sat, 19 Mar 2022 09:45:29 +0100
Subject: [PATCH 097/368] fix minor typo
---
sections/advanced.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sections/advanced.md b/sections/advanced.md
index 3693781c..d67f60d0 100644
--- a/sections/advanced.md
+++ b/sections/advanced.md
@@ -743,7 +743,7 @@ my_job:
```
pre-commit's cache requires to be served from a constant location between the different builds. This isn't the default when using k8s runners
-on Gitlab. In case you face the error `InvalidManifestError`, set `builds_dir` to something static e.g `builds_dir = "/builds"` in your `[[runner]]` config
+on GitLab. In case you face the error `InvalidManifestError`, set `builds_dir` to something static e.g `builds_dir = "/builds"` in your `[[runner]]` config
### travis-ci example
From df003d773d548937158d65a629227895798d952c Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 21 Mar 2022 22:32:10 +0000
Subject: [PATCH 098/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v0.940 → v0.941](https://github.com/pre-commit/mirrors-mypy/compare/v0.940...v0.941)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index cd502fca..ddac1ba9 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -35,7 +35,7 @@ repos:
hooks:
- id: add-trailing-comma
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v0.940
+ rev: v0.941
hooks:
- id: mypy
additional_dependencies: [types-all]
From f93535bc432efa7adb553857b200ed706fa0db53 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Thu, 24 Mar 2022 14:05:16 -0400
Subject: [PATCH 099/368] master to main
---
.github/workflows/deploy.yml | 2 +-
README.md | 2 +-
base.mako | 12 ++++++------
sections/advanced.md | 10 +++++-----
sections/new-hooks.md | 2 +-
sections/usage.md | 2 +-
6 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 91ed3615..4b7eb7c4 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -2,7 +2,7 @@ name: deploy
on:
pull_request:
push:
- branches: [master]
+ branches: [main]
schedule:
- cron: '30 8 * * *'
diff --git a/README.md b/README.md
index 4942a13b..60489cfc 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
pre-commit.com
==============
-[](https://results.pre-commit.ci/latest/github/pre-commit/pre-commit.com/master)
+[](https://results.pre-commit.ci/latest/github/pre-commit/pre-commit.com/main)
[](https://github.com/pre-commit/pre-commit.com/actions)
This powers https://pre-commit.com
diff --git a/base.mako b/base.mako
index 6ac25cb9..b0545d26 100644
--- a/base.mako
+++ b/base.mako
@@ -54,14 +54,14 @@
A framework for managing and maintaining multi-language pre-commit hooks.
diff --git a/sections/advanced.md b/sections/advanced.md
index d67f60d0..818dc8ac 100644
--- a/sections/advanced.md
+++ b/sections/advanced.md
@@ -413,7 +413,7 @@ Initialized empty Git repository in /tmp/sample/.git/
$ cd sample
$ git commit --allow-empty -m 'Initial commit'
`.pre-commit-config.yaml` config file not found. Skipping `pre-commit`.
-[master (root-commit) d1b39c1] Initial commit
+[main (root-commit) d1b39c1] Initial commit
```
To still require opt-in, but prompt the user to set up pre-commit use a
@@ -458,8 +458,8 @@ Some of the common tags you'll find from identify:
- `executable` - whether the file has the executable bit set
- `text` - whether the file looks like a text file
- `binary` - whether the file looks like a binary file
-- [tags by extension / naming convention](https://github.com/pre-commit/identify/blob/master/identify/extensions.py)
-- [tags by shebang (`#!`)](https://github.com/pre-commit/identify/blob/master/identify/interpreters.py)
+- [tags by extension / naming convention](https://github.com/pre-commit/identify/blob/main/identify/extensions.py)
+- [tags by shebang (`#!`)](https://github.com/pre-commit/identify/blob/main/identify/interpreters.py)
To discover the type of any file on disk, you can use `identify`'s cli:
@@ -645,7 +645,7 @@ pre-commit.ci also has the following benefits:
- it will autofix pull requests
- it will periodically autoupdate your configuration
-[](https://github.com/pre-commit-ci-demo/demo#results)
+[](https://github.com/pre-commit-ci-demo/demo#results)
[pre-commit.ci]: https://pre-commit.ci
@@ -662,7 +662,7 @@ note: azure pipelines uses immutable caches so the python version and
`.pre-commit-config.yaml` hash must be included in the cache key. for a
repository template, see [asottile@job--pre-commit.yml].
-[asottile@job--pre-commit.yml]: https://github.com/asottile/azure-pipeline-templates/blob/master/job--pre-commit.yml
+[asottile@job--pre-commit.yml]: https://github.com/asottile/azure-pipeline-templates/blob/main/job--pre-commit.yml
```yaml
jobs:
diff --git a/sections/new-hooks.md b/sections/new-hooks.md
index 5f9fe9ab..f9ed7aaa 100644
--- a/sections/new-hooks.md
+++ b/sections/new-hooks.md
@@ -113,7 +113,7 @@ _new in 1.14.0_: a commit is no longer necessary to `try-repo` on a local
directory. `pre-commit` will clone any tracked uncommitted changes.
```pre-commit
-~/work/hook-repo $ git checkout origin/master -b feature
+~/work/hook-repo $ git checkout origin/main -b feature
# ... make some changes
diff --git a/sections/usage.md b/sections/usage.md
index dbba2aab..94addae8 100644
--- a/sections/usage.md
+++ b/sections/usage.md
@@ -27,6 +27,6 @@ pyupgrade................................................................Passed
rst ``code`` is two backticks........................(no files to check)Skipped
rst..................................................(no files to check)Skipped
changelog filenames..................................(no files to check)Skipped
-[master 146c6c2c] Add super awesome feature
+[main 146c6c2c] Add super awesome feature
1 file changed, 1 insertion(+)
```
From 9ac45a29c7716d8c31d148515731d2e30ca2aeb2 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Fri, 25 Mar 2022 14:12:56 -0400
Subject: [PATCH 100/368] reorder pre-commit config
Committed via https://github.com/asottile/all-repos
---
.pre-commit-config.yaml | 42 +++++++++++++++++------------------------
install-local.py | 8 +++-----
make_all_hooks.py | 4 +++-
make_templates.py | 6 ++++--
4 files changed, 27 insertions(+), 33 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index ddac1ba9..c9f2888f 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -6,36 +6,34 @@ repos:
- id: end-of-file-fixer
- id: check-yaml
- id: debug-statements
-- repo: https://github.com/PyCQA/flake8
- rev: 4.0.1
- hooks:
- - id: flake8
-- repo: https://github.com/pre-commit/mirrors-autopep8
- rev: v1.6.0
- hooks:
- - id: autopep8
+ - id: double-quote-string-fixer
+ - id: name-tests-test
+ - id: requirements-txt-fixer
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.0.1
hooks:
- id: reorder-python-imports
+ args: [--py37-plus, --add-import, 'from __future__ import annotations']
+- repo: https://github.com/asottile/add-trailing-comma
+ rev: v2.2.1
+ hooks:
+ - id: add-trailing-comma
args: [--py36-plus]
- exclude: ^install-local.py$
- - id: reorder-python-imports
- files: install-local.py
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.1
hooks:
- id: pyupgrade
- args: [--py36-plus]
- exclude: ^install-local.py$
- - id: pyupgrade
- files: install-local.py
-- repo: https://github.com/asottile/add-trailing-comma
- rev: v2.2.1
+ args: [--py37-plus]
+- repo: https://github.com/pre-commit/mirrors-autopep8
+ rev: v1.6.0
hooks:
- - id: add-trailing-comma
+ - id: autopep8
+- repo: https://github.com/PyCQA/flake8
+ rev: 4.0.1
+ hooks:
+ - id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v0.941
+ rev: v0.942
hooks:
- id: mypy
additional_dependencies: [types-all]
@@ -46,12 +44,6 @@ repos:
args: [--fix]
- repo: local
hooks:
- - id: scss-lint
- name: scss-lint
- entry: scss-lint
- types: [scss]
- language: ruby
- additional_dependencies: ['scss_lint:0.57.0']
- id: no-github-dot-git
name: No need for .git for github/gitlab urls
entry: '(github|gitlab).*\.git'
diff --git a/install-local.py b/install-local.py
index e46e9816..fc6b0882 100644
--- a/install-local.py
+++ b/install-local.py
@@ -1,7 +1,5 @@
#!/usr/bin/env python
-from __future__ import absolute_import
-from __future__ import print_function
-from __future__ import unicode_literals
+from __future__ import annotations
import contextlib
import hashlib
@@ -103,7 +101,7 @@ def main():
))
print('*' * 79)
- print('Installing pre-commit to {}'.format(script_dest))
+ print(f'Installing pre-commit to {script_dest}')
print('*' * 79)
if not os.path.exists(bin_dir):
@@ -116,7 +114,7 @@ def main():
os.symlink(script_src, script_dest)
if not distutils.spawn.find_executable('pre-commit'):
- print('It looks like {} is not on your path'.format(bin_dir))
+ print(f'It looks like {bin_dir} is not on your path')
print('You may want to add it.')
print('Often this does the trick: source ~/.profile')
diff --git a/make_all_hooks.py b/make_all_hooks.py
index 54b0f406..699bfea7 100644
--- a/make_all_hooks.py
+++ b/make_all_hooks.py
@@ -1,3 +1,5 @@
+from __future__ import annotations
+
import functools
import json
import multiprocessing
@@ -16,7 +18,7 @@
fast_load = functools.partial(yaml.load, Loader=Loader)
-def get_manifest(repo_path: str) -> Tuple[bool, str, List[Dict[str, Any]]]:
+def get_manifest(repo_path: str) -> tuple[bool, str, list[dict[str, Any]]]:
print(f'*** {repo_path}')
with tempfile.TemporaryDirectory() as directory:
repo_dir = os.path.join(directory, 'repo')
diff --git a/make_templates.py b/make_templates.py
index 03be4e90..5935468a 100644
--- a/make_templates.py
+++ b/make_templates.py
@@ -1,3 +1,5 @@
+from __future__ import annotations
+
import collections
import json
import os.path
@@ -34,7 +36,7 @@
]
-def get_env() -> Dict[str, Any]:
+def get_env() -> dict[str, Any]:
body_parts = []
for title, filename in SECTIONS:
div_id, _ = os.path.splitext(os.path.basename(filename))
@@ -59,7 +61,7 @@ def get_env() -> Dict[str, Any]:
hook_type
for properties in all_hooks.values()
for hook_type in (
- properties[0].get("types", []) + properties[0].get("types_or", [])
+ properties[0].get('types', []) + properties[0].get('types_or', [])
)
}
return {'all_hooks': all_hooks, 'all_types': all_types, 'body': body}
From 07804ecefe3d662b6771efbc0ef5be63166adca9 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Fri, 25 Mar 2022 14:36:04 -0400
Subject: [PATCH 101/368] fix pre-commit issues
---
.pre-commit-config.yaml | 4 ++++
install-local.py | 8 +++++---
make_all_hooks.py | 3 ---
make_templates.py | 1 -
4 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c9f2888f..0b084fd4 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -14,6 +14,9 @@ repos:
hooks:
- id: reorder-python-imports
args: [--py37-plus, --add-import, 'from __future__ import annotations']
+ exclude: ^install-local.py$
+ - id: reorder-python-imports
+ files: ^install-local.py$
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.2.1
hooks:
@@ -24,6 +27,7 @@ repos:
hooks:
- id: pyupgrade
args: [--py37-plus]
+ exclude: ^install-local.py$
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.6.0
hooks:
diff --git a/install-local.py b/install-local.py
index fc6b0882..e46e9816 100644
--- a/install-local.py
+++ b/install-local.py
@@ -1,5 +1,7 @@
#!/usr/bin/env python
-from __future__ import annotations
+from __future__ import absolute_import
+from __future__ import print_function
+from __future__ import unicode_literals
import contextlib
import hashlib
@@ -101,7 +103,7 @@ def main():
))
print('*' * 79)
- print(f'Installing pre-commit to {script_dest}')
+ print('Installing pre-commit to {}'.format(script_dest))
print('*' * 79)
if not os.path.exists(bin_dir):
@@ -114,7 +116,7 @@ def main():
os.symlink(script_src, script_dest)
if not distutils.spawn.find_executable('pre-commit'):
- print(f'It looks like {bin_dir} is not on your path')
+ print('It looks like {} is not on your path'.format(bin_dir))
print('You may want to add it.')
print('Often this does the trick: source ~/.profile')
diff --git a/make_all_hooks.py b/make_all_hooks.py
index 699bfea7..d88d9ce6 100644
--- a/make_all_hooks.py
+++ b/make_all_hooks.py
@@ -7,9 +7,6 @@
import subprocess
import tempfile
from typing import Any
-from typing import Dict
-from typing import List
-from typing import Tuple
import yaml
from pre_commit.clientlib import load_manifest
diff --git a/make_templates.py b/make_templates.py
index 5935468a..2e5c2de8 100644
--- a/make_templates.py
+++ b/make_templates.py
@@ -4,7 +4,6 @@
import json
import os.path
from typing import Any
-from typing import Dict
import mako.lookup
import markupsafe
From 8edd22d539ff853744b3291f8f0c0c75981541b8 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 28 Mar 2022 19:15:03 +0000
Subject: [PATCH 102/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.11.0 → v8.12.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.11.0...v8.12.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 0b084fd4..0733d1ed 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -42,7 +42,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.11.0
+ rev: v8.12.0
hooks:
- id: eslint
args: [--fix]
From 6334759732920fcfae12ed720826a49a9b9c19ce Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 4 Apr 2022 20:00:00 +0000
Subject: [PATCH 103/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/add-trailing-comma: v2.2.1 → v2.2.2](https://github.com/asottile/add-trailing-comma/compare/v2.2.1...v2.2.2)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 0733d1ed..b8b1330d 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -18,7 +18,7 @@ repos:
- id: reorder-python-imports
files: ^install-local.py$
- repo: https://github.com/asottile/add-trailing-comma
- rev: v2.2.1
+ rev: v2.2.2
hooks:
- id: add-trailing-comma
args: [--py36-plus]
From 0c866bb63f4578693e29db2da4a45c6e11aca43a Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Mon, 4 Apr 2022 16:57:44 -0400
Subject: [PATCH 104/368] does the website still work without node_modules
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 13d63c35..c4a58357 100644
--- a/Makefile
+++ b/Makefile
@@ -28,7 +28,7 @@ node_modules: package.json
push: venv
venv/bin/markdown-to-presentation push \
.nojekyll README.md CNAME \
- build assets node_modules *.html *.png *.svg favicon.ico \
+ build assets *.html *.png *.svg favicon.ico \
all-hooks.json install-local.py
clean:
From 5f9789395c5b1034df7c7603b80b7dcd5df47dad Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Mon, 4 Apr 2022 17:30:56 -0400
Subject: [PATCH 105/368] documentation updates for pre-commit 2.18.0
---
sections/cli.md | 9 ++++++++-
sections/new-hooks.md | 15 +++++++++------
sections/plugins.md | 7 +++++++
3 files changed, 24 insertions(+), 7 deletions(-)
diff --git a/sections/cli.md b/sections/cli.md
index 7238dff5..94aba71f 100644
--- a/sections/cli.md
+++ b/sections/cli.md
@@ -68,6 +68,9 @@ $ grep rev: .pre-commit-config.yaml
rev: 34a269fd7650d264e4de7603157c10d0a9bb8211 # frozen: v1.25.2
```
+_new in 2.18.0_: pre-commit will preferentially pick tags containing a `.` if
+there are ties.
+
## pre-commit clean [options] #pre-commit-clean
Clean out cached pre-commit files.
@@ -140,12 +143,16 @@ Options:
Some example useful invocations:
-- `pre-commit install`: Default invocation. Installs the pre-commit script
+- `pre-commit install`: Default invocation. Installs the hook scripts
alongside any existing git hooks.
- `pre-commit install --install-hooks --overwrite`: Idempotently replaces
existing git hook scripts with pre-commit, and also installs hook
environments.
+_new in 2.18.0_: `pre-commit install` will now install hooks from
+[`default_install_hook_types`](#top_level-default_language_version) if
+`--hook-type` is not specified on the command line.
+
## pre-commit install-hooks [options] #pre-commit-install-hooks
Install all missing environments for the available hooks. Unless this command or
diff --git a/sections/new-hooks.md b/sections/new-hooks.md
index f9ed7aaa..ce2284c2 100644
--- a/sections/new-hooks.md
+++ b/sections/new-hooks.md
@@ -186,17 +186,20 @@ It has been tested on linux, macOS, and windows.
_new in 2.8.0_
-The hook repository must have a `.pre-commit-channel` folder and that folder must contain
-the coursier
+The hook repository must have a `.pre-commit-channel` folder and that folder
+must contain the coursier
[application descriptors](https://get-coursier.io/docs/2.0.0-RC6-10/cli-install.html#application-descriptor-reference)
for the hook to install. For configuring coursier hooks, your
[`entry`](#hooks-entry) should correspond to an executable installed from the
repository's `.pre-commit-channel` folder.
-__Support:__ `coursier` hooks are known to work on any system which has the `cs`
-package manager installed. The specific coursier applications you install may depend
-on various versions of the JVM, consult the hooks' documentation for clarification.
-It has been tested on linux.
+__Support:__ `coursier` hooks are known to work on any system which has the
+`cs` or `coursier` package manager installed. The specific coursier
+applications you install may depend on various versions of the JVM, consult
+the hooks' documentation for clarification. It has been tested on linux.
+
+_new in 2.18.0_: pre-commit now supports the `coursier` naming of the package
+manager executable.
### dart
diff --git a/sections/plugins.md b/sections/plugins.md
index c4d07e49..f59b6b1d 100644
--- a/sections/plugins.md
+++ b/sections/plugins.md
@@ -17,6 +17,13 @@ migrate your configuration.
=r=
=c= [`repos`](_#top_level-repos)
=c= A list of [repository mappings](#pre-commit-configyaml---repos).
+=r=
+ =c= [`default_install_hook_types`](_#top_level-default_install_hook_types)
+ =c= (optional: default `[pre-commit]`) a list of `--hook-type`s which will
+ be used by default when running
+ [`pre-commit install`](#pre-commit-install).
+
+ _new in 2.18.0_
=r=
=c= [`default_language_version`](_#top_level-default_language_version)
=c= (optional: default `{}`) a mapping from language to the default
From a1c61ff183f6393963d7f6c967996bb56d7cb322 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 11 Apr 2022 20:55:22 +0000
Subject: [PATCH 106/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.1.0 → v4.2.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.1.0...v4.2.0)
- [github.com/asottile/pyupgrade: v2.31.1 → v2.32.0](https://github.com/asottile/pyupgrade/compare/v2.31.1...v2.32.0)
- [github.com/pre-commit/mirrors-eslint: v8.12.0 → v8.13.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.12.0...v8.13.0)
---
.pre-commit-config.yaml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b8b1330d..8c53788b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v4.1.0
+ rev: v4.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
@@ -23,7 +23,7 @@ repos:
- id: add-trailing-comma
args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade
- rev: v2.31.1
+ rev: v2.32.0
hooks:
- id: pyupgrade
args: [--py37-plus]
@@ -42,7 +42,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.12.0
+ rev: v8.13.0
hooks:
- id: eslint
args: [--fix]
From a04a616321ba27156a56dc10a23a8ad3748bb95d Mon Sep 17 00:00:00 2001
From: Chris Hughes
Date: Thu, 14 Apr 2022 18:34:59 +0100
Subject: [PATCH 107/368] added latexindent.pl to all-repos.yaml
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 76bd713a..e6865d2b 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -217,3 +217,4 @@
- https://github.com/Sceptre/sceptrelint
- https://github.com/lyz-code/yamlfix
- https://github.com/dannysepler/rm_unneeded_f_str
+- https://github.com/cmhughes/latexindent.pl
From e84d84143606f1d39eea337f87f56f4b2058b0d7 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 18 Apr 2022 19:50:50 +0000
Subject: [PATCH 108/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/add-trailing-comma: v2.2.2 → v2.2.3](https://github.com/asottile/add-trailing-comma/compare/v2.2.2...v2.2.3)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 8c53788b..f1c9615f 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -18,7 +18,7 @@ repos:
- id: reorder-python-imports
files: ^install-local.py$
- repo: https://github.com/asottile/add-trailing-comma
- rev: v2.2.2
+ rev: v2.2.3
hooks:
- id: add-trailing-comma
args: [--py36-plus]
From 931454e62d9af1661fedb4a5b6e62740483bb5e1 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 25 Apr 2022 19:49:03 +0000
Subject: [PATCH 109/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.13.0 → v8.14.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.13.0...v8.14.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f1c9615f..66b8e917 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -42,7 +42,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.13.0
+ rev: v8.14.0
hooks:
- id: eslint
args: [--fix]
From f36781acff40ef5b1c664304646c647c98298913 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 2 May 2022 20:18:42 +0000
Subject: [PATCH 110/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/reorder_python_imports: v3.0.1 → v3.1.0](https://github.com/asottile/reorder_python_imports/compare/v3.0.1...v3.1.0)
- [github.com/pre-commit/mirrors-mypy: v0.942 → v0.950](https://github.com/pre-commit/mirrors-mypy/compare/v0.942...v0.950)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 66b8e917..8e1e4bbe 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -10,7 +10,7 @@ repos:
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/asottile/reorder_python_imports
- rev: v3.0.1
+ rev: v3.1.0
hooks:
- id: reorder-python-imports
args: [--py37-plus, --add-import, 'from __future__ import annotations']
@@ -37,7 +37,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v0.942
+ rev: v0.950
hooks:
- id: mypy
additional_dependencies: [types-all]
From a2efef5a4442708fa4a815bf9a419db73c9d1776 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Tue, 3 May 2022 17:25:23 -0400
Subject: [PATCH 111/368] fix formatting of "new in" for pygrep hooks
---
sections/new-hooks.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/sections/new-hooks.md b/sections/new-hooks.md
index ce2284c2..9bb9f8ba 100644
--- a/sections/new-hooks.md
+++ b/sections/new-hooks.md
@@ -463,6 +463,7 @@ the regex as the [`entry`](#hooks-entry). The [`entry`](#hooks-entry) may be an
can apply the `(?i)` flag as the start of your entry, or use `args: [-i]`.
_new in 1.8.0_: For multiline matches, use `args: [--multiline]`.
+
_new in 2.8.0_: To require all files to match, use `args: [--negate]`.
__Support:__ pygrep hooks are supported on all platforms which pre-commit runs
From 4a960d91b8ef48b1cdb06b2a091a06619c77990e Mon Sep 17 00:00:00 2001
From: Maximilian Hils
Date: Sun, 8 May 2022 23:33:39 +0200
Subject: [PATCH 112/368] badge: remove logoColor
the badge that's currently rendered on pre-commit.com does _not_ use the white logo color because there's
some additional escaping that transforms `&logoColor` to `&logoColor` (which breaks the URL argument).
This commit removes logoColor from the copy&paste examples to make things consistent. :)
---
sections/advanced.md | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/sections/advanced.md b/sections/advanced.md
index 818dc8ac..083e0ef4 100644
--- a/sections/advanced.md
+++ b/sections/advanced.md
@@ -588,24 +588,24 @@ default_language_version:
you can add a badge to your repository to show your contributors / users that
you use pre-commit!
-[](https://github.com/pre-commit/pre-commit)
+[](https://github.com/pre-commit/pre-commit)
- Markdown:
```md#copyable
- [](https://github.com/pre-commit/pre-commit)
+ [](https://github.com/pre-commit/pre-commit)
```
- HTML:
```html#copyable
-
+
```
- reStructuredText:
```rst#copyable
- .. image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white
+ .. image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit
:target: https://github.com/pre-commit/pre-commit
:alt: pre-commit
```
@@ -613,7 +613,7 @@ you use pre-commit!
- AsciiDoc:
```#copyable
- image:https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white[pre-commit, link=https://github.com/pre-commit/pre-commit]
+ image:https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit[pre-commit, link=https://github.com/pre-commit/pre-commit]
```
## Usage in continuous integration
From 6ccb91f3b93bbe30b4b55235d266c3a75131975f Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 9 May 2022 20:28:24 +0000
Subject: [PATCH 113/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/pyupgrade: v2.32.0 → v2.32.1](https://github.com/asottile/pyupgrade/compare/v2.32.0...v2.32.1)
- [github.com/pre-commit/mirrors-eslint: v8.14.0 → v8.15.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.14.0...v8.15.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 8e1e4bbe..29bc1071 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -23,7 +23,7 @@ repos:
- id: add-trailing-comma
args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade
- rev: v2.32.0
+ rev: v2.32.1
hooks:
- id: pyupgrade
args: [--py37-plus]
@@ -42,7 +42,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.14.0
+ rev: v8.15.0
hooks:
- id: eslint
args: [--fix]
From b7a5f60ffca9ef2891c500223e7adffb035932b2 Mon Sep 17 00:00:00 2001
From: Brian Smith
Date: Sat, 14 May 2022 18:51:47 -0500
Subject: [PATCH 114/368] Add ripsecrets to all-repos.yaml
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index e6865d2b..d335ea3c 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -218,3 +218,4 @@
- https://github.com/lyz-code/yamlfix
- https://github.com/dannysepler/rm_unneeded_f_str
- https://github.com/cmhughes/latexindent.pl
+- https://github.com/sirwart/ripsecrets
From ff46b21db9a329c9640f065a43efb3777c3bfd46 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 23 May 2022 20:08:30 +0000
Subject: [PATCH 115/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.15.0 → v8.16.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.15.0...v8.16.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 29bc1071..8e24fcd9 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -42,7 +42,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.15.0
+ rev: v8.16.0
hooks:
- id: eslint
args: [--fix]
From 81fca2b2192d86df33014df43ebc00d9a21c68cc Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 30 May 2022 20:33:27 +0000
Subject: [PATCH 116/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v0.950 → v0.960](https://github.com/pre-commit/mirrors-mypy/compare/v0.950...v0.960)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 8e24fcd9..b198a7e2 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v0.950
+ rev: v0.960
hooks:
- id: mypy
additional_dependencies: [types-all]
From 59d9e132d27caebcc445a9388d301e9deab95aa8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=81lvaro=20Mond=C3=A9jar?=
Date: Sat, 4 Jun 2022 15:51:52 +0200
Subject: [PATCH 117/368] Explicit `verbose == false` as default defining hooks
---
sections/new-hooks.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sections/new-hooks.md b/sections/new-hooks.md
index 9bb9f8ba..3e67d936 100644
--- a/sections/new-hooks.md
+++ b/sections/new-hooks.md
@@ -51,7 +51,7 @@ file that tells pre-commit:
hooks if this hook fails. _new in 2.16.0_.
=r=
=c= [`verbose`](_#hooks-verbose)
- =c= (optional) if `true`, forces the output of the hook to be printed even when
+ =c= (optional: default `false`) if `true`, forces the output of the hook to be printed even when
the hook passes. _new in 1.6.0_.
=r=
=c= [`pass_filenames`](_#hooks-pass_filenames)
From ff92e6d6fbf61372de9e69c63dfd9a79fc6b885c Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 6 Jun 2022 20:21:18 +0000
Subject: [PATCH 118/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.16.0 → v8.17.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.16.0...v8.17.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b198a7e2..10da76c2 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -42,7 +42,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.16.0
+ rev: v8.17.0
hooks:
- id: eslint
args: [--fix]
From c9baf7ad9958bdabac65191519e0a5b55e48aace Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Sat, 11 Jun 2022 13:18:42 -0400
Subject: [PATCH 119/368] remove unneeded name in github actions
Committed via https://github.com/asottile/all-repos
---
.github/workflows/deploy.yml | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 4b7eb7c4..ab6322fa 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -1,4 +1,3 @@
-name: deploy
on:
pull_request:
push:
@@ -7,8 +6,7 @@ on:
- cron: '30 8 * * *'
jobs:
- build:
- name: pr
+ pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
From 129677ef1e5c696566bbfbe8e798c98de0e3e670 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 13 Jun 2022 21:56:43 +0000
Subject: [PATCH 120/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.2.0 → v4.3.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.2.0...v4.3.0)
- [github.com/asottile/pyupgrade: v2.32.1 → v2.34.0](https://github.com/asottile/pyupgrade/compare/v2.32.1...v2.34.0)
- [github.com/pre-commit/mirrors-mypy: v0.960 → v0.961](https://github.com/pre-commit/mirrors-mypy/compare/v0.960...v0.961)
---
.pre-commit-config.yaml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 10da76c2..14d1a98a 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v4.2.0
+ rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
@@ -23,7 +23,7 @@ repos:
- id: add-trailing-comma
args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade
- rev: v2.32.1
+ rev: v2.34.0
hooks:
- id: pyupgrade
args: [--py37-plus]
@@ -37,7 +37,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v0.960
+ rev: v0.961
hooks:
- id: mypy
additional_dependencies: [types-all]
From 1febe45faa35f5dc2af1bd9544de2e4e0fab7e0f Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 20 Jun 2022 20:35:45 +0000
Subject: [PATCH 121/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.17.0 → v8.18.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.17.0...v8.18.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 14d1a98a..32d2c100 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -42,7 +42,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.17.0
+ rev: v8.18.0
hooks:
- id: eslint
args: [--fix]
From ab3ca86a7e6f91a872ade5a40b0169fbe857f590 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 4 Jul 2022 21:58:15 +0000
Subject: [PATCH 122/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/reorder_python_imports: v3.1.0 → v3.3.0](https://github.com/asottile/reorder_python_imports/compare/v3.1.0...v3.3.0)
- [github.com/pre-commit/mirrors-eslint: v8.18.0 → v8.19.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.18.0...v8.19.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 32d2c100..91ab3fb5 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -10,7 +10,7 @@ repos:
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/asottile/reorder_python_imports
- rev: v3.1.0
+ rev: v3.3.0
hooks:
- id: reorder-python-imports
args: [--py37-plus, --add-import, 'from __future__ import annotations']
@@ -42,7 +42,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.18.0
+ rev: v8.19.0
hooks:
- id: eslint
args: [--fix]
From a828599b459590e726e995b5b397320c7bc3dc44 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 11 Jul 2022 21:25:26 +0000
Subject: [PATCH 123/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/reorder_python_imports: v3.3.0 → v3.8.1](https://github.com/asottile/reorder_python_imports/compare/v3.3.0...v3.8.1)
- [github.com/asottile/pyupgrade: v2.34.0 → v2.37.1](https://github.com/asottile/pyupgrade/compare/v2.34.0...v2.37.1)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 91ab3fb5..3b8f1c1b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -10,7 +10,7 @@ repos:
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/asottile/reorder_python_imports
- rev: v3.3.0
+ rev: v3.8.1
hooks:
- id: reorder-python-imports
args: [--py37-plus, --add-import, 'from __future__ import annotations']
@@ -23,7 +23,7 @@ repos:
- id: add-trailing-comma
args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade
- rev: v2.34.0
+ rev: v2.37.1
hooks:
- id: pyupgrade
args: [--py37-plus]
From c039ac20a116c3c5cd106e373d5bc7efc92607b7 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 18 Jul 2022 20:41:02 +0000
Subject: [PATCH 124/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.19.0 → v8.20.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.19.0...v8.20.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 3b8f1c1b..6316a6d2 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -42,7 +42,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.19.0
+ rev: v8.20.0
hooks:
- id: eslint
args: [--fix]
From 1cc04cd8a08d76a3cfa61c7fdb6d6b20d8fef85a Mon Sep 17 00:00:00 2001
From: Bastien Gerard
Date: Fri, 22 Jul 2022 22:48:54 +0200
Subject: [PATCH 125/368] add graphviz .dot linter/renderer hook
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index d335ea3c..f37234e9 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -219,3 +219,4 @@
- https://github.com/dannysepler/rm_unneeded_f_str
- https://github.com/cmhughes/latexindent.pl
- https://github.com/sirwart/ripsecrets
+- https://github.com/bagerard/graphviz-dot-hooks
From fb896580aaa29f46bd2482647305dfdea89a38dd Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 25 Jul 2022 21:45:03 +0000
Subject: [PATCH 126/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/reorder_python_imports: v3.8.1 → v3.8.2](https://github.com/asottile/reorder_python_imports/compare/v3.8.1...v3.8.2)
- [github.com/asottile/pyupgrade: v2.37.1 → v2.37.2](https://github.com/asottile/pyupgrade/compare/v2.37.1...v2.37.2)
- [github.com/pre-commit/mirrors-mypy: v0.961 → v0.971](https://github.com/pre-commit/mirrors-mypy/compare/v0.961...v0.971)
---
.pre-commit-config.yaml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 6316a6d2..233c74ee 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -10,7 +10,7 @@ repos:
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/asottile/reorder_python_imports
- rev: v3.8.1
+ rev: v3.8.2
hooks:
- id: reorder-python-imports
args: [--py37-plus, --add-import, 'from __future__ import annotations']
@@ -23,7 +23,7 @@ repos:
- id: add-trailing-comma
args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade
- rev: v2.37.1
+ rev: v2.37.2
hooks:
- id: pyupgrade
args: [--py37-plus]
@@ -37,7 +37,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v0.961
+ rev: v0.971
hooks:
- id: mypy
additional_dependencies: [types-all]
From 78c39712f2d101056d6b43c750ba83811c085892 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 1 Aug 2022 22:41:24 +0000
Subject: [PATCH 127/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/pyupgrade: v2.37.2 → v2.37.3](https://github.com/asottile/pyupgrade/compare/v2.37.2...v2.37.3)
- [github.com/PyCQA/flake8: 4.0.1 → 5.0.2](https://github.com/PyCQA/flake8/compare/4.0.1...5.0.2)
- [github.com/pre-commit/mirrors-eslint: v8.20.0 → v8.21.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.20.0...v8.21.0)
---
.pre-commit-config.yaml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 233c74ee..c4d82905 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -23,7 +23,7 @@ repos:
- id: add-trailing-comma
args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade
- rev: v2.37.2
+ rev: v2.37.3
hooks:
- id: pyupgrade
args: [--py37-plus]
@@ -33,7 +33,7 @@ repos:
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/flake8
- rev: 4.0.1
+ rev: 5.0.2
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
@@ -42,7 +42,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.20.0
+ rev: v8.21.0
hooks:
- id: eslint
args: [--fix]
From 76f69a8f2ad93163b9f59aab55bd0e5b24cff985 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 8 Aug 2022 22:25:22 +0000
Subject: [PATCH 128/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/PyCQA/flake8: 5.0.2 → 5.0.4](https://github.com/PyCQA/flake8/compare/5.0.2...5.0.4)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c4d82905..b7363ce5 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,7 +33,7 @@ repos:
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/flake8
- rev: 5.0.2
+ rev: 5.0.4
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
From 058561d3db566047d9fd29cf85303ab23e14abe9 Mon Sep 17 00:00:00 2001
From: Zsolt Dollenstein
Date: Tue, 9 Aug 2022 09:20:50 +0100
Subject: [PATCH 129/368] =?UTF-8?q?Add=20=C2=B5fmt=20hook?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index f37234e9..bafef002 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -220,3 +220,4 @@
- https://github.com/cmhughes/latexindent.pl
- https://github.com/sirwart/ripsecrets
- https://github.com/bagerard/graphviz-dot-hooks
+- https://github.com/omnilib/ufmt
From 8c62cdc5e516a65e47c9ab42f0ae95c69beddf50 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 15 Aug 2022 21:15:26 +0000
Subject: [PATCH 130/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-autopep8: v1.6.0 → v1.7.0](https://github.com/pre-commit/mirrors-autopep8/compare/v1.6.0...v1.7.0)
- [github.com/pre-commit/mirrors-eslint: v8.21.0 → v8.22.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.21.0...v8.22.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b7363ce5..67dba743 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -29,7 +29,7 @@ repos:
args: [--py37-plus]
exclude: ^install-local.py$
- repo: https://github.com/pre-commit/mirrors-autopep8
- rev: v1.6.0
+ rev: v1.7.0
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/flake8
@@ -42,7 +42,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.21.0
+ rev: v8.22.0
hooks:
- id: eslint
args: [--fix]
From ddb295f56796e9b8de9558d22462c5d0bd970431 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 29 Aug 2022 21:39:59 +0000
Subject: [PATCH 131/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.22.0 → v8.23.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.22.0...v8.23.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 67dba743..ba5a78f2 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -42,7 +42,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.22.0
+ rev: v8.23.0
hooks:
- id: eslint
args: [--fix]
From 031950d3ab458afe7a4465c6183312cbd8a09aaa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ville=20Skytt=C3=A4?=
Date: Thu, 1 Sep 2022 18:17:02 +0300
Subject: [PATCH 132/368] Add scop/pre-commit-perlcritic
The major difference of this compared to the henryykt/pre-commit-perl
one is that this one actually installs perlcritic, whereas the other
requires it to be installed separately.
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index bafef002..8b148876 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -205,6 +205,7 @@
- https://github.com/sqlfluff/sqlfluff
- https://github.com/adamchainz/pre-commit-dprint
- https://github.com/scop/pre-commit-shfmt
+- https://github.com/scop/pre-commit-perlcritic
- https://github.com/BlankSpruce/gersemi
- https://github.com/realm/SwiftLint
- https://gitlab.com/bmares/check-json5
From 644e0af33b9c5322cf54dcca59713b0e96927faf Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 12 Sep 2022 21:55:25 +0000
Subject: [PATCH 133/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.23.0 → v8.23.1](https://github.com/pre-commit/mirrors-eslint/compare/v8.23.0...v8.23.1)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index ba5a78f2..1a6832b7 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -42,7 +42,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.23.0
+ rev: v8.23.1
hooks:
- id: eslint
args: [--fix]
From be71fbfe7daf7e866613ee4e631d1c1069f400a5 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Wed, 14 Sep 2022 08:42:54 -0400
Subject: [PATCH 134/368] remove redwarp/optimize-png-hooks which sets
`verbose: true`
---
all-repos.yaml | 1 -
1 file changed, 1 deletion(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index bafef002..26eb4fc3 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -185,7 +185,6 @@
- https://github.com/chrismgrayftsinc/jsonnetfmt
- https://github.com/zricethezav/gitleaks
- https://github.com/hugoh/pre-commit-fish
-- https://github.com/redwarp/optimize-png-hooks
- https://github.com/nbyl/pre-commit-license-checks
- https://github.com/jonasbb/pre-commit-latex-hooks
- https://github.com/dfm/black_nbconvert
From 74297b982793cab1cc8bce5f78ff5447495ae67a Mon Sep 17 00:00:00 2001
From: Yevhen Fabizhevskyi
Date: Thu, 15 Sep 2022 21:36:16 +0900
Subject: [PATCH 135/368] Remove kintoandar/pre-commit hook
---
all-repos.yaml | 1 -
1 file changed, 1 deletion(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index 26eb4fc3..da575749 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -52,7 +52,6 @@
- https://github.com/doublify/pre-commit-go
- https://github.com/doublify/pre-commit-hindent
- https://github.com/doublify/pre-commit-rust
-- https://github.com/kintoandar/pre-commit
- https://github.com/awebdeveloper/pre-commit-stylelint
- https://github.com/awebdeveloper/pre-commit-tslint
- https://github.com/adrienverge/yamllint
From 52143982fb9a4b43fd15b5f246636ed388735c4a Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Fri, 16 Sep 2022 09:44:02 -0400
Subject: [PATCH 136/368] fix myint's repository names
---
all-repos.yaml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index 20bf9a2b..459a4cbe 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -77,6 +77,8 @@
- https://github.com/PyCQA/doc8
- https://github.com/PyCQA/prospector
- https://github.com/PyCQA/isort
+- https://github.com/PyCQA/docformatter
+- https://github.com/PyCQA/autoflake
- https://github.com/miki725/importanize
- https://github.com/motet-a/jinjalint
- https://github.com/milin/giticket
@@ -96,9 +98,7 @@
- https://gitlab.com/smop/pre-commit-hooks
- https://github.com/seddonym/import-linter
- https://github.com/marco-c/taskcluster_yml_validator
-- https://github.com/myint/docformatter
-- https://github.com/myint/rstcheck
-- https://github.com/myint/autoflake
+- https://github.com/rstcheck/rstcheck
- https://github.com/lorenzwalthert/precommit
- https://github.com/FelixSeptem/pre-commit-golang
- https://gitlab.com/daverona/pre-commit/cpp
From 99714f6a109cd81183f752effd5a26c7165d20da Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Fri, 16 Sep 2022 09:54:28 -0400
Subject: [PATCH 137/368] forbid setting `fail_fast` in advertised hooks
---
make_all_hooks.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/make_all_hooks.py b/make_all_hooks.py
index d88d9ce6..5d046dce 100644
--- a/make_all_hooks.py
+++ b/make_all_hooks.py
@@ -24,11 +24,15 @@ def get_manifest(repo_path: str) -> tuple[bool, str, list[dict[str, Any]]]:
manifest_path = os.path.join(repo_dir, '.pre-commit-hooks.yaml')
# Validate the manifest just to make sure it's ok.
manifest = load_manifest(manifest_path)
- # hooks should not set debugging `verbose: true` flag
for hook in manifest:
+ # hooks should not set debugging `verbose: true` flag
if hook['verbose']:
print(f'{repo_path} ({hook["id"]}) sets `verbose: true`')
return False, repo_path, []
+ # hooks should not set `fail-fast` breaking user expectations
+ if hook['fail_fast']:
+ print(f'{repo_path} ({hook["id"]}) sets `fail_fast: true`')
+ return False, repo_path, []
with open(manifest_path) as f:
return True, repo_path, fast_load(f)
@@ -40,7 +44,7 @@ def main() -> int:
hooks_json = {}
with multiprocessing.Pool(4) as pool:
- for ok, path, manifest in pool.map(get_manifest, repos):
+ for ok, path, manifest in pool.imap(get_manifest, repos):
if not ok:
return 1
hooks_json[path] = manifest
From 58400227fe7c17d986da4ab28fa0a894a5212b6f Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Fri, 16 Sep 2022 10:01:30 -0400
Subject: [PATCH 138/368] formally deprecate install-local.py
---
install-local.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/install-local.py b/install-local.py
index e46e9816..36543dd9 100644
--- a/install-local.py
+++ b/install-local.py
@@ -82,6 +82,9 @@ def virtualenv(path):
def main():
# type: (...) -> int
+ print('*** install-local.py: this script is deprecated ***')
+ print('=> https://pre-commit.com/#install')
+
venv_path = os.path.join(os.environ['HOME'], '.pre-commit-venv')
bin_dir = os.path.join(os.environ['HOME'], 'bin')
script_src = os.path.join(venv_path, 'bin', 'pre-commit')
From 4e12ca6eae96881a41b53676a608fc11655afe24 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 19 Sep 2022 22:48:34 +0000
Subject: [PATCH 139/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/pyupgrade: v2.37.3 → v2.38.0](https://github.com/asottile/pyupgrade/compare/v2.37.3...v2.38.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 1a6832b7..d6fb5929 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -23,7 +23,7 @@ repos:
- id: add-trailing-comma
args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade
- rev: v2.37.3
+ rev: v2.38.0
hooks:
- id: pyupgrade
args: [--py37-plus]
From 2c434954569fc4d64765a6bd82e0f6b1bd9a9501 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 26 Sep 2022 22:58:22 +0000
Subject: [PATCH 140/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/reorder_python_imports: v3.8.2 → v3.8.3](https://github.com/asottile/reorder_python_imports/compare/v3.8.2...v3.8.3)
- [github.com/asottile/add-trailing-comma: v2.2.3 → v2.3.0](https://github.com/asottile/add-trailing-comma/compare/v2.2.3...v2.3.0)
- [github.com/asottile/pyupgrade: v2.38.0 → v2.38.2](https://github.com/asottile/pyupgrade/compare/v2.38.0...v2.38.2)
- [github.com/pre-commit/mirrors-eslint: v8.23.1 → v8.24.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.23.1...v8.24.0)
---
.pre-commit-config.yaml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index d6fb5929..13891117 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -10,7 +10,7 @@ repos:
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/asottile/reorder_python_imports
- rev: v3.8.2
+ rev: v3.8.3
hooks:
- id: reorder-python-imports
args: [--py37-plus, --add-import, 'from __future__ import annotations']
@@ -18,12 +18,12 @@ repos:
- id: reorder-python-imports
files: ^install-local.py$
- repo: https://github.com/asottile/add-trailing-comma
- rev: v2.2.3
+ rev: v2.3.0
hooks:
- id: add-trailing-comma
args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade
- rev: v2.38.0
+ rev: v2.38.2
hooks:
- id: pyupgrade
args: [--py37-plus]
@@ -42,7 +42,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.23.1
+ rev: v8.24.0
hooks:
- id: eslint
args: [--fix]
From 845a46821f2e2af21e31f3ee8912dddf2785d10d Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Tue, 27 Sep 2022 15:02:22 -0400
Subject: [PATCH 141/368] remove some deprecated mirrors- repos
---
all-repos.yaml | 2 --
1 file changed, 2 deletions(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index 459a4cbe..5c263add 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -2,7 +2,6 @@
- https://github.com/pre-commit/pre-commit-hooks
- https://github.com/pre-commit/mirrors-autopep8
- https://github.com/pre-commit/mirrors-clang-format
-- https://github.com/pre-commit/mirrors-coffeelint
- https://github.com/pre-commit/mirrors-csslint
- https://github.com/pre-commit/mirrors-eslint
- https://github.com/pre-commit/mirrors-fixmyjs
@@ -10,7 +9,6 @@
- https://github.com/pre-commit/mirrors-mypy
- https://github.com/pre-commit/mirrors-prettier
- https://github.com/pre-commit/mirrors-puppet-lint
-- https://github.com/pre-commit/mirrors-ruby-lint
- https://github.com/pre-commit/mirrors-scss-lint
- https://github.com/pre-commit/mirrors-yapf
- https://github.com/pre-commit/pygrep-hooks
From 527d3196d0177ff9041711d88a567648892dc57c Mon Sep 17 00:00:00 2001
From: Marco Edward Gorelli <33491632+MarcoGorelli@users.noreply.github.com>
Date: Sun, 2 Oct 2022 11:46:32 +0100
Subject: [PATCH 142/368] Add cython-lint to list of hooks
Something I've been working on https://github.com/MarcoGorelli/cython-lint, looks like it'd only be the second hook here (after isort) to run on cython files
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 5c263add..e5f6382e 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -169,6 +169,7 @@
- https://github.com/guid-empty/flutter-dependency-validation-pre-commit
- https://github.com/cpplint/cpplint
- https://github.com/MarcoGorelli/absolufy-imports
+- https://github.com/MarcoGorelli/cython-lint
- https://github.com/domdfcoding/flake2lint
- https://github.com/dotnet/format
- https://github.com/ashwin153/pre-commit-vagrant
From 9603a263f6b876efe2126ac6a14d4e92bb1ace15 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 3 Oct 2022 22:52:00 +0000
Subject: [PATCH 143/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v0.971 → v0.981](https://github.com/pre-commit/mirrors-mypy/compare/v0.971...v0.981)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 13891117..a178c30f 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v0.971
+ rev: v0.981
hooks:
- id: mypy
additional_dependencies: [types-all]
From af98d9f272a1ded9515e0de5c991bc5b9641917c Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 10 Oct 2022 23:50:03 +0000
Subject: [PATCH 144/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/reorder_python_imports: v3.8.3 → v3.8.4](https://github.com/asottile/reorder_python_imports/compare/v3.8.3...v3.8.4)
- [github.com/asottile/pyupgrade: v2.38.2 → v3.1.0](https://github.com/asottile/pyupgrade/compare/v2.38.2...v3.1.0)
- [github.com/pre-commit/mirrors-mypy: v0.981 → v0.982](https://github.com/pre-commit/mirrors-mypy/compare/v0.981...v0.982)
- [github.com/pre-commit/mirrors-eslint: v8.24.0 → v8.25.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.24.0...v8.25.0)
---
.pre-commit-config.yaml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index a178c30f..e4658ba9 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -10,7 +10,7 @@ repos:
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/asottile/reorder_python_imports
- rev: v3.8.3
+ rev: v3.8.4
hooks:
- id: reorder-python-imports
args: [--py37-plus, --add-import, 'from __future__ import annotations']
@@ -23,7 +23,7 @@ repos:
- id: add-trailing-comma
args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade
- rev: v2.38.2
+ rev: v3.1.0
hooks:
- id: pyupgrade
args: [--py37-plus]
@@ -37,12 +37,12 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v0.981
+ rev: v0.982
hooks:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.24.0
+ rev: v8.25.0
hooks:
- id: eslint
args: [--fix]
From 76dddedde3d016083c6b66718bfcb3c25a4d26dd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ville=20Skytt=C3=A4?=
Date: Sat, 15 Oct 2022 21:23:00 +0300
Subject: [PATCH 145/368] Add daveshanley/vacuum
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index e5f6382e..781fd7ee 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -219,3 +219,4 @@
- https://github.com/sirwart/ripsecrets
- https://github.com/bagerard/graphviz-dot-hooks
- https://github.com/omnilib/ufmt
+- https://github.com/daveshanley/vacuum
From 04f56c9fd8df612e181a9d2c4934edd576742160 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 17 Oct 2022 23:10:27 +0000
Subject: [PATCH 146/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/reorder_python_imports: v3.8.4 → v3.8.5](https://github.com/asottile/reorder_python_imports/compare/v3.8.4...v3.8.5)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e4658ba9..2b2a5b26 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -10,7 +10,7 @@ repos:
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/asottile/reorder_python_imports
- rev: v3.8.4
+ rev: v3.8.5
hooks:
- id: reorder-python-imports
args: [--py37-plus, --add-import, 'from __future__ import annotations']
From b0c11b4eb38ee20f824af18435bed6f0fc1a4021 Mon Sep 17 00:00:00 2001
From: Marco Edward Gorelli <33491632+MarcoGorelli@users.noreply.github.com>
Date: Wed, 19 Oct 2022 14:00:23 +0100
Subject: [PATCH 147/368] Add auto-walrus
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 781fd7ee..0dc94069 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -169,6 +169,7 @@
- https://github.com/guid-empty/flutter-dependency-validation-pre-commit
- https://github.com/cpplint/cpplint
- https://github.com/MarcoGorelli/absolufy-imports
+- https://github.com/MarcoGorelli/auto-walrus
- https://github.com/MarcoGorelli/cython-lint
- https://github.com/domdfcoding/flake2lint
- https://github.com/dotnet/format
From f07ebad86a157b255a0fe2f1efeaa448f1f0b002 Mon Sep 17 00:00:00 2001
From: Nuz / Lovegood
Date: Wed, 19 Oct 2022 12:19:14 -0700
Subject: [PATCH 148/368] Add nuztalgia/botstrap
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 0dc94069..7f1dc6cf 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -221,3 +221,4 @@
- https://github.com/bagerard/graphviz-dot-hooks
- https://github.com/omnilib/ufmt
- https://github.com/daveshanley/vacuum
+- https://github.com/nuztalgia/botstrap
From ef4f324b41ff224e000e3895f21673b0dd45ca85 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 24 Oct 2022 22:36:34 +0000
Subject: [PATCH 149/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.25.0 → v8.26.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.25.0...v8.26.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2b2a5b26..877ab145 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -42,7 +42,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.25.0
+ rev: v8.26.0
hooks:
- id: eslint
args: [--fix]
From 5c36dc1f0d449db5304cc487ffe139b9c1fd2c94 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 31 Oct 2022 23:27:50 +0000
Subject: [PATCH 150/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/reorder_python_imports: v3.8.5 → v3.9.0](https://github.com/asottile/reorder_python_imports/compare/v3.8.5...v3.9.0)
- [github.com/asottile/pyupgrade: v3.1.0 → v3.2.0](https://github.com/asottile/pyupgrade/compare/v3.1.0...v3.2.0)
- [github.com/pre-commit/mirrors-autopep8: v1.7.0 → v2.0.0](https://github.com/pre-commit/mirrors-autopep8/compare/v1.7.0...v2.0.0)
---
.pre-commit-config.yaml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 877ab145..13ffa451 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -10,7 +10,7 @@ repos:
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/asottile/reorder_python_imports
- rev: v3.8.5
+ rev: v3.9.0
hooks:
- id: reorder-python-imports
args: [--py37-plus, --add-import, 'from __future__ import annotations']
@@ -23,13 +23,13 @@ repos:
- id: add-trailing-comma
args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade
- rev: v3.1.0
+ rev: v3.2.0
hooks:
- id: pyupgrade
args: [--py37-plus]
exclude: ^install-local.py$
- repo: https://github.com/pre-commit/mirrors-autopep8
- rev: v1.7.0
+ rev: v2.0.0
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/flake8
From e6f8056b33b0ad875e4831dd7c0bc2c19f23ceff Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 7 Nov 2022 22:31:14 +0000
Subject: [PATCH 151/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.26.0 → v8.27.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.26.0...v8.27.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 13ffa451..4684f520 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -42,7 +42,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.26.0
+ rev: v8.27.0
hooks:
- id: eslint
args: [--fix]
From ee66eb1fcc557a974c9ecff6128f89520445badb Mon Sep 17 00:00:00 2001
From: Quentin Agren
Date: Sat, 12 Nov 2022 18:32:51 +0100
Subject: [PATCH 152/368] Surround hook declaration file name with backticks
Thank you Anthony, for everything! See you soon on AOC ;)
---
sections/new-hooks.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sections/new-hooks.md b/sections/new-hooks.md
index 3e67d936..4dd597f7 100644
--- a/sections/new-hooks.md
+++ b/sections/new-hooks.md
@@ -6,7 +6,7 @@ want.
The hook must exit nonzero on failure or modify files.
-A git repo containing pre-commit plugins must contain a .pre-commit-hooks.yaml
+A git repo containing pre-commit plugins must contain a `.pre-commit-hooks.yaml`
file that tells pre-commit:
```table
From 00f66b89881f92a93d3027657d3b875390f98ed5 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 14 Nov 2022 23:37:05 +0000
Subject: [PATCH 153/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/pyupgrade: v3.2.0 → v3.2.2](https://github.com/asottile/pyupgrade/compare/v3.2.0...v3.2.2)
- [github.com/pre-commit/mirrors-mypy: v0.982 → v0.990](https://github.com/pre-commit/mirrors-mypy/compare/v0.982...v0.990)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 4684f520..cfede1b4 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -23,7 +23,7 @@ repos:
- id: add-trailing-comma
args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade
- rev: v3.2.0
+ rev: v3.2.2
hooks:
- id: pyupgrade
args: [--py37-plus]
@@ -37,7 +37,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v0.982
+ rev: v0.990
hooks:
- id: mypy
additional_dependencies: [types-all]
From 73a3197f185a93a51c0cdd22ee74534b05c27c43 Mon Sep 17 00:00:00 2001
From: Konstantinos Papadopoulos
Date: Sat, 19 Nov 2022 19:11:10 +0100
Subject: [PATCH 154/368] Fix link to `default_install_hook_types` in `cli`
section
Changed the link to `default_install_hook_types` in the
`pre-commit install` section of the docs to point from
`#top_level-default_language_version` to `#top_level-default_install_hook_types`.
Fixes #746
---
sections/cli.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sections/cli.md b/sections/cli.md
index 94aba71f..b1425e4b 100644
--- a/sections/cli.md
+++ b/sections/cli.md
@@ -150,7 +150,7 @@ Some example useful invocations:
environments.
_new in 2.18.0_: `pre-commit install` will now install hooks from
-[`default_install_hook_types`](#top_level-default_language_version) if
+[`default_install_hook_types`](#top_level-default_install_hook_types) if
`--hook-type` is not specified on the command line.
## pre-commit install-hooks [options] #pre-commit-install-hooks
From fd6e98050931bf2c5a1ef4734e33fc1cd986dc08 Mon Sep 17 00:00:00 2001
From: Adam Moss <2951486+adam-moss@users.noreply.github.com>
Date: Wed, 16 Nov 2022 21:45:44 +0000
Subject: [PATCH 155/368] add adam-moss/pre-commit-hooks
adds pre-commit hooks to
- add a Pre-Commit-Config: trailer to commit messages
- add ssh based git signing key to ssh agent
- remove ssh based git signing key from ssh-agent
Implemented as POSIX shell scripts for portability and simplicity
Signed-off-by: Adam Moss <2951486+adam-moss@users.noreply.github.com>
---
all-repos.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 7f1dc6cf..f62b8e75 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -222,3 +222,5 @@
- https://github.com/omnilib/ufmt
- https://github.com/daveshanley/vacuum
- https://github.com/nuztalgia/botstrap
+- https://gitlab.com/adam-moss/pre-commit-trailer
+- https://gitlab.com/adam-moss/pre-commit-ssh-git-signing-key
From b89905c17d00905d59821366125359002419290c Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 21 Nov 2022 23:12:25 +0000
Subject: [PATCH 156/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v0.990 → v0.991](https://github.com/pre-commit/mirrors-mypy/compare/v0.990...v0.991)
- [github.com/pre-commit/mirrors-eslint: v8.27.0 → v8.28.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.27.0...v8.28.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index cfede1b4..4b965a33 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,12 +37,12 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v0.990
+ rev: v0.991
hooks:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.27.0
+ rev: v8.28.0
hooks:
- id: eslint
args: [--fix]
From f0773120610d28a60bf3c0e63a10f8d1927d0f2f Mon Sep 17 00:00:00 2001
From: Trevor Gross
Date: Thu, 27 Oct 2022 14:17:23 -0400
Subject: [PATCH 157/368] Add ruff, python linter written in rust
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index f62b8e75..78db08e9 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -224,3 +224,4 @@
- https://github.com/nuztalgia/botstrap
- https://gitlab.com/adam-moss/pre-commit-trailer
- https://gitlab.com/adam-moss/pre-commit-ssh-git-signing-key
+- https://github.com/charliermarsh/ruff-pre-commit
From e7255d0facb23639d7a7aa1f080b762d19212fed Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 29 Nov 2022 01:10:09 +0000
Subject: [PATCH 158/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v4.4.0)
- [github.com/PyCQA/flake8: 5.0.4 → 6.0.0](https://github.com/PyCQA/flake8/compare/5.0.4...6.0.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 4b965a33..2fb27f66 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v4.3.0
+ rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
@@ -33,7 +33,7 @@ repos:
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/flake8
- rev: 5.0.4
+ rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
From 06a607125fc2744de9ccb66fa2dd7b8a62334df6 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Mon, 28 Nov 2022 22:13:08 -0500
Subject: [PATCH 159/368] drop python<3.7 in deprecated install-local.py
---
.pre-commit-config.yaml | 3 ---
install-local.py | 45 ++++++++++++++---------------------------
2 files changed, 15 insertions(+), 33 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2fb27f66..0bb1ee64 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -14,9 +14,7 @@ repos:
hooks:
- id: reorder-python-imports
args: [--py37-plus, --add-import, 'from __future__ import annotations']
- exclude: ^install-local.py$
- id: reorder-python-imports
- files: ^install-local.py$
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.3.0
hooks:
@@ -27,7 +25,6 @@ repos:
hooks:
- id: pyupgrade
args: [--py37-plus]
- exclude: ^install-local.py$
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v2.0.0
hooks:
diff --git a/install-local.py b/install-local.py
index 36543dd9..74bac876 100644
--- a/install-local.py
+++ b/install-local.py
@@ -1,7 +1,5 @@
-#!/usr/bin/env python
-from __future__ import absolute_import
-from __future__ import print_function
-from __future__ import unicode_literals
+#!/usr/bin/env python3
+from __future__ import annotations
import contextlib
import hashlib
@@ -11,17 +9,8 @@
import subprocess
import sys
import tarfile
-
-import distutils.spawn
-
-
-if str is bytes:
- from urllib import urlopen # type: ignore
-else:
- from urllib.request import urlopen
-
-if False:
- from typing import Generator
+import urllib.request
+from typing import Generator
TGZ = (
@@ -33,33 +22,30 @@
PKG_PATH = '/tmp/.virtualenv-pkg'
-def clean(dirname):
- # type: (str) -> None
+def clean(dirname: str) -> None:
if os.path.exists(dirname):
shutil.rmtree(dirname)
@contextlib.contextmanager
-def clean_path():
- # type: (...) -> Generator[None, None, None]
+def clean_path() -> Generator[None, None, None]:
try:
yield
finally:
clean(PKG_PATH)
-def virtualenv(path):
- # type: (str) -> int
+def virtualenv(path: str) -> int:
clean(PKG_PATH)
clean(path)
- print('Downloading ' + TGZ)
- tar_bytes = urlopen(TGZ).read()
+ print(f'Downloading {TGZ}')
+ tar_bytes = urllib.request.urlopen(TGZ).read()
checksum = hashlib.sha256(tar_bytes).hexdigest()
if checksum != CHECKSUM:
print(
- 'Checksums did not match. '
- 'Got {}, expected {}.'.format(checksum, CHECKSUM),
+ f'Checksums did not match. '
+ f'Got {checksum}, expected {CHECKSUM}.',
file=sys.stderr,
)
return 1
@@ -80,8 +66,7 @@ def virtualenv(path):
))
-def main():
- # type: (...) -> int
+def main() -> int:
print('*** install-local.py: this script is deprecated ***')
print('=> https://pre-commit.com/#install')
@@ -106,7 +91,7 @@ def main():
))
print('*' * 79)
- print('Installing pre-commit to {}'.format(script_dest))
+ print(f'Installing pre-commit to {script_dest}')
print('*' * 79)
if not os.path.exists(bin_dir):
@@ -118,8 +103,8 @@ def main():
os.symlink(script_src, script_dest)
- if not distutils.spawn.find_executable('pre-commit'):
- print('It looks like {} is not on your path'.format(bin_dir))
+ if not shutil.which('pre-commit'):
+ print(f'It looks like {bin_dir} is not on your path')
print('You may want to add it.')
print('Often this does the trick: source ~/.profile')
From b58b4ea8db0d6923bd10c58099fd479b00baff3a Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 5 Dec 2022 23:52:28 +0000
Subject: [PATCH 160/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/pyupgrade: v3.2.2 → v3.3.0](https://github.com/asottile/pyupgrade/compare/v3.2.2...v3.3.0)
- [github.com/pre-commit/mirrors-eslint: v8.28.0 → v8.29.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.28.0...v8.29.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 0bb1ee64..8a9ebb51 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -21,7 +21,7 @@ repos:
- id: add-trailing-comma
args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade
- rev: v3.2.2
+ rev: v3.3.0
hooks:
- id: pyupgrade
args: [--py37-plus]
@@ -39,7 +39,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.28.0
+ rev: v8.29.0
hooks:
- id: eslint
args: [--fix]
From 9ea73792ecb4a0993071bea59be854cacfb61508 Mon Sep 17 00:00:00 2001
From: Colin Dean
Date: Sun, 11 Dec 2022 01:14:54 -0500
Subject: [PATCH 161/368] Adds checkmake repo
checkmake got a hook configuration in https://github.com/mrtazz/checkmake/commit/4e37f3a6ea00208b3f5bd04eaa0f075068237f18
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 78db08e9..454b2e69 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -225,3 +225,4 @@
- https://gitlab.com/adam-moss/pre-commit-trailer
- https://gitlab.com/adam-moss/pre-commit-ssh-git-signing-key
- https://github.com/charliermarsh/ruff-pre-commit
+- https://github.com/mrtazz/checkmake
From 40c9dfde3a45323823d7b8ba83590c8fb8e6f08d Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 13 Dec 2022 00:40:12 +0000
Subject: [PATCH 162/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/add-trailing-comma: v2.3.0 → v2.4.0](https://github.com/asottile/add-trailing-comma/compare/v2.3.0...v2.4.0)
- [github.com/asottile/pyupgrade: v3.3.0 → v3.3.1](https://github.com/asottile/pyupgrade/compare/v3.3.0...v3.3.1)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 8a9ebb51..6d3ae91b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -16,12 +16,12 @@ repos:
args: [--py37-plus, --add-import, 'from __future__ import annotations']
- id: reorder-python-imports
- repo: https://github.com/asottile/add-trailing-comma
- rev: v2.3.0
+ rev: v2.4.0
hooks:
- id: add-trailing-comma
args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade
- rev: v3.3.0
+ rev: v3.3.1
hooks:
- id: pyupgrade
args: [--py37-plus]
From 886dcec8c766d036e1dbf8b6b4f948b218b8f897 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ville=20Skytt=C3=A4?=
Date: Sun, 4 Dec 2022 12:55:55 +0200
Subject: [PATCH 163/368] Elaborate on hook level confinement, add a few
examples
Per discussion at and around
https://github.com/pre-commit/pre-commit/issues/2076#issuecomment-933717382
---
sections/advanced.md | 11 +++++++++--
sections/new-hooks.md | 2 +-
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/sections/advanced.md b/sections/advanced.md
index 083e0ef4..58b8e99f 100644
--- a/sections/advanced.md
+++ b/sections/advanced.md
@@ -220,9 +220,16 @@ to run at the stage defined through that option. For instance,
to run at the `push` stage.
Hooks can however be confined to a stage by setting the [`stages`](#config-stages)
-property in your `.pre-commit-config.yaml`. The [`stages`](#config-stages) property
-is an array and can contain any of `commit`, `merge-commit`, `push`, `prepare-commit-msg`,
+property in your `.pre-commit-config.yaml`, and the corresponding [`stages`](#hook-stages)
+property in the hook's `.pre-commit-hooks.yaml` definition. The `stages` properties
+are arrays and can contain any of `commit`, `merge-commit`, `push`, `prepare-commit-msg`,
`commit-msg`, `post-checkout`, `post-commit`, `post-merge`, `post-rewrite`, and `manual`.
+It is useful to provide an appropriate set of stages out of the box in
+`.pre-commit-hooks.yaml` hook definitions to avoid unnecessary runs of hooks in
+stages where they do not and can not do anything useful. For example, a
+reasonable setting for code formatter and the like hooks would be
+`stages: [commit, merge-commit, push, manual]`, and one for hooks that operate
+on commit messages could be `stages: [commit-msg, manual]`.
If you do not want to have hooks installed by default on the stage passed
during a `pre-commit install --hook-type ...`, please set the [`default_stages`](#top_level-default_stages)
diff --git a/sections/new-hooks.md b/sections/new-hooks.md
index 4dd597f7..b89ebd57 100644
--- a/sections/new-hooks.md
+++ b/sections/new-hooks.md
@@ -80,7 +80,7 @@ file that tells pre-commit:
=c= [`stages`](_#hooks-stages)
=c= (optional: default (all stages)) confines the hook to the `commit`, `merge-commit`,
`push`, `prepare-commit-msg`, `commit-msg`, `post-checkout`, `post-commit`,
- `post-merge`, `post-rewrite`, or `manual` stage. See
+ `post-merge`, `post-rewrite`, and/or `manual` stage(s). See
[Confining hooks to run at certain stages](#confining-hooks-to-run-at-certain-stages).
```
From be72be387a65317e9b16d9112728924b529b495a Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Thu, 15 Dec 2022 13:58:50 -0500
Subject: [PATCH 164/368] add pr template
---
.github/pull_request_template.md | 8 ++++++++
1 file changed, 8 insertions(+)
create mode 100644 .github/pull_request_template.md
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
new file mode 100644
index 00000000..becc9a38
--- /dev/null
+++ b/.github/pull_request_template.md
@@ -0,0 +1,8 @@
+
+
+my new repository:
+
+- [ ] is added to the bottom *or* with existing repos from the same account
+- [ ] contains a license
+- [ ] is not `language: system` or `language: docker`
+- [ ] does not contain "pre-commit" in the name
From e1aabea9b08c38175d25351b6161e8693c1a42d6 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 20 Dec 2022 00:30:20 +0000
Subject: [PATCH 165/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-autopep8: v2.0.0 → v2.0.1](https://github.com/pre-commit/mirrors-autopep8/compare/v2.0.0...v2.0.1)
- [github.com/pre-commit/mirrors-eslint: v8.29.0 → v8.30.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.29.0...v8.30.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 6d3ae91b..ac868b8a 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -26,7 +26,7 @@ repos:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/pre-commit/mirrors-autopep8
- rev: v2.0.0
+ rev: v2.0.1
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/flake8
@@ -39,7 +39,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.29.0
+ rev: v8.30.0
hooks:
- id: eslint
args: [--fix]
From 759c6000e3115850699bb5eec01bd6c331634f05 Mon Sep 17 00:00:00 2001
From: jshwi
Date: Sun, 25 Dec 2022 19:27:07 +1100
Subject: [PATCH 166/368] add docsig
check signature params for proper documentation
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 454b2e69..39ed135c 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -226,3 +226,4 @@
- https://gitlab.com/adam-moss/pre-commit-ssh-git-signing-key
- https://github.com/charliermarsh/ruff-pre-commit
- https://github.com/mrtazz/checkmake
+- https://github.com/jshwi/docsig
From c293c69ffe6feca249ebee98e9dee91ebf37042e Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Sun, 25 Dec 2022 18:25:34 -0500
Subject: [PATCH 167/368] document changes in pre-commit 2.21
---
sections/advanced.md | 1 +
sections/new-hooks.md | 5 +++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/sections/advanced.md b/sections/advanced.md
index 58b8e99f..897fb2af 100644
--- a/sections/advanced.md
+++ b/sections/advanced.md
@@ -577,6 +577,7 @@ Valid values for specific languages are listed below:
windows.
- node: See [nodeenv](https://github.com/ekalinin/nodeenv#advanced).
- ruby: See [ruby-build](https://github.com/sstephenson/ruby-build/tree/master/share/ruby-build).
+- _new in 2.21.0_ rust: `language_version` is passed to `rustup`
_new in 1.14.0_: you can now set [`default_language_version`](#top_level-default_language_version)
at the [top level](#pre-commit-configyaml---top-level) in your configuration to
diff --git a/sections/new-hooks.md b/sections/new-hooks.md
index b89ebd57..3b1f8394 100644
--- a/sections/new-hooks.md
+++ b/sections/new-hooks.md
@@ -440,8 +440,9 @@ build _your_ hook repo), or the special syntax
`cli:{package_name}:{package_version}` for a CLI dependency (built separately,
with binaries made available for use by hooks).
-__Support:__ Rust hooks currently require a pre-existing Rust installation. It
-has been tested on linux, Windows, and macOS.
+_new in 2.21.0_: rust now supports `language_version`.
+
+__Support:__ It has been tested on linux, Windows, and macOS.
### swift
From 711c9aca5d8af56807d1a060a8652f8933f67669 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Thu, 29 Dec 2022 22:50:33 -0500
Subject: [PATCH 168/368] azure pipelines -> github actions
---
base.mako | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/base.mako b/base.mako
index b0545d26..286c9fa6 100644
--- a/base.mako
+++ b/base.mako
@@ -54,11 +54,8 @@
A framework for managing and maintaining multi-language pre-commit hooks.
-
-
-
-
-
+
+
From 866c3d4e23c8a5881c7b5f16ddf3265fcba770b5 Mon Sep 17 00:00:00 2001
From: Marco Edward Gorelli <33491632+MarcoGorelli@users.noreply.github.com>
Date: Sun, 1 Jan 2023 15:30:57 +0000
Subject: [PATCH 169/368] Use non-broken rev in black formatter hook
As mentioned in https://github.com/pre-commit/pre-commit/issues/2663 :
> Newcomers tend to copy-and-paste from documentation to try things out, if they get an error they'll tend to assume that something went wrong with their installation
>
> I understand not wanting to always keep it pinned to the latest versions, but at least not pinning to a broken rev seems like a reasonable ask
---
sections/install.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sections/install.md b/sections/install.md
index 06aec41f..a7a4715f 100644
--- a/sections/install.md
+++ b/sections/install.md
@@ -64,7 +64,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
- rev: 21.12b0
+ rev: 22.10.0
hooks:
- id: black
```
From 22e8fb56b1262b2db938f0cce3642454505f37d4 Mon Sep 17 00:00:00 2001
From: Konstantinos Papadopoulos
Date: Mon, 2 Jan 2023 19:41:28 +0100
Subject: [PATCH 170/368] add environment variables for `post-merg` and
`pre-push`
---
sections/advanced.md | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/sections/advanced.md b/sections/advanced.md
index 897fb2af..22593984 100644
--- a/sections/advanced.md
+++ b/sections/advanced.md
@@ -75,6 +75,9 @@ pre-commit installed at .git/hooks/post-merge
The hook fires after a successful `git merge`.
+Environment variables:
+- `PRE_COMMIT_IS_SQUASH_MERGE`: whether it is a squash merge.
+
[post-merge]: https://git-scm.com/docs/githooks#_post_merge
## pre-commit during clean merges
@@ -104,7 +107,7 @@ $ pre-commit install --hook-type pre-push
pre-commit installed at .git/hooks/pre-push
```
-During a push, pre-commit will export the following environment variables:
+Environment variables:
- `PRE_COMMIT_FROM_REF`: the remote revision that is being pushed to.
- _new in 2.2.0_ prior to 2.2.0 the variable was `PRE_COMMIT_SOURCE`.
- `PRE_COMMIT_TO_REF`: the local revision that is being pushed to the remote.
@@ -112,7 +115,11 @@ During a push, pre-commit will export the following environment variables:
- `PRE_COMMIT_REMOTE_NAME`: _new in 2.0.0_ which remote is being pushed to
(for example `origin`)
- `PRE_COMMIT_REMOTE_URL`: _new in 2.0.0_ the url of the remote that is being
- pushed to (for example `git@github.com:pre-commit/pre-commit`.
+ pushed to (for example `git@github.com:pre-commit/pre-commit`).
+- `PRE_COMMIT_REMOTE_BRANCH`: _new in 2.10.0_ the name of the remote branch to
+ which we are pushing (for example `refs/heads/target-branch`)
+- `PRE_COMMIT_LOCAL_BRANCH`: _new in 2.14.0_ the name of the local branch that
+ is being pushed to the remote (for example `HEAD`)
[pre-push]: https://git-scm.com/docs/githooks#_pre_push
From 09da20e1f47b486948bb26f010d850ff751bf771 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 3 Jan 2023 01:03:00 +0000
Subject: [PATCH 171/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.30.0 → v8.31.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.30.0...v8.31.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index ac868b8a..62227623 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -39,7 +39,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.30.0
+ rev: v8.31.0
hooks:
- id: eslint
args: [--fix]
From af7c58129b4fda8bb2060eee6f62d520c3a8cd47 Mon Sep 17 00:00:00 2001
From: Henrik Finsberg
Date: Sun, 8 Jan 2023 22:00:26 +0100
Subject: [PATCH 172/368] Add clang-format docs to all-repos
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 39ed135c..f1b779b3 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -227,3 +227,4 @@
- https://github.com/charliermarsh/ruff-pre-commit
- https://github.com/mrtazz/checkmake
- https://github.com/jshwi/docsig
+- https://github.com/finsberg/clang-format-docs
From 68ea1545e56ef5204ff05fc652c3ce6189059555 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 17 Jan 2023 01:41:13 +0000
Subject: [PATCH 173/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.31.0 → v8.32.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.31.0...v8.32.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 62227623..57a2f51e 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -39,7 +39,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.31.0
+ rev: v8.32.0
hooks:
- id: eslint
args: [--fix]
From f1842aca2a2b205ea53522c0b6d32f77c86ce75f Mon Sep 17 00:00:00 2001
From: David Beitey
Date: Thu, 19 Jan 2023 10:04:05 +1000
Subject: [PATCH 174/368] Add rubocop/rubocop to all-repos.yaml
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index f1b779b3..e7cb1885 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -228,3 +228,4 @@
- https://github.com/mrtazz/checkmake
- https://github.com/jshwi/docsig
- https://github.com/finsberg/clang-format-docs
+- https://github.com/rubocop/rubocop
From ef7e71a24d4c75743dd353f19eaa178623789d88 Mon Sep 17 00:00:00 2001
From: Martin Guindon <14781590+MartinGuindon@users.noreply.github.com>
Date: Mon, 23 Jan 2023 10:57:21 -0500
Subject: [PATCH 175/368] add dbt-checkpoint to list of repos
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index e7cb1885..310865f4 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -229,3 +229,4 @@
- https://github.com/jshwi/docsig
- https://github.com/finsberg/clang-format-docs
- https://github.com/rubocop/rubocop
+- https://github.com/dbt-checkpoint/dbt-checkpoint
From d079beca379e96e84b6d04829b00ec9c9e5a07c7 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Mon, 23 Jan 2023 20:55:53 -0500
Subject: [PATCH 176/368] documentation updates for 3.0.0
---
sections/advanced.md | 18 ++++++------------
sections/cli.md | 17 ++++-------------
sections/new-hooks.md | 31 +++++++++++--------------------
sections/plugins.md | 23 +++++------------------
4 files changed, 26 insertions(+), 63 deletions(-)
diff --git a/sections/advanced.md b/sections/advanced.md
index 22593984..4dd9eb10 100644
--- a/sections/advanced.md
+++ b/sections/advanced.md
@@ -82,7 +82,7 @@ Environment variables:
## pre-commit during clean merges
-_new in 1.21.0_ pre-commit can be used to manage [pre-merge-commit] hooks.
+pre-commit can be used to manage [pre-merge-commit] hooks.
To use `pre-merge-commit` hooks with pre-commit, run:
@@ -139,7 +139,7 @@ pre-commit installed at .git/hooks/commit-msg
current contents of the commit message which can be validated. If a hook
exits nonzero, the commit will be aborted.
-_new in 1.16.0_: pre-commit can be used to manage [prepare-commit-msg] hooks.
+pre-commit can be used to manage [prepare-commit-msg] hooks.
To use `prepare-commit-msg` hooks with pre-commit, run:
@@ -242,7 +242,7 @@ If you do not want to have hooks installed by default on the stage passed
during a `pre-commit install --hook-type ...`, please set the [`default_stages`](#top_level-default_stages)
top level configuration property to the desired stages, also as an array.
-_new in 1.8.0_: An additional `manual` stage is available for one off execution
+An additional `manual` stage is available for one off execution
that won't run in any hook context. This special stage is useful for taking
advantage of `pre-commit`'s cross-platform / cross-language package management
without running it on every commit. Hooks confined to `stages: [manual]` can
@@ -356,8 +356,6 @@ Here's an example configuration with a few `local` hooks:
## meta hooks
-_new in 1.4.0_
-
`pre-commit` provides several hooks which are useful for checking the
pre-commit configuration itself. These can be enabled using `repo: meta`.
@@ -374,23 +372,18 @@ The currently available `meta` hooks:
=c= [`check-hooks-apply`](_#meta-check_hooks_apply)
=c= ensures that the configured hooks apply to at least one file in the
repository.
- _new in 1.4.0_.
=r=
=c= [`check-useless-excludes`](_#meta-check_useless_excludes)
=c= ensures that `exclude` directives apply to _any_ file in the
repository.
- _new in 1.4.0_.
=r=
=c= [`identity`](_#meta-identity)
=c= a simple hook which prints all arguments passed to it, useful for
debugging.
- _new in 1.14.0_.
```
## automatically enabling pre-commit on repositories
-_new in 1.18.0_
-
`pre-commit init-templatedir` can be used to set up a skeleton for `git`'s
`init.templateDir` option. This means that any newly cloned repository will
automatically have the hooks set up without the need to run
@@ -577,7 +570,7 @@ This tells pre-commit to use ruby `2.1.5` to run the `scss-lint` hook.
Valid values for specific languages are listed below:
- python: Whatever system installed python interpreters you have. The value of
this argument is passed as the `-p` to `virtualenv`.
- - _new in 1.4.3_: on windows the
+ - on windows the
[pep394](https://www.python.org/dev/peps/pep-0394/) name will be
translated into a py launcher call for portability. So continue to use
names like `python3` (`py -3`) or `python3.6` (`py -3.6`) even on
@@ -585,8 +578,9 @@ Valid values for specific languages are listed below:
- node: See [nodeenv](https://github.com/ekalinin/nodeenv#advanced).
- ruby: See [ruby-build](https://github.com/sstephenson/ruby-build/tree/master/share/ruby-build).
- _new in 2.21.0_ rust: `language_version` is passed to `rustup`
+- _new in 3.0.0_ golang: use the versions on [go.dev/dl](https://go.dev/dl/) such as `1.19.5`
-_new in 1.14.0_: you can now set [`default_language_version`](#top_level-default_language_version)
+you can set [`default_language_version`](#top_level-default_language_version)
at the [top level](#pre-commit-configyaml---top-level) in your configuration to
control the default versions across all hooks of a language.
diff --git a/sections/cli.md b/sections/cli.md
index b1425e4b..cad807ee 100644
--- a/sections/cli.md
+++ b/sections/cli.md
@@ -1,7 +1,7 @@
All pre-commit commands take the following options:
- `--color {auto,always,never}`: whether to use color in output.
- Defaults to `auto`. _new in 1.18.0_: can be overridden by using
+ Defaults to `auto`. can be overridden by using
`PRE_COMMIT_COLOR={auto,always,never}` or disabled using `TERM=dumb`.
- `-c CONFIG`, `--config CONFIG`: path to alternate config file
- `-h`, `--help`: show help and available options.
@@ -19,10 +19,9 @@ Options:
- `--bleeding-edge`: update to the bleeding edge of the default branch instead
of the latest tagged version (the default behaviour).
-- `--freeze`: _new in 1.21.0_: Store "frozen" hashes in [`rev`](#repos-rev)
- instead of tag names.
-- `--repo REPO`: _new in 1.4.1_: Only update this repository. _new in 1.7.0_:
- This option may be specified multiple times.
+- `--freeze`: Store "frozen" hashes in [`rev`](#repos-rev) instead of tag names.
+- `--repo REPO`: Only update this repository. This option may be specified
+ multiple times.
Here are some sample invocations using this `.pre-commit-config.yaml`:
@@ -79,8 +78,6 @@ Options: (no additional options)
## pre-commit gc [options] #pre-commit-gc
-_new in 1.14.0_
-
Clean unused cached repos.
`pre-commit` keeps a cache of installed hook repositories which grows over
@@ -91,8 +88,6 @@ Options: (no additional options)
## pre-commit init-templatedir DIRECTORY [options] #pre-commit-init-templatedir
-_new in 1.18.0_
-
Install hook script in a directory intended for use with
`git config init.templateDir`.
@@ -169,8 +164,6 @@ Options: (no additional options)
## pre-commit migrate-config [options] #pre-commit-migrate-config
-_new in 1.0.0_
-
Migrate list configuration to the new map configuration format.
Options: (no additional options)
@@ -213,8 +206,6 @@ Options: (no additional options)
## pre-commit try-repo REPO [options] #pre-commit-try-repo
-_new in 1.3.0_
-
Try the hooks in a repository, useful for developing new hooks.
`try-repo` can also be used for testing out a repository before adding it to
your configuration. `try-repo` prints a configuration it generates based on
diff --git a/sections/new-hooks.md b/sections/new-hooks.md
index 3b1f8394..a2dc8a6b 100644
--- a/sections/new-hooks.md
+++ b/sections/new-hooks.md
@@ -52,7 +52,7 @@ file that tells pre-commit:
=r=
=c= [`verbose`](_#hooks-verbose)
=c= (optional: default `false`) if `true`, forces the output of the hook to be printed even when
- the hook passes. _new in 1.6.0_.
+ the hook passes.
=r=
=c= [`pass_filenames`](_#hooks-pass_filenames)
=c= (optional: default `true`) if `false` no filenames will be passed to
@@ -60,7 +60,7 @@ file that tells pre-commit:
=r=
=c= [`require_serial`](_#hooks-require_serial)
=c= (optional: default `false`) if `true` this hook will execute using a
- single process instead of in parallel. _new in 1.13.0_.
+ single process instead of in parallel.
=r=
=c= [`description`](_#hooks-description)
=c= (optional: default `''`) description of the hook. used for metadata
@@ -109,7 +109,7 @@ interactively:
_note_: you may need to provide `--commit-msg-filename` when using this
command with hook types `prepare-commit-msg` and `commit-msg`.
-_new in 1.14.0_: a commit is no longer necessary to `try-repo` on a local
+a commit is not necessary to `try-repo` on a local
directory. `pre-commit` will clone any tracked uncommitted changes.
```pre-commit
@@ -117,8 +117,6 @@ directory. `pre-commit` will clone any tracked uncommitted changes.
# ... make some changes
-# new in 1.14.0: a commit is no longer necessary for `try-repo`
-
# In another terminal or tab
~/work/other-repo $ pre-commit try-repo ../hook-repo foo --verbose --all-files
@@ -165,8 +163,6 @@ Hello from foo hook!
### conda
-_new in 1.21.0_
-
The hook repository must contain an `environment.yml` file which will be used
via `conda env create --file environment.yml ...` to create the environment.
@@ -201,6 +197,9 @@ the hooks' documentation for clarification. It has been tested on linux.
_new in 2.18.0_: pre-commit now supports the `coursier` naming of the package
manager executable.
+_new in 3.0.0_: `language: coursier` hooks now support `repo: local` and
+`additional_dependencies`.
+
### dart
_new in 2.15.0_
@@ -290,8 +289,6 @@ CLI installed. It has been tested on linux and windows.
### fail
-_new in 1.11.0_
-
A lightweight [`language`](#hooks-language) to forbid files by filename. The `fail` language is
especially useful for [local](#repository-local-hooks) hooks.
@@ -320,6 +317,9 @@ and the [`entry`](#hooks-entry) should match an executable which will get instal
_changed in 2.17.0_: previously `go get ./...` was used
+_new in 3.0.0_: pre-commit will bootstrap `go` if it is not present. `language: golang`
+also now supports `language_version`
+
__Support:__ golang hooks are known to work on any system which has go
installed. It has been tested on linux, macOS, and windows.
@@ -339,10 +339,7 @@ The hook repository must have a `package.json`. It will be installed via
match the [`entry`](#hooks-entry) – usually through `bin` in package.json.
__Support:__ node hooks work without any system-level dependencies. It has
-been tested on linux and macOS and _may_ work under cygwin.
-
-_new in 1.5.0_: windows is now supported for node hooks. Currently python3
-only due to [a bug in cpython](https://bugs.python.org/issue32539).
+been tested on linux, windows, and macOS and _may_ work under cygwin.
### perl
@@ -377,8 +374,6 @@ has been tested on linux, macOS, windows, and cygwin.
### python_venv
-_new in 1.9.0_
-
_new in 2.4.0_: The `python_venv` language is now an alias to `python` since
`virtualenv>=20` creates equivalently structured environments. Previously,
this [`language`](#hooks-language) created environments using the [venv] module.
@@ -423,8 +418,6 @@ been tested on linux and macOS and _may_ work under cygwin.
### rust
-_new in 1.10.0_
-
Rust hooks are installed using the system installation of
[Cargo](https://github.com/rust-lang/cargo), Rust's official package manager.
@@ -455,15 +448,13 @@ installed. It has been tested on linux and macOS.
### pygrep
-_new in 1.2.0_
-
A cross-platform python implementation of `grep` – pygrep hooks are a quick
way to write a simple hook which prevents commits by file matching. Specify
the regex as the [`entry`](#hooks-entry). The [`entry`](#hooks-entry) may be any python
[regular expression](#regular-expressions). For case insensitive regexes you
can apply the `(?i)` flag as the start of your entry, or use `args: [-i]`.
-_new in 1.8.0_: For multiline matches, use `args: [--multiline]`.
+For multiline matches, use `args: [--multiline]`.
_new in 2.8.0_: To require all files to match, use `args: [--negate]`.
diff --git a/sections/plugins.md b/sections/plugins.md
index f59b6b1d..1432d57f 100644
--- a/sections/plugins.md
+++ b/sections/plugins.md
@@ -6,13 +6,6 @@ pre-commit config file describes what repositories and hooks are installed.
## .pre-commit-config.yaml - top level
-_new in 1.0.0_: The default configuration file top-level was changed from a
-list to a map. If you're using an old version of pre-commit, the top-level
-list is the same as the value of [`repos`](#pre-commit-configyaml---repos).
-If you'd like to migrate to the new configuration format, run
-[`pre-commit migrate-config`](#pre-commit-migrate-config) to automatically
-migrate your configuration.
-
```table
=r=
=c= [`repos`](_#top_level-repos)
@@ -36,8 +29,6 @@ migrate your configuration.
default_language_version:
python: python3.7
```
-
- _new in 1.14.0_
=r=
=c= [`default_stages`](_#top_level-default_stages)
=c= (optional: default (all stages)) a configuration-wide default for
@@ -49,22 +40,19 @@ migrate your configuration.
```yaml
default_stages: [commit, push]
```
-
- _new in 1.14.0_
=r=
=c= [`files`](_#top_level-files)
- =c= (optional: default `''`) global file include pattern. _new in 1.21.0_.
+ =c= (optional: default `''`) global file include pattern.
=r=
=c= [`exclude`](_#top_level-exclude)
- =c= (optional: default `^$`) global file exclude pattern. _new in 1.1.0_.
+ =c= (optional: default `^$`) global file exclude pattern.
=r=
=c= [`fail_fast`](_#top_level-fail_fast)
=c= (optional: default `false`) set to `true` to have pre-commit stop
- running hooks after the first failure. _new in 1.1.0_.
+ running hooks after the first failure.
=r=
=c= [`minimum_pre_commit_version`](_#top_level-minimum_pre_commit_version)
=c= (optional: default `'0'`) require a minimum version of pre-commit.
- _new in 1.15.0_.
```
A sample top-level:
@@ -87,7 +75,7 @@ from.
=c= the repository url to `git clone` from
=r=
=c= [`rev`](_#repos-rev)
- =c= the revision or tag to clone at. _new in 1.7.0_: previously `sha`
+ =c= the revision or tag to clone at.
=r=
=c= [`hooks`](_#repos-hooks)
=c= A list of [hook mappings](#pre-commit-configyaml---hooks).
@@ -117,7 +105,6 @@ repository's configuration.
=c= [`alias`](_#config-alias)
=c= (optional) allows the hook to be referenced using an additional id when
using `pre-commit run `.
- _new in 1.14.0_.
=r=
=c= [`name`](_#config-name)
=c= (optional) override the name of the hook - shown during hook execution.
@@ -164,7 +151,7 @@ repository's configuration.
=r=
=c= [`verbose`](_#config-verbose)
=c= (optional) if `true`, forces the output of the hook to be printed even when
- the hook passes. _new in 1.6.0_.
+ the hook passes.
=r=
=c= [`log_file`](_#config-log_file)
=c= (optional) if present, the hook output will additionally be written to
From dad3158ee7ed94649bf4e0b48619b1dd09373fd9 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 31 Jan 2023 02:51:46 +0000
Subject: [PATCH 177/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.32.0 → v8.33.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.32.0...v8.33.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 57a2f51e..e8ef9780 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -39,7 +39,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.32.0
+ rev: v8.33.0
hooks:
- id: eslint
args: [--fix]
From 0c5a4f836aec77806617bc62938b446dc60608fb Mon Sep 17 00:00:00 2001
From: Adam Johnson
Date: Wed, 1 Feb 2023 09:02:34 +0000
Subject: [PATCH 178/368] Better document Rust's first-class support
---
sections/new-hooks.md | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/sections/new-hooks.md b/sections/new-hooks.md
index a2dc8a6b..3486a32b 100644
--- a/sections/new-hooks.md
+++ b/sections/new-hooks.md
@@ -418,8 +418,8 @@ been tested on linux and macOS and _may_ work under cygwin.
### rust
-Rust hooks are installed using the system installation of
-[Cargo](https://github.com/rust-lang/cargo), Rust's official package manager.
+Rust hooks are installed using [Cargo](https://github.com/rust-lang/cargo),
+Rust's official package manager.
Hook repositories must have a `Cargo.toml` file which produces at least one
binary ([example](https://github.com/chriskuehl/example-rust-pre-commit-hook)),
@@ -433,7 +433,8 @@ build _your_ hook repo), or the special syntax
`cli:{package_name}:{package_version}` for a CLI dependency (built separately,
with binaries made available for use by hooks).
-_new in 2.21.0_: rust now supports `language_version`.
+_new in 2.21.0_: pre-commit will bootstrap `rust` if it is not present.
+`language: rust` also now supports `language_version`
__Support:__ It has been tested on linux, Windows, and macOS.
From 8df303066d7cf0fa0d594512fe4364274a5b679c Mon Sep 17 00:00:00 2001
From: Adam Johnson
Date: Thu, 2 Feb 2023 07:42:59 +0000
Subject: [PATCH 179/368] Add adamchainz/django-upgrade
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index e7cb1885..ae1cdad1 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -202,6 +202,7 @@
- https://github.com/norwoodj/helm-docs
- https://github.com/sqlfluff/sqlfluff
- https://github.com/adamchainz/pre-commit-dprint
+- https://github.com/adamchainz/django-upgrade
- https://github.com/scop/pre-commit-shfmt
- https://github.com/scop/pre-commit-perlcritic
- https://github.com/BlankSpruce/gersemi
From a9f3247a35247498d4769f731bb7f7f1ebd4f540 Mon Sep 17 00:00:00 2001
From: Adam Johnson
Date: Thu, 2 Feb 2023 08:20:19 +0000
Subject: [PATCH 180/368] Update cfn-lint repo URL
---
all-repos.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index e7cb1885..9ed42a4c 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -66,7 +66,7 @@
- https://github.com/alessandrojcm/commitlint-pre-commit-hook
- https://github.com/henryykt/pre-commit-perl
- https://github.com/juancarlospaco/pre-commit-nim
-- https://github.com/aws-cloudformation/cfn-python-lint
+- https://github.com/aws-cloudformation/cfn-lint
- https://github.com/thoughtworks/talisman
- https://github.com/PyCQA/flake8
- https://github.com/PyCQA/bandit
From aa75abb413161a1dd839e9761f30612a5f4c00da Mon Sep 17 00:00:00 2001
From: Adam Johnson
Date: Thu, 2 Feb 2023 15:59:25 +0000
Subject: [PATCH 181/368] Move blacken-docs
---
all-repos.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index ae1cdad1..78c8f7f3 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -20,7 +20,6 @@
- https://github.com/asottile/pyupgrade
- https://github.com/asottile/reorder_python_imports
- https://github.com/asottile/yesqa
-- https://github.com/asottile/blacken-docs
- https://github.com/asottile/dead
- https://github.com/asottile/setup-cfg-fmt
- https://github.com/asottile/cheetah_lint
@@ -202,6 +201,7 @@
- https://github.com/norwoodj/helm-docs
- https://github.com/sqlfluff/sqlfluff
- https://github.com/adamchainz/pre-commit-dprint
+- https://github.com/adamchainz/blacken-docs
- https://github.com/adamchainz/django-upgrade
- https://github.com/scop/pre-commit-shfmt
- https://github.com/scop/pre-commit-perlcritic
From 6533b9d5a53bbd6d6d1f5437d92f9361d50cf94a Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Sun, 5 Feb 2023 19:55:04 -0500
Subject: [PATCH 182/368] set permissions to allow pushing
---
.github/workflows/deploy.yml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index ab6322fa..2dcebbcf 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -5,6 +5,9 @@ on:
schedule:
- cron: '30 8 * * *'
+permissions:
+ contents: write
+
jobs:
pr:
runs-on: ubuntu-latest
From 76d52340618bd1de0d002636c8c9db0c908ced09 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 14 Feb 2023 02:25:13 +0000
Subject: [PATCH 183/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v0.991 → v1.0.0](https://github.com/pre-commit/mirrors-mypy/compare/v0.991...v1.0.0)
- [github.com/pre-commit/mirrors-eslint: v8.33.0 → v8.34.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.33.0...v8.34.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e8ef9780..1664b148 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -34,12 +34,12 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v0.991
+ rev: v1.0.0
hooks:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.33.0
+ rev: v8.34.0
hooks:
- id: eslint
args: [--fix]
From 4b3826761e121a511522c36068692767918fca09 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 21 Feb 2023 02:06:45 +0000
Subject: [PATCH 184/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.0.0 → v1.0.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.0.0...v1.0.1)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 1664b148..e3d32cf1 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -34,7 +34,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.0.0
+ rev: v1.0.1
hooks:
- id: mypy
additional_dependencies: [types-all]
From db6ccb6951c198c2af4f910f12afe1c769a1e5fc Mon Sep 17 00:00:00 2001
From: Victor Engmark
Date: Mon, 27 Feb 2023 19:33:05 +1300
Subject: [PATCH 185/368] feat: Add vCard validator
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 5d06ac6d..272ef980 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -230,3 +230,4 @@
- https://github.com/jshwi/docsig
- https://github.com/finsberg/clang-format-docs
- https://github.com/rubocop/rubocop
+- https://gitlab.com/engmark/vcard
From 2b55bc5f11da66ac340359b5285926b6232e76c6 Mon Sep 17 00:00:00 2001
From: Julien Rottenberg
Date: Mon, 27 Feb 2023 16:31:50 -0800
Subject: [PATCH 186/368] csvlint support
https://github.com/Data-Liberation-Front/csvlint.rb#via-pre-commit
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 272ef980..bd048543 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -231,3 +231,4 @@
- https://github.com/finsberg/clang-format-docs
- https://github.com/rubocop/rubocop
- https://gitlab.com/engmark/vcard
+- https://github.com/Data-Liberation-Front/csvlint.rb
From d3c71a979d7e86fa7e4e2388eb139ca08fc658a8 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 28 Feb 2023 02:14:36 +0000
Subject: [PATCH 187/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.34.0 → v8.35.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.34.0...v8.35.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e3d32cf1..7269fd9b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -39,7 +39,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.34.0
+ rev: v8.35.0
hooks:
- id: eslint
args: [--fix]
From 46fb92af3f6870b5a34831eb6e33e45935823db9 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 7 Mar 2023 02:52:09 +0000
Subject: [PATCH 188/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-autopep8: v2.0.1 → v2.0.2](https://github.com/pre-commit/mirrors-autopep8/compare/v2.0.1...v2.0.2)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 7269fd9b..3f4d2367 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -26,7 +26,7 @@ repos:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/pre-commit/mirrors-autopep8
- rev: v2.0.1
+ rev: v2.0.2
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/flake8
From bb88a6f15e21fb10dca932f54c2e97acda26bcdd Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Sun, 12 Mar 2023 15:51:53 -0400
Subject: [PATCH 189/368] also forbid `language: script`
---
.github/pull_request_template.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index becc9a38..44ae8bde 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -4,5 +4,5 @@ my new repository:
- [ ] is added to the bottom *or* with existing repos from the same account
- [ ] contains a license
-- [ ] is not `language: system` or `language: docker`
+- [ ] is not `language: system`, `language: script`, or `language: docker`
- [ ] does not contain "pre-commit" in the name
From 8eb5221fc3d20f74e16a971bea80cdf9e26da3e8 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 14 Mar 2023 03:18:56 +0000
Subject: [PATCH 190/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.0.1 → v1.1.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.0.1...v1.1.1)
- [github.com/pre-commit/mirrors-eslint: v8.35.0 → v8.36.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.35.0...v8.36.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 3f4d2367..f5310f2a 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -34,12 +34,12 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.0.1
+ rev: v1.1.1
hooks:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.35.0
+ rev: v8.36.0
hooks:
- id: eslint
args: [--fix]
From bcacd21b10c01e7190d1d2f777e50abfbf6116bf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ville=20Skytt=C3=A4?=
Date: Wed, 22 Mar 2023 09:29:29 +0200
Subject: [PATCH 191/368] Make CPAN links unversioned
---
sections/new-hooks.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sections/new-hooks.md b/sections/new-hooks.md
index 3486a32b..b4ced988 100644
--- a/sections/new-hooks.md
+++ b/sections/new-hooks.md
@@ -346,7 +346,7 @@ been tested on linux, windows, and macOS and _may_ work under cygwin.
_new in 2.1.0_
Perl hooks are installed using the system installation of
-[cpan](https://perldoc.perl.org/5.30.0/cpan.html), the CPAN package installer
+[cpan](https://perldoc.perl.org/cpan), the CPAN package installer
that comes with Perl.
Hook repositories must have something that `cpan` supports, typically
@@ -356,7 +356,7 @@ via `cpan -T .` (with the installed files stored in your pre-commit cache,
not polluting other Perl installations).
When specifying [`additional_dependencies`](#config-additional_dependencies) for Perl, you can use any of the
-[install argument formats understood by `cpan`](https://perldoc.perl.org/5.30.0/CPAN.html#get%2c-make%2c-test%2c-install%2c-clean-modules-or-distributions).
+[install argument formats understood by `cpan`](https://perldoc.perl.org/CPAN#get%2c-make%2c-test%2c-install%2c-clean-modules-or-distributions).
__Support:__ Perl hooks currently require a pre-existing Perl installation,
including the `cpan` tool in `PATH`. It has been tested on linux, macOS, and
From f71f97ba4201c51e5eecc910c23b1dad8bd556b7 Mon Sep 17 00:00:00 2001
From: braydonk
Date: Sun, 8 Jan 2023 15:46:54 -0500
Subject: [PATCH 192/368] add yamlfmt to all-repos
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 88923c33..591f309f 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -165,6 +165,7 @@
- https://github.com/yoheimuta/protolint
- https://github.com/hadolint/hadolint
- https://github.com/google/go-jsonnet
+- https://github.com/google/yamlfmt
- https://github.com/guid-empty/flutter-dependency-validation-pre-commit
- https://github.com/cpplint/cpplint
- https://github.com/MarcoGorelli/absolufy-imports
From b7c57c8ec0e93023825e16e624f894ff949e258f Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Sat, 1 Apr 2023 12:48:22 -0400
Subject: [PATCH 193/368] use removeprefix
---
.github/workflows/deploy.yml | 6 ++++--
template_lib.py | 6 +++---
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 2dcebbcf..47422e09 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -12,8 +12,10 @@ jobs:
pr:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v1
- - uses: actions/setup-python@v1
+ - uses: actions/checkout@v3
+ - uses: actions/setup-python@v4
+ with:
+ python-version: 3.x
- run: pip install virtualenv
- run: make
- run: make push
diff --git a/template_lib.py b/template_lib.py
index 138546f4..a3232702 100644
--- a/template_lib.py
+++ b/template_lib.py
@@ -66,13 +66,13 @@ def _maybe_end_row() -> None:
output.append('')
elif line.startswith(COL):
_maybe_end_col()
- col_buffer = line[len(COL):]
+ col_buffer = line.removeprefix(COL)
elif col_buffer is not None:
if line == '\n':
col_buffer += line
else:
assert line.startswith(INDENT), line
- col_buffer += line[len(INDENT):]
+ col_buffer += line.removeprefix(INDENT)
else:
raise AssertionError(line)
@@ -95,7 +95,7 @@ def link(
self, link: str, text: str | None, title: str | None,
) -> str:
if link.startswith(SELF_LINK_PREFIX):
- a_id = link[len(SELF_LINK_PREFIX):]
+ a_id = link.removeprefix(SELF_LINK_PREFIX)
return f'{text}'
else:
return super().link(link, text, title)
From cbbeaf3e01d8a9151946cf330b091b38d9ceb43f Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Sat, 1 Apr 2023 14:48:33 -0400
Subject: [PATCH 194/368] update docs for pre-commit 3.2.0
---
sections/advanced.md | 312 +++++++++++++++++++-----------------------
sections/cli.md | 10 +-
sections/new-hooks.md | 6 +-
sections/plugins.md | 6 +-
template_lib.py | 7 +-
5 files changed, 154 insertions(+), 187 deletions(-)
diff --git a/sections/advanced.md b/sections/advanced.md
index 4dd9eb10..53b8573c 100644
--- a/sections/advanced.md
+++ b/sections/advanced.md
@@ -18,235 +18,209 @@ entire commit.
$ SKIP=flake8 git commit -m "foo"
```
-## pre-commit during commits
+## Confining hooks to run at certain stages
+
+pre-commit supports many different types of `git` hooks (not just
+`pre-commit`!).
+
+Providers of hooks can select which git hooks they run on by setting the
+[`stages`](#hooks-stages) property in `.pre-commit-hooks.yaml` -- this can
+also be overridden by setting [`stages`](#config-stages) in
+`.pre-commit-config.yaml`. If `stages` is not set in either of those places
+the default value will be pulled from the top-level
+[`default_stages`](#top_level-default_stages) option (which defaults to _all_
+stages). By default, tools are enabled for [every hook type](#supported-git-hooks)
+that pre-commit supports.
-Running hooks on unstaged changes can lead to both false-positives and
-false-negatives during committing. pre-commit only runs on the staged
-contents of files by temporarily saving the contents of your files at commit
-time and stashing the unstaged changes while running hooks.
+_new in 3.2.0_: The values of `stages` match the hook names. Previously,
+`commit`, `push`, and `merge-commit` matched `pre-commit`, `pre-push`, and
+`pre-merge-commit` respectively.
-_new in 2.4.0_: pre-commit can be used to manage [post-commit] hooks.
+The `manual` stage (via `stages: [manual]`) is a special stage which will not
+be automatically triggered by any `git` hook -- this is useful if you want to
+add a tool which is not automatically run, but is run on demand using
+`pre-commit run --hook-stage manual [hookid]`.
-To use `post-commit` hooks with pre-commit, run:
+If you are authoring a tool, it is usually a good idea to provide an appropriate
+`stages` property. For example a reasonable setting for a linter or code
+formatter would be `stages: [pre-commit, pre-merge-commit, pre-push, manual]`.
+
+To install `pre-commit` for particular git hooks, pass `--hook-type` to
+`pre-commit install`. This can be specified multiple times such as:
```console
-$ pre-commit install --hook-type post-commit
-pre-commit installed at .git/hooks/post-commit
+$ pre-commit install --hook-type pre-commit --hook-type pre-push
+pre-commit installed at .git/hooks/pre-commit
+pre-commit installed at .git/hooks/pre-push
```
-`post-commit` hooks fire after the commit succeeds and cannot be used to
-prevent the commit from happening (use `pre-commit` instead). Since
-`post-commit` does not operate on files, any hooks must set `always_run`:
+Additionally, one can specify a default set of git hook types to be installed
+for by setting the top-level [`default_install_hook_types`](#top_level-default_install_hook_types).
+
+For example:
```yaml
-- repo: local
- hooks:
- - id: post-commit-local
- name: post commit
- always_run: true
- stages: [post-commit]
- # ...
+default_install_hook_types: [pre-commit, pre-push, commit-msg]
```
-[post-commit]: https://git-scm.com/docs/githooks#_post_commit
+```console
+$ pre-commit install
+pre-commit installed at .git/hooks/pre-commit
+pre-commit installed at .git/hooks/pre-push
+pre-commit installed at .git/hooks/commit-msg
+```
-## pre-commit during merges
+[anchor](__#pre-commit-during-commits)
+[anchor](__#pre-commit-during-merges)
+[anchor](__#pre-commit-during-clean-merges)
+[anchor](__#pre-commit-during-push)
+[anchor](__#pre-commit-for-commit-messages)
+[anchor](__#pre-commit-for-switching-branches)
+[anchor](__#pre-commit-for-rewriting)
-The biggest gripe we’ve had in the past with pre-commit hooks was during merge
-conflict resolution. When working on very large projects a merge often
-results in hundreds of committed files. I shouldn’t need to run hooks on all
-of these files that I didn’t even touch! This often led to running commit
-with `--no-verify` and allowed introduction of real bugs that hooks could have
-caught.
+## Supported git hooks
-pre-commit solves this by only running hooks on files that conflict or were
-manually edited during conflict resolution. This also includes files which
-were automatically merged by git. Git isn't perfect and this can often catch
-implicit conflicts (such as with removed python imports).
+- [commit-msg](#commit-msg)
+- [post-checkout](#post-checkout)
+- [post-merge](#post-merge)
+- [post-rewrite](#post-rewrite)
+- [pre-commit](#pre-commit)
+- [pre-merge-commit](#pre-merge-commit)
+- [pre-push](#pre-push)
+- [pre-rebase](#pre-rebase)
+- [prepare-comit-msg](#prepare-commit-msg)
-_new in 2.11.0_ pre-commit can be used to manage [post-merge] hooks.
+### commit-msg
-To use `post-merge` hooks with pre-commit, run:
+[git commit-msg docs](https://git-scm.com/docs/githooks#_commit_msg)
-```console
-$ pre-commit install --hook-type post-merge
-pre-commit installed at .git/hooks/post-merge
-```
+`commit-msg` hooks will be passed a single filename -- this file contains the
+current contents of the commit message to be validated. The commit will be
+aborted if there is a nonzero exit code.
-The hook fires after a successful `git merge`.
+### post-checkout
-Environment variables:
-- `PRE_COMMIT_IS_SQUASH_MERGE`: whether it is a squash merge.
+_new in 2.2.0_
-[post-merge]: https://git-scm.com/docs/githooks#_post_merge
+[git post-checkout docs](https://git-scm.com/docs/githooks#_post_checkout)
-## pre-commit during clean merges
+post-checkout hooks run *after* a `checkout` has occurred and can be used to
+set up or manage state in the repository.
-pre-commit can be used to manage [pre-merge-commit] hooks.
+`post-checkout` hooks do not operate on files so they must be set as
+`always_run: true` or they will always be skipped.
-To use `pre-merge-commit` hooks with pre-commit, run:
+environment variables:
+- `PRE_COMMIT_FROM_REF`: the first argument to the `post-checkout` git hook
+- `PRE_COMMIT_TO_REF`: the second argument to the `post-checkout` git hook
+- `PRE_COMMIT_CHECKOUT_TYPE`: the third argument to the `post-checkout` git hook
-```console
-$ pre-commit install --hook-type pre-merge-commit
-pre-commit installed at .git/hooks/pre-merge-commit
-```
+### post-commit
-The hook fires after a merge succeeds but before the merge commit is created.
+_new in 2.4.0_
-Note that you need to be using at least git 2.24 which added support for the
-pre-merge-commit hook.
+[git post-commit docs](https://git-scm.com/docs/githooks#_post_commit)
-[pre-merge-commit]: https://git-scm.com/docs/githooks#_pre_merge_commit
+`post-commit` runs after the commit has already succeeded so it cannot be used
+to prevent the commit from happening.
-## pre-commit during push
+`post-commit` hooks do not operate on files so they must be set as
+`always_run: true` or they will always be skipped.
-To use `pre-push` hooks with pre-commit, run:
+### post-merge
-```console
-$ pre-commit install --hook-type pre-push
-pre-commit installed at .git/hooks/pre-push
-```
+_new in 2.11.0_
-Environment variables:
-- `PRE_COMMIT_FROM_REF`: the remote revision that is being pushed to.
- - _new in 2.2.0_ prior to 2.2.0 the variable was `PRE_COMMIT_SOURCE`.
-- `PRE_COMMIT_TO_REF`: the local revision that is being pushed to the remote.
- - _new in 2.2.0_ prior to 2.2.0 the variable was `PRE_COMMIT_ORIGIN`.
-- `PRE_COMMIT_REMOTE_NAME`: _new in 2.0.0_ which remote is being pushed to
- (for example `origin`)
-- `PRE_COMMIT_REMOTE_URL`: _new in 2.0.0_ the url of the remote that is being
- pushed to (for example `git@github.com:pre-commit/pre-commit`).
-- `PRE_COMMIT_REMOTE_BRANCH`: _new in 2.10.0_ the name of the remote branch to
- which we are pushing (for example `refs/heads/target-branch`)
-- `PRE_COMMIT_LOCAL_BRANCH`: _new in 2.14.0_ the name of the local branch that
- is being pushed to the remote (for example `HEAD`)
+[git post-merge docs](https://git-scm.com/docs/githooks#_post_merge)
-[pre-push]: https://git-scm.com/docs/githooks#_pre_push
+`post-merge` runs after a successful `git merge`.
-## pre-commit for commit messages
+environment variables:
+- `PRE_COMMIT_IS_SQUASH_MERGE`: the first argument to the `post-merge` git hook.
-pre-commit can be used to manage [commit-msg] hooks.
+### post-rewrite
-To use `commit-msg` hooks with pre-commit, run:
+_new in 2.15.0_
-```console
-$ pre-commit install --hook-type commit-msg
-pre-commit installed at .git/hooks/commit-msg
-```
+[git post-rewrite docs](https://git-scm.com/docs/githooks#_post_rewrite)
-`commit-msg` hooks can be configured by setting `stages: [commit-msg]`.
-`commit-msg` hooks will be passed a single filename -- this file contains the
-current contents of the commit message which can be validated. If a hook
-exits nonzero, the commit will be aborted.
+`post-rewrite` runs after a git command which modifies history such as
+`git commit --amend` or `git rebase`.
-pre-commit can be used to manage [prepare-commit-msg] hooks.
+`post-rewrite` hooks do not operate on files so they must be set as
+`always_run: true` or they will always be skipped.
-To use `prepare-commit-msg` hooks with pre-commit, run:
+environment variables:
+- `PRE_COMMIT_REWRITE_COMMAND`: the first argument to the `post-rewrite` git hook.
-```console
-$ pre-commit install --hook-type prepare-commit-msg
-pre-commit installed at .git/hooks/prepare-commit-msg
-```
+### pre-commit
-`prepare-commit-msg` hooks can be used to create dynamic templates for commit
-messages. `prepare-commit-msg` hooks can be configured by setting
-`stages: [prepare-commit-msg]`. `prepare-commit-msg` hooks will be passed a
-single filename -- this file contains any initial commit message (e.g. from
-`git commit -m "..."` or a template) and can be modified by the hook before
-the editor is shown. A hook may want to check for `GIT_EDITOR=:` as this
-indicates that no editor will be launched. If a hook exits nonzero,
-the commit will be aborted.
+[git pre-commit docs](https://git-scm.com/docs/githooks#_pre_commit)
-[commit-msg]: https://git-scm.com/docs/githooks#_commit_msg
-[prepare-commit-msg]: https://git-scm.com/docs/githooks#_prepare_commit_msg
+`pre-commit` is triggered before the commit is finalized to allow checks on the
+code being committed. Running hooks on unstaged changes can lead to both
+false-positives and false-negatives during committing. pre-commit only runs
+on the staged contents of files by temporarily stashing the unstaged changes
+while running hooks.
+### pre-merge-commit
-## pre-commit for switching branches
-_new in 2.2.0_: pre-commit can be used to manage [post-checkout] hooks.
+[git pre-merge-commit docs](https://git-scm.com/docs/githooks#_pre_merge_commit)
-To use `post-checkout` hooks with pre-commit, run:
+`pre-merge-commit` fires after a merge succeeds but before the merge commit is
+created. This hook runs on all staged files from the merge.
-```console
-$ pre-commit install --hook-type post-checkout
-pre-commit installed at .git/hooks/post-checkout
-```
+Note that you need to be using at least git 2.24 for this hook.
-`post-checkout` hooks can be used to perform repository validity checks,
-auto-display differences from the previous HEAD if different,
-or set working dir metadata properties. Since `post-checkout` doesn't operate
-on files, any hooks must set `always_run`:
+### pre-push
-```yaml
-- repo: local
- hooks:
- - id: post-checkout-local
- name: Post checkout
- always_run: true
- stages: [post-checkout]
- # ...
-```
+[git pre-push docs](https://git-scm.com/docs/githooks#_pre_push)
-`post-checkout` hooks have three environment variables they can check to
-do their work: `$PRE_COMMIT_FROM_REF`, `$PRE_COMMIT_TO_REF`,
-and `$PRE_COMMIT_CHECKOUT_TYPE`. These correspond to the first, second,
-and third arguments (respectively) that are normally passed to a regular
-post-checkout hook from Git.
+`pre-push` is triggered on `git push`.
-[post-checkout]: https://git-scm.com/docs/githooks#_post_checkout
+environment variables:
+- `PRE_COMMIT_FROM_REF`: the revision that is being pushed to.
+- `PRE_COMMIT_TO_REF`: the local revision that is being pushed to the remote.
+- `PRE_COMMIT_REMOTE_NAME`: which remote is being pushed to (for example `origin`)
+- `PRE_COMMIT_REMOTE_URL`: the url of the remote that is being pushed to (for
+ example `git@github.com:pre-commit/pre-commit`)
+- `PRE_COMMIT_REMOTE_BRANCH`: the name of the remote branch to which we are
+ pushing (for example `refs/heads/target-branch`)
+- `PRE_COMMIT_LOCAL_BRANCH`: the name of the local branch that is being pushed
+ to the remote (for example `HEAD`)
-## pre-commit for rewriting
+### pre-rebase
-_new in 2.15.0_: pre-commit can be used to manage [post-rewrite] hooks.
+_new in 3.2.0_
-To use `post-rewrite` hooks with pre-commit, run:
+[git pre-rebase docs](https://git-scm.com/docs/githooks#_pre_rebase)
-```console
-$ pre-commit install --hook-type post-rewrite
-pre-commit installed at .git/hooks/post-rewrite
-```
+`pre-rebase` is triggered before a rebase occurs. A hook failure can cancel a
+rebase from occurring.
-`post-rewrite` is triggered after git commands which modify history such as
-`git commit --amend` and `git rebase`.
+`pre-rebase` hooks do not operate on files so they must be set as
+`always_run: true` or they will always be skipped.
-since `post-rewrite` does not operate on any files, you must set
-[`always_run: true`](#hooks-always_run).
+environment variables:
+- `PRE_COMMIT_PRE_REBASE_UPSTREAM`: the first argument to the `pre-rebase` git hook
+- `PRE_COMMIT_PRE_REBASE_BRANCH`: the second argument to the `pre-rebase` git hook.
-`git` tells the `post-rewrite` hook which command triggered the rewrite.
-`pre-commit` exposes this as `$PRE_COMMIT_REWRITE_COMMAND`.
+### prepare-commit-msg
-[post-rewrite]: https://git-scm.com/docs/githooks#_post_rewrite
+[git prepare-commit-msg docs](https://git-scm.com/docs/githooks#_prepare_commit_msg)
-## Confining hooks to run at certain stages
+`prepare-commit-msg` hooks will be passed a single filename -- this file may
+be empty or it could contain the commit message from `-m` or from other
+templates. `prepare-commit-msg` hooks can modify the contents of this file to
+change what will be committed. A hook may want to check for `GIT_EDITOR=:` as
+this indicates that no editor will be launched. If a hook exits nonzero, the
+commit will be aborted.
-Since the [`default_stages`](#top_level-default_stages) top level configuration property of the
-`.pre-commit-config.yaml` file is set to all stages by default, when installing
-hooks using the `-t`/`--hook-type` option (see [pre-commit
-install [options]](#pre-commit-install)), all hooks will be installed by default
-to run at the stage defined through that option. For instance,
-`pre-commit install --hook-type pre-push` will install by default all hooks
-to run at the `push` stage.
-
-Hooks can however be confined to a stage by setting the [`stages`](#config-stages)
-property in your `.pre-commit-config.yaml`, and the corresponding [`stages`](#hook-stages)
-property in the hook's `.pre-commit-hooks.yaml` definition. The `stages` properties
-are arrays and can contain any of `commit`, `merge-commit`, `push`, `prepare-commit-msg`,
-`commit-msg`, `post-checkout`, `post-commit`, `post-merge`, `post-rewrite`, and `manual`.
-It is useful to provide an appropriate set of stages out of the box in
-`.pre-commit-hooks.yaml` hook definitions to avoid unnecessary runs of hooks in
-stages where they do not and can not do anything useful. For example, a
-reasonable setting for code formatter and the like hooks would be
-`stages: [commit, merge-commit, push, manual]`, and one for hooks that operate
-on commit messages could be `stages: [commit-msg, manual]`.
-
-If you do not want to have hooks installed by default on the stage passed
-during a `pre-commit install --hook-type ...`, please set the [`default_stages`](#top_level-default_stages)
-top level configuration property to the desired stages, also as an array.
-
-An additional `manual` stage is available for one off execution
-that won't run in any hook context. This special stage is useful for taking
-advantage of `pre-commit`'s cross-platform / cross-language package management
-without running it on every commit. Hooks confined to `stages: [manual]` can
-be executed by running `pre-commit run --hook-stage manual [hookid]`.
+environment variables:
+- `PRE_COMMIT_COMMIT_MSG_SOURCE`: the second argument to the
+ `prepare-commit-msg` git hook
+- `PRE_COMMIT_COMMIT_OBJECT_NAME`: the third argument to the
+ `prepare-commit-msg` git hook
## Passing arguments to hooks
diff --git a/sections/cli.md b/sections/cli.md
index cad807ee..eb64c647 100644
--- a/sections/cli.md
+++ b/sections/cli.md
@@ -93,8 +93,7 @@ Install hook script in a directory intended for use with
Options:
-- `-t {pre-commit,pre-merge-commit,pre-push,prepare-commit-msg,commit-msg,post-checkout,post-commit,post-merge,post-rewrite}`,
- `--hook-type {pre-commit,pre-merge-commit,pre-push,prepare-commit-msg,commit-msg,post-checkout,post-commit,post-merge,post-rewrite}`:
+- `-t HOOK_TYPE, --hook-type HOOK_TYPE`:
which hook type to install.
Some example useful invocations:
@@ -130,8 +129,7 @@ Options:
- `--install-hooks`: Also install environments for all available hooks now
(rather than when they are first executed). See [`pre-commit
install-hooks`](#pre-commit-install-hooks).
-- `-t {pre-commit,pre-merge-commit,pre-push,prepare-commit-msg,commit-msg,post-checkout,post-commit,post-merge,post-rewrite}`,
- `--hook-type {pre-commit,pre-merge-commit,pre-push,prepare-commit-msg,commit-msg,post-checkout,post-commit,post-merge,post-rewrite}`:
+- `-t HOOK_TYPE, --hook-type HOOK_TYPE`:
Specify which hook type to install.
- `--allow-missing-config`: Hook scripts will permit a missing configuration
file.
@@ -236,6 +234,4 @@ Uninstall the pre-commit script.
Options:
-- `-t {pre-commit,pre-merge-commit,pre-push,prepare-commit-msg,commit-msg,post-checkout,post-commit,post-merge,post-rewrite}`,
- `--hook-type {pre-commit,pre-merge-commit,pre-push,prepare-commit-msg,commit-msg,post-checkout,post-commit,post-merge,post-rewrite}`:
- which hook type to uninstall.
+- `-t HOOK_TYPE, --hook-type HOOK_TYPE`: which hook type to uninstall.
diff --git a/sections/new-hooks.md b/sections/new-hooks.md
index b4ced988..9c559af6 100644
--- a/sections/new-hooks.md
+++ b/sections/new-hooks.md
@@ -78,10 +78,8 @@ file that tells pre-commit:
=c= (optional: default `[]`) list of additional parameters to pass to the hook.
=r=
=c= [`stages`](_#hooks-stages)
- =c= (optional: default (all stages)) confines the hook to the `commit`, `merge-commit`,
- `push`, `prepare-commit-msg`, `commit-msg`, `post-checkout`, `post-commit`,
- `post-merge`, `post-rewrite`, and/or `manual` stage(s). See
- [Confining hooks to run at certain stages](#confining-hooks-to-run-at-certain-stages).
+ =c= (optional: default (all stages)) selects which git hook(s) to run for.
+ See [Confining hooks to run at certain stages](#confining-hooks-to-run-at-certain-stages).
```
diff --git a/sections/plugins.md b/sections/plugins.md
index 1432d57f..858b5417 100644
--- a/sections/plugins.md
+++ b/sections/plugins.md
@@ -135,10 +135,8 @@ repository's configuration.
=c= (optional) list of additional parameters to pass to the hook.
=r=
=c= [`stages`](_#config-stages)
- =c= (optional) confines the hook to the `commit`, `merge-commit`, `push`,
- `prepare-commit-msg`, `commit-msg`, `post-checkout`, `post-commit`,
- `post-merge`, `post-rewrite`, or `manual` stage. See
- [Confining hooks to run at certain stages](#confining-hooks-to-run-at-certain-stages).
+ =c= (optional) selects which git hook(s) to run for.
+ See [Confining hooks to run at certain stages](#confining-hooks-to-run-at-certain-stages).
=r=
=c= [`additional_dependencies`](_#config-additional_dependencies)
=c= (optional) a list of dependencies that will be installed in the
diff --git a/template_lib.py b/template_lib.py
index a3232702..376f196a 100644
--- a/template_lib.py
+++ b/template_lib.py
@@ -18,7 +18,6 @@
ROW = '=r='
COL = ' =c= '
INDENT = ' ' * 8
-SELF_LINK_PREFIX = '_#'
def _render_table(code: str) -> str:
@@ -94,9 +93,11 @@ class Renderer(markdown_code_blocks.CodeRenderer):
def link(
self, link: str, text: str | None, title: str | None,
) -> str:
- if link.startswith(SELF_LINK_PREFIX):
- a_id = link.removeprefix(SELF_LINK_PREFIX)
+ if link.startswith('_#'):
+ a_id = link.removeprefix('_#')
return f'{text}'
+ elif link.startswith('__#'):
+ return f''
else:
return super().link(link, text, title)
From e615333c9b3ae3508bc6068ea8613c9600b9ff75 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 4 Apr 2023 05:18:01 +0000
Subject: [PATCH 195/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.36.0 → v8.37.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.36.0...v8.37.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f5310f2a..7408e15c 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -39,7 +39,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.36.0
+ rev: v8.37.0
hooks:
- id: eslint
args: [--fix]
From edf5658eb3b6ab691f4275971c29ac9c6deb227c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remigiusz=20=C5=BB=C4=99tkowski?=
Date: Sat, 8 Apr 2023 17:23:08 +0200
Subject: [PATCH 196/368] Update example for default_stages
---
sections/plugins.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sections/plugins.md b/sections/plugins.md
index 858b5417..f1e660e4 100644
--- a/sections/plugins.md
+++ b/sections/plugins.md
@@ -38,7 +38,7 @@ pre-commit config file describes what repositories and hooks are installed.
For example:
```yaml
- default_stages: [commit, push]
+ default_stages: [pre-commit, pre-push]
```
=r=
=c= [`files`](_#top_level-files)
From 5eef057498d0b3e77e07984e2367aeb393afdeeb Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 11 Apr 2023 02:58:02 +0000
Subject: [PATCH 197/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.1.1 → v1.2.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.1.1...v1.2.0)
- [github.com/pre-commit/mirrors-eslint: v8.37.0 → v8.38.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.37.0...v8.38.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 7408e15c..74a9456e 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -34,12 +34,12 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.1.1
+ rev: v1.2.0
hooks:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.37.0
+ rev: v8.38.0
hooks:
- id: eslint
args: [--fix]
From 54541dc7ab65c1af1bdfe2136b4760bfdfdcaa73 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Tue, 18 Apr 2023 11:37:51 -0400
Subject: [PATCH 198/368] also forbid `docker_image`
---
.github/pull_request_template.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index 44ae8bde..dd15f156 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -4,5 +4,5 @@ my new repository:
- [ ] is added to the bottom *or* with existing repos from the same account
- [ ] contains a license
-- [ ] is not `language: system`, `language: script`, or `language: docker`
+- [ ] is not `language: system`, `language: script`, `language: docker`, or `language: docker_image`
- [ ] does not contain "pre-commit" in the name
From 2b90e0ff905235ad0b9c159ce90a7df7b8920dd1 Mon Sep 17 00:00:00 2001
From: Ilya Konstantinov
Date: Wed, 19 Apr 2023 10:46:18 -0400
Subject: [PATCH 199/368] advanced: escape . in regex
---
sections/advanced.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sections/advanced.md b/sections/advanced.md
index 53b8573c..37a60354 100644
--- a/sections/advanced.md
+++ b/sections/advanced.md
@@ -278,7 +278,7 @@ For example:
name: check requirements files
language: system
entry: python -m scripts.check_requirements --compare
- files: ^requirements.*.txt$
+ files: ^requirements.*\.txt$
```
## Repository local hooks
From 213251cf69113706ffe7abb3febe39c5daeba56a Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 25 Apr 2023 03:21:15 +0000
Subject: [PATCH 200/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/pyupgrade: v3.3.1 → v3.3.2](https://github.com/asottile/pyupgrade/compare/v3.3.1...v3.3.2)
- [github.com/pre-commit/mirrors-eslint: v8.38.0 → v8.39.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.38.0...v8.39.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 74a9456e..4bafd77a 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -21,7 +21,7 @@ repos:
- id: add-trailing-comma
args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade
- rev: v3.3.1
+ rev: v3.3.2
hooks:
- id: pyupgrade
args: [--py37-plus]
@@ -39,7 +39,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.38.0
+ rev: v8.39.0
hooks:
- id: eslint
args: [--fix]
From 6da9994b567ba05f4b50f62a988e924c5309b63f Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Mon, 1 May 2023 19:39:30 -0400
Subject: [PATCH 201/368] remove twitter button
---
base.mako | 4 ----
1 file changed, 4 deletions(-)
diff --git a/base.mako b/base.mako
index 286c9fa6..72cd221f 100644
--- a/base.mako
+++ b/base.mako
@@ -65,10 +65,6 @@
## https://buttons.github.io/
Star
-
- ## https://developer.twitter.com/en/docs/twitter-for-websites/tweet-button/overview
-
-
From ef52b82895f2ce192a58a48b8d7f77d47a8a780f Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Mon, 1 May 2023 20:14:29 -0400
Subject: [PATCH 202/368] update docs for pre-commit 3.3.0
---
sections/cli.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/sections/cli.md b/sections/cli.md
index eb64c647..0529ae5c 100644
--- a/sections/cli.md
+++ b/sections/cli.md
@@ -22,6 +22,7 @@ Options:
- `--freeze`: Store "frozen" hashes in [`rev`](#repos-rev) instead of tag names.
- `--repo REPO`: Only update this repository. This option may be specified
multiple times.
+- `-j` / `--jobs`: _new in 3.3.0_ Number of threads to use (default: 1).
Here are some sample invocations using this `.pre-commit-config.yaml`:
From 49c0bae4079402641e9ed8546ac480f3da862ab7 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Mon, 8 May 2023 14:06:38 -0400
Subject: [PATCH 203/368] update reorder-python-imports repo
---
all-repos.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index 591f309f..8f17af3b 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -18,7 +18,7 @@
- https://github.com/guykisel/prospector-mirror
- https://github.com/asottile/add-trailing-comma
- https://github.com/asottile/pyupgrade
-- https://github.com/asottile/reorder_python_imports
+- https://github.com/asottile/reorder-python-imports
- https://github.com/asottile/yesqa
- https://github.com/asottile/dead
- https://github.com/asottile/setup-cfg-fmt
From fb4c32dcf77609ef8763d0fdf57bd5821090954a Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 9 May 2023 04:04:13 +0000
Subject: [PATCH 204/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- https://github.com/asottile/reorder_python_imports → https://github.com/asottile/reorder-python-imports
- [github.com/asottile/pyupgrade: v3.3.2 → v3.4.0](https://github.com/asottile/pyupgrade/compare/v3.3.2...v3.4.0)
- [github.com/pre-commit/mirrors-eslint: v8.39.0 → v8.40.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.39.0...v8.40.0)
---
.pre-commit-config.yaml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 4bafd77a..b959ed10 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -9,7 +9,7 @@ repos:
- id: double-quote-string-fixer
- id: name-tests-test
- id: requirements-txt-fixer
-- repo: https://github.com/asottile/reorder_python_imports
+- repo: https://github.com/asottile/reorder-python-imports
rev: v3.9.0
hooks:
- id: reorder-python-imports
@@ -21,7 +21,7 @@ repos:
- id: add-trailing-comma
args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade
- rev: v3.3.2
+ rev: v3.4.0
hooks:
- id: pyupgrade
args: [--py37-plus]
@@ -39,7 +39,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.39.0
+ rev: v8.40.0
hooks:
- id: eslint
args: [--fix]
From f3161301de46fce72114edbd8ab21f113ced94e3 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 16 May 2023 03:20:47 +0000
Subject: [PATCH 205/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.2.0 → v1.3.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.2.0...v1.3.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b959ed10..5bf84d9e 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -34,7 +34,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.2.0
+ rev: v1.3.0
hooks:
- id: mypy
additional_dependencies: [types-all]
From 1362ca9009eb8ddadf440b25063135704a734f53 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 23 May 2023 03:08:17 +0000
Subject: [PATCH 206/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.40.0 → v8.41.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.40.0...v8.41.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 5bf84d9e..96497812 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -39,7 +39,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.40.0
+ rev: v8.41.0
hooks:
- id: eslint
args: [--fix]
From 3f55b0fbfa644820b43f7d17f1445765943acc09 Mon Sep 17 00:00:00 2001
From: Adam Johnson
Date: Mon, 29 May 2023 15:21:44 +0100
Subject: [PATCH 207/368] Remove adamchainz/pre-commit-dprint
---
all-repos.yaml | 1 -
1 file changed, 1 deletion(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index 8f17af3b..a7a3e803 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -201,7 +201,6 @@
- https://github.com/rapidsai/frigate
- https://github.com/norwoodj/helm-docs
- https://github.com/sqlfluff/sqlfluff
-- https://github.com/adamchainz/pre-commit-dprint
- https://github.com/adamchainz/blacken-docs
- https://github.com/adamchainz/django-upgrade
- https://github.com/scop/pre-commit-shfmt
From 67c047e6bab0323873bf30381662faa1407bf0e1 Mon Sep 17 00:00:00 2001
From: Chris Hacker <49451910+christopher-hacker@users.noreply.github.com>
Date: Fri, 2 Jun 2023 15:16:16 -0500
Subject: [PATCH 208/368] add enforce-notebook-run-order
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index a7a3e803..d0eb0b22 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -233,3 +233,4 @@
- https://github.com/dbt-checkpoint/dbt-checkpoint
- https://gitlab.com/engmark/vcard
- https://github.com/Data-Liberation-Front/csvlint.rb
+- https://github.com/christopher-hacker/enforce-notebook-run-order
From f564020070852730a61fe137b44fb34b8275af58 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 6 Jun 2023 03:14:44 +0000
Subject: [PATCH 209/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.41.0 → v8.42.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.41.0...v8.42.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 96497812..02a89729 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -39,7 +39,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.41.0
+ rev: v8.42.0
hooks:
- id: eslint
args: [--fix]
From 9aba6f343b3ab9e6ec9191324ece520fc5ba1595 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 13 Jun 2023 03:58:47 +0000
Subject: [PATCH 210/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/add-trailing-comma: v2.4.0 → v2.5.1](https://github.com/asottile/add-trailing-comma/compare/v2.4.0...v2.5.1)
- [github.com/asottile/pyupgrade: v3.4.0 → v3.6.0](https://github.com/asottile/pyupgrade/compare/v3.4.0...v3.6.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 02a89729..f0f2bcc6 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -16,12 +16,12 @@ repos:
args: [--py37-plus, --add-import, 'from __future__ import annotations']
- id: reorder-python-imports
- repo: https://github.com/asottile/add-trailing-comma
- rev: v2.4.0
+ rev: v2.5.1
hooks:
- id: add-trailing-comma
args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade
- rev: v3.4.0
+ rev: v3.6.0
hooks:
- id: pyupgrade
args: [--py37-plus]
From 40dbbd0941945c2aa3f0aee7d3142a313300968b Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 20 Jun 2023 04:33:53 +0000
Subject: [PATCH 211/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/reorder-python-imports: v3.9.0 → v3.10.0](https://github.com/asottile/reorder-python-imports/compare/v3.9.0...v3.10.0)
- [github.com/asottile/pyupgrade: v3.6.0 → v3.7.0](https://github.com/asottile/pyupgrade/compare/v3.6.0...v3.7.0)
- [github.com/pre-commit/mirrors-eslint: v8.42.0 → v8.43.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.42.0...v8.43.0)
---
.pre-commit-config.yaml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f0f2bcc6..8d863591 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -10,7 +10,7 @@ repos:
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/asottile/reorder-python-imports
- rev: v3.9.0
+ rev: v3.10.0
hooks:
- id: reorder-python-imports
args: [--py37-plus, --add-import, 'from __future__ import annotations']
@@ -21,7 +21,7 @@ repos:
- id: add-trailing-comma
args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade
- rev: v3.6.0
+ rev: v3.7.0
hooks:
- id: pyupgrade
args: [--py37-plus]
@@ -39,7 +39,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.42.0
+ rev: v8.43.0
hooks:
- id: eslint
args: [--fix]
From 635493625141122e820c0b4cb0f1099193863f10 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 27 Jun 2023 03:52:24 +0000
Subject: [PATCH 212/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.3.0 → v1.4.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.3.0...v1.4.1)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 8d863591..41032635 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -34,7 +34,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.3.0
+ rev: v1.4.1
hooks:
- id: mypy
additional_dependencies: [types-all]
From 93bf5894aeef950d07e3337c987e86051ba7efe7 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Sat, 1 Jul 2023 16:47:59 -0400
Subject: [PATCH 213/368] updates for add-trailing-comma 3.x
Committed via https://github.com/asottile/all-repos
---
.pre-commit-config.yaml | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 41032635..cf9954fa 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -13,18 +13,17 @@ repos:
rev: v3.10.0
hooks:
- id: reorder-python-imports
- args: [--py37-plus, --add-import, 'from __future__ import annotations']
+ args: [--py38-plus, --add-import, 'from __future__ import annotations']
- id: reorder-python-imports
- repo: https://github.com/asottile/add-trailing-comma
- rev: v2.5.1
+ rev: v3.0.0
hooks:
- id: add-trailing-comma
- args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade
- rev: v3.7.0
+ rev: v3.8.0
hooks:
- id: pyupgrade
- args: [--py37-plus]
+ args: [--py38-plus]
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v2.0.2
hooks:
@@ -39,7 +38,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.43.0
+ rev: v8.44.0
hooks:
- id: eslint
args: [--fix]
From a8bd677d9a2ddb57176a44b8acb91f5f653d7567 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 11 Jul 2023 05:21:35 +0000
Subject: [PATCH 214/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/pyupgrade: v3.8.0 → v3.9.0](https://github.com/asottile/pyupgrade/compare/v3.8.0...v3.9.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index cf9954fa..f64737bd 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -20,7 +20,7 @@ repos:
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
- rev: v3.8.0
+ rev: v3.9.0
hooks:
- id: pyupgrade
args: [--py38-plus]
From 23ab1490017b79de5061f08d5a81e8a5ce5f672e Mon Sep 17 00:00:00 2001
From: Thomas Braun
Date: Fri, 14 Jul 2023 23:45:30 +0200
Subject: [PATCH 215/368] sections/advanced.md: Avoid warning on old action
Old actions which use node 12 currently spew a warning, see [1].
Let's use the latest version in the documentation here to help future
users.
[1]: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
---
sections/advanced.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sections/advanced.md b/sections/advanced.md
index 37a60354..61eb0d31 100644
--- a/sections/advanced.md
+++ b/sections/advanced.md
@@ -706,7 +706,7 @@ immutable caches:
```yaml
- name: set PY
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- - uses: actions/cache@v1
+ - uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
From 7620b30055742cd9a54d6146daa07f8dcc59df24 Mon Sep 17 00:00:00 2001
From: Max R
Date: Sun, 16 Jul 2023 07:31:57 -0400
Subject: [PATCH 216/368] Add `mxr/unkey`
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index d0eb0b22..0b55e24b 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -234,3 +234,4 @@
- https://gitlab.com/engmark/vcard
- https://github.com/Data-Liberation-Front/csvlint.rb
- https://github.com/christopher-hacker/enforce-notebook-run-order
+- https://github.com/mxr/unkey
From af3e543414eccb3fc4e07f8958d39cc31011709d Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 18 Jul 2023 05:16:19 +0000
Subject: [PATCH 217/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.44.0 → v8.45.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.44.0...v8.45.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f64737bd..f717c012 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -38,7 +38,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.44.0
+ rev: v8.45.0
hooks:
- id: eslint
args: [--fix]
From 8525e49197161d7647d5979560ae3f3a699d47bf Mon Sep 17 00:00:00 2001
From: Iain Samuel McLean Elder
Date: Tue, 18 Jul 2023 18:04:12 +0200
Subject: [PATCH 218/368] Add actionlint-py hook
[actionlint-py](https://github.com/Mateusz-Grzelinski/actionlint-py/) is a pre-commit hook for [actionlint](https://github.com/rhysd/actionlint).
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 0b55e24b..ba059b1a 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -235,3 +235,4 @@
- https://github.com/Data-Liberation-Front/csvlint.rb
- https://github.com/christopher-hacker/enforce-notebook-run-order
- https://github.com/mxr/unkey
+- https://github.com/Mateusz-Grzelinski/actionlint-py
From bcc1110f1c23480a18b94f9cb009f6a35cdc3d5e Mon Sep 17 00:00:00 2001
From: Max R
Date: Sun, 16 Jul 2023 07:34:26 -0400
Subject: [PATCH 219/368] Add `pre-commit/sync-pre-commit-deps`
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index ba059b1a..864d6c36 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -12,6 +12,7 @@
- https://github.com/pre-commit/mirrors-scss-lint
- https://github.com/pre-commit/mirrors-yapf
- https://github.com/pre-commit/pygrep-hooks
+- https://github.com/pre-commit/sync-pre-commit-deps
- https://github.com/FalconSocial/pre-commit-mirrors-pep257
- https://github.com/FalconSocial/pre-commit-python-sorter
- https://github.com/MarketSquare/robotframework-tidy
From 642bb9a896e5e183074df3be76e51381aaaf03c0 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 1 Aug 2023 07:09:29 +0000
Subject: [PATCH 220/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/add-trailing-comma: v3.0.0 → v3.0.1](https://github.com/asottile/add-trailing-comma/compare/v3.0.0...v3.0.1)
- [github.com/asottile/pyupgrade: v3.9.0 → v3.10.1](https://github.com/asottile/pyupgrade/compare/v3.9.0...v3.10.1)
- [github.com/PyCQA/flake8: 6.0.0 → 6.1.0](https://github.com/PyCQA/flake8/compare/6.0.0...6.1.0)
- [github.com/pre-commit/mirrors-eslint: v8.45.0 → v8.46.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.45.0...v8.46.0)
---
.pre-commit-config.yaml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f717c012..5e14441d 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -16,11 +16,11 @@ repos:
args: [--py38-plus, --add-import, 'from __future__ import annotations']
- id: reorder-python-imports
- repo: https://github.com/asottile/add-trailing-comma
- rev: v3.0.0
+ rev: v3.0.1
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
- rev: v3.9.0
+ rev: v3.10.1
hooks:
- id: pyupgrade
args: [--py38-plus]
@@ -29,7 +29,7 @@ repos:
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/flake8
- rev: 6.0.0
+ rev: 6.1.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
@@ -38,7 +38,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.45.0
+ rev: v8.46.0
hooks:
- id: eslint
args: [--fix]
From 49275767a5bd048adee2a9667309311835fc811d Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 15 Aug 2023 06:03:21 +0000
Subject: [PATCH 221/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.4.1 → v1.5.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.4.1...v1.5.0)
- [github.com/pre-commit/mirrors-eslint: v8.46.0 → v8.47.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.46.0...v8.47.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 5e14441d..395de9e8 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,12 +33,12 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.4.1
+ rev: v1.5.0
hooks:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.46.0
+ rev: v8.47.0
hooks:
- id: eslint
args: [--fix]
From 5bd8ae2be02209153cba00fe5426c8c9ef55fcea Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Tue, 15 Aug 2023 18:04:58 -0400
Subject: [PATCH 222/368] clarify checklist
---
.github/pull_request_template.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index dd15f156..3d1615fa 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -1,5 +1,7 @@
+
+
my new repository:
- [ ] is added to the bottom *or* with existing repos from the same account
From 0a21511d1d1b9072076386254eda402eeb6bd7de Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 22 Aug 2023 06:16:29 +0000
Subject: [PATCH 223/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.5.0 → v1.5.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.5.0...v1.5.1)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 395de9e8..a68b6229 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,7 +33,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.5.0
+ rev: v1.5.1
hooks:
- id: mypy
additional_dependencies: [types-all]
From 349887a23487503607fe791646e82b217b18fcf5 Mon Sep 17 00:00:00 2001
From: Paul Rogalski <102597634+p-rogalski@users.noreply.github.com>
Date: Fri, 25 Aug 2023 16:59:42 +0200
Subject: [PATCH 224/368] post_commit missing from list "Supported git hooks"
---
sections/advanced.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/sections/advanced.md b/sections/advanced.md
index 61eb0d31..e559e95e 100644
--- a/sections/advanced.md
+++ b/sections/advanced.md
@@ -82,6 +82,7 @@ pre-commit installed at .git/hooks/commit-msg
- [commit-msg](#commit-msg)
- [post-checkout](#post-checkout)
+- [post-commit](#post-commit)
- [post-merge](#post-merge)
- [post-rewrite](#post-rewrite)
- [pre-commit](#pre-commit)
From cddd1f23a7b3590c41b1bc902f5c198a37890071 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 29 Aug 2023 05:38:34 +0000
Subject: [PATCH 225/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-autopep8: v2.0.2 → v2.0.4](https://github.com/pre-commit/mirrors-autopep8/compare/v2.0.2...v2.0.4)
- [github.com/pre-commit/mirrors-eslint: v8.47.0 → v8.48.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.47.0...v8.48.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index a68b6229..65d3855b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -25,7 +25,7 @@ repos:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/pre-commit/mirrors-autopep8
- rev: v2.0.2
+ rev: v2.0.4
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/flake8
@@ -38,7 +38,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.47.0
+ rev: v8.48.0
hooks:
- id: eslint
args: [--fix]
From 8efb57ad832ed35a1cba69a7231954a15c2beb74 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Sat, 2 Sep 2023 13:22:32 -0400
Subject: [PATCH 226/368] document pre-commit 3.4.0
---
sections/new-hooks.md | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/sections/new-hooks.md b/sections/new-hooks.md
index 9c559af6..631d260f 100644
--- a/sections/new-hooks.md
+++ b/sections/new-hooks.md
@@ -146,6 +146,7 @@ Hello from foo hook!
- [dotnet](#dotnet)
- [fail](#fail)
- [golang](#golang)
+- [haskell](#haskell)
- [lua](#lua)
- [node](#node)
- [perl](#perl)
@@ -321,6 +322,19 @@ also now supports `language_version`
__Support:__ golang hooks are known to work on any system which has go
installed. It has been tested on linux, macOS, and windows.
+### haskell
+
+_new in 3.4.0_
+
+The hook repository must have one or more `*.cabal` files. Once installed
+the `executable`s from these packages will be available to use with `entry`.
+
+This language supports `additional_dependencies` so it can be used as a
+`repo: local` hook.
+
+__Support:__ haskell hooks are known to work on any system which has `cabal`
+installed. It has been tested on linux, macOS, and windows.
+
### lua
_new in 2.17.0_
From 1135f59973ca51a892a194eb93db243664eb2ac2 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 5 Sep 2023 06:47:36 +0000
Subject: [PATCH 227/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/add-trailing-comma: v3.0.1 → v3.1.0](https://github.com/asottile/add-trailing-comma/compare/v3.0.1...v3.1.0)
- https://github.com/pre-commit/mirrors-autopep8 → https://github.com/hhatto/autopep8
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 65d3855b..7b850469 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -16,7 +16,7 @@ repos:
args: [--py38-plus, --add-import, 'from __future__ import annotations']
- id: reorder-python-imports
- repo: https://github.com/asottile/add-trailing-comma
- rev: v3.0.1
+ rev: v3.1.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
@@ -24,7 +24,7 @@ repos:
hooks:
- id: pyupgrade
args: [--py38-plus]
-- repo: https://github.com/pre-commit/mirrors-autopep8
+- repo: https://github.com/hhatto/autopep8
rev: v2.0.4
hooks:
- id: autopep8
From 9b4922159db1f88e8b97ccd46c8d927edfdf8a57 Mon Sep 17 00:00:00 2001
From: Andrew Ring
Date: Mon, 11 Sep 2023 19:27:39 -0500
Subject: [PATCH 228/368] Add github-distributed-owners hook
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 864d6c36..2cae24df 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -237,3 +237,4 @@
- https://github.com/christopher-hacker/enforce-notebook-run-order
- https://github.com/mxr/unkey
- https://github.com/Mateusz-Grzelinski/actionlint-py
+- https://github.com/andrewring/github-distributed-owners
From 73fba15dd565a9280df444f0c98b27790bc5591d Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 12 Sep 2023 07:50:49 +0000
Subject: [PATCH 229/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.48.0 → v8.49.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.48.0...v8.49.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 7b850469..4ef559da 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -38,7 +38,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.48.0
+ rev: v8.49.0
hooks:
- id: eslint
args: [--fix]
From 89b90574422e0fd0cebee57c893ffc9fe94b5f53 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 07:06:25 +0000
Subject: [PATCH 230/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/reorder-python-imports: v3.10.0 → v3.11.0](https://github.com/asottile/reorder-python-imports/compare/v3.10.0...v3.11.0)
- [github.com/asottile/pyupgrade: v3.10.1 → v3.11.0](https://github.com/asottile/pyupgrade/compare/v3.10.1...v3.11.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 4ef559da..a2575b64 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -10,7 +10,7 @@ repos:
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/asottile/reorder-python-imports
- rev: v3.10.0
+ rev: v3.11.0
hooks:
- id: reorder-python-imports
args: [--py38-plus, --add-import, 'from __future__ import annotations']
@@ -20,7 +20,7 @@ repos:
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
- rev: v3.10.1
+ rev: v3.11.0
hooks:
- id: pyupgrade
args: [--py38-plus]
From 0658d8222215313e1ccbaa74549907444df49c51 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 26 Sep 2023 07:24:16 +0000
Subject: [PATCH 231/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/pyupgrade: v3.11.0 → v3.13.0](https://github.com/asottile/pyupgrade/compare/v3.11.0...v3.13.0)
- [github.com/pre-commit/mirrors-eslint: v8.49.0 → v8.50.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.49.0...v8.50.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index a2575b64..4e1c40c8 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -20,7 +20,7 @@ repos:
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
- rev: v3.11.0
+ rev: v3.13.0
hooks:
- id: pyupgrade
args: [--py38-plus]
@@ -38,7 +38,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.49.0
+ rev: v8.50.0
hooks:
- id: eslint
args: [--fix]
From 1b397c31d8e197f7b9cc772a5f019c336189ccd4 Mon Sep 17 00:00:00 2001
From: Mermeid Designs <145268612+Mermeid-Designs@users.noreply.github.com>
Date: Mon, 18 Sep 2023 02:44:03 -0400
Subject: [PATCH 232/368] Add pydantic-hooks repo to all-repos.yaml file
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 2cae24df..921a4f0f 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -238,3 +238,4 @@
- https://github.com/mxr/unkey
- https://github.com/Mateusz-Grzelinski/actionlint-py
- https://github.com/andrewring/github-distributed-owners
+- https://github.com/Mermeid-Designs/pydantic-hooks
From f938b992a4eeb7fea1730450e113ea515d388679 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 3 Oct 2023 08:58:27 +0000
Subject: [PATCH 233/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/reorder-python-imports: v3.11.0 → v3.12.0](https://github.com/asottile/reorder-python-imports/compare/v3.11.0...v3.12.0)
- [github.com/asottile/pyupgrade: v3.13.0 → v3.14.0](https://github.com/asottile/pyupgrade/compare/v3.13.0...v3.14.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 4e1c40c8..cdaa3820 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -10,7 +10,7 @@ repos:
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/asottile/reorder-python-imports
- rev: v3.11.0
+ rev: v3.12.0
hooks:
- id: reorder-python-imports
args: [--py38-plus, --add-import, 'from __future__ import annotations']
@@ -20,7 +20,7 @@ repos:
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
- rev: v3.13.0
+ rev: v3.14.0
hooks:
- id: pyupgrade
args: [--py38-plus]
From 1c14a579a525bc30fe8a9707dc19fcf9a5c7fc4e Mon Sep 17 00:00:00 2001
From: Ivan Grokhotkov
Date: Mon, 25 Sep 2023 00:42:18 +0200
Subject: [PATCH 234/368] add Astyle hook (igrr/astyle_py) to all-repos.yaml
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 921a4f0f..57ce18ca 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -239,3 +239,4 @@
- https://github.com/Mateusz-Grzelinski/actionlint-py
- https://github.com/andrewring/github-distributed-owners
- https://github.com/Mermeid-Designs/pydantic-hooks
+- https://github.com/igrr/astyle_py
From 9b045bc3a5a72f658967242a68215c6aeb4a8544 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 9 Oct 2023 20:33:40 +0000
Subject: [PATCH 235/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.5.0)
- [github.com/asottile/pyupgrade: v3.14.0 → v3.15.0](https://github.com/asottile/pyupgrade/compare/v3.14.0...v3.15.0)
- [github.com/pre-commit/mirrors-eslint: v8.50.0 → v8.51.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.50.0...v8.51.0)
---
.pre-commit-config.yaml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index cdaa3820..f187a827 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v4.4.0
+ rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
@@ -20,7 +20,7 @@ repos:
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
- rev: v3.14.0
+ rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py38-plus]
@@ -38,7 +38,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.50.0
+ rev: v8.51.0
hooks:
- id: eslint
args: [--fix]
From 9043d477f85369182f3387f08bce592005e93a33 Mon Sep 17 00:00:00 2001
From: David Culley <6276049+davidculley@users.noreply.github.com>
Date: Tue, 10 Oct 2023 13:20:48 +0200
Subject: [PATCH 236/368] docs: fix typo
---
sections/advanced.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sections/advanced.md b/sections/advanced.md
index e559e95e..90e9bf27 100644
--- a/sections/advanced.md
+++ b/sections/advanced.md
@@ -89,7 +89,7 @@ pre-commit installed at .git/hooks/commit-msg
- [pre-merge-commit](#pre-merge-commit)
- [pre-push](#pre-push)
- [pre-rebase](#pre-rebase)
-- [prepare-comit-msg](#prepare-commit-msg)
+- [prepare-commit-msg](#prepare-commit-msg)
### commit-msg
From 822ae7f9f38f20a15f3f93dc1fbcb99b33fdf51b Mon Sep 17 00:00:00 2001
From: Hugo Chinchilla
Date: Mon, 16 Oct 2023 08:02:57 +0200
Subject: [PATCH 237/368] document post-merge needs 'always_run: true'
---
sections/advanced.md | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sections/advanced.md b/sections/advanced.md
index 90e9bf27..65d30ac5 100644
--- a/sections/advanced.md
+++ b/sections/advanced.md
@@ -136,6 +136,9 @@ _new in 2.11.0_
`post-merge` runs after a successful `git merge`.
+`post-merge` hooks do not operate on files so they must be set as
+`always_run: true` or they will always be skipped.
+
environment variables:
- `PRE_COMMIT_IS_SQUASH_MERGE`: the first argument to the `post-merge` git hook.
From 1353e360a59f6c34facf15c33eb5a71624121145 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 16 Oct 2023 20:03:50 +0000
Subject: [PATCH 238/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.5.1 → v1.6.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.5.1...v1.6.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f187a827..158388f0 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,7 +33,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.5.1
+ rev: v1.6.0
hooks:
- id: mypy
additional_dependencies: [types-all]
From d19615fbe95c47723ca8369c7ee28433d1d5bab0 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 23 Oct 2023 20:28:21 +0000
Subject: [PATCH 239/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.6.0 → v1.6.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.6.0...v1.6.1)
- [github.com/pre-commit/mirrors-eslint: v8.51.0 → v8.52.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.51.0...v8.52.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 158388f0..02e27ac9 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,12 +33,12 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.6.0
+ rev: v1.6.1
hooks:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.51.0
+ rev: v8.52.0
hooks:
- id: eslint
args: [--fix]
From c6e494c004f76684d3aec2415a31edabf50044cf Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 6 Nov 2023 20:08:44 +0000
Subject: [PATCH 240/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.52.0 → v8.53.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.52.0...v8.53.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 02e27ac9..cc72f372 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -38,7 +38,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.52.0
+ rev: v8.53.0
hooks:
- id: eslint
args: [--fix]
From 05a82a3090d189365cecf79859316af8368d07e8 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 13 Nov 2023 20:35:38 +0000
Subject: [PATCH 241/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.6.1 → v1.7.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.6.1...v1.7.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index cc72f372..1e1fb916 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,7 +33,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.6.1
+ rev: v1.7.0
hooks:
- id: mypy
additional_dependencies: [types-all]
From 040ca4aac593c51ccae1d252f2e1954c1979edf9 Mon Sep 17 00:00:00 2001
From: TribuneX
Date: Wed, 15 Nov 2023 21:39:15 +0100
Subject: [PATCH 242/368] docs: add new pre-commit hook to all-repos.yaml
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 57ce18ca..3cc22363 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -240,3 +240,4 @@
- https://github.com/andrewring/github-distributed-owners
- https://github.com/Mermeid-Designs/pydantic-hooks
- https://github.com/igrr/astyle_py
+- https://gitlab.com/codementors/pre-commit/add-issue-number-to-conventional-commit
From 255cd1f9ffc9f3f2510b66e73c639e8904dc0415 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Sun, 19 Nov 2023 11:05:41 -0500
Subject: [PATCH 243/368] fix deploy badge
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 60489cfc..c311257b 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,6 @@ pre-commit.com
==============
[](https://results.pre-commit.ci/latest/github/pre-commit/pre-commit.com/main)
-[](https://github.com/pre-commit/pre-commit.com/actions)
+[](https://github.com/pre-commit/pre-commit.com/actions)
This powers https://pre-commit.com
From e3fc056b32cdc1e4107e0a020f3a7d2b2d5fc0f2 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Sun, 19 Nov 2023 11:23:23 -0500
Subject: [PATCH 244/368] require short names by default
this adds an additional check to the hooks page which requires names not cause wrapping by default
---
all-repos.yaml | 18 +++++++++---------
make_all_hooks.py | 4 ++++
2 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index 3cc22363..b6af5e38 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -27,14 +27,14 @@
- https://github.com/digitalpulp/pre-commit-php
- https://github.com/elidupuis/mirrors-jscs
- https://github.com/elidupuis/mirrors-sass-lint
-- https://github.com/jumanjihouse/pre-commit-hooks
+# - https://github.com/jumanjihouse/pre-commit-hooks
- https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
- https://github.com/Lucas-C/pre-commit-hooks
- https://github.com/Lucas-C/pre-commit-hooks-go
-- https://github.com/Lucas-C/pre-commit-hooks-java
+# - https://github.com/Lucas-C/pre-commit-hooks-java
- https://github.com/Lucas-C/pre-commit-hooks-lxml
-- https://github.com/Lucas-C/pre-commit-hooks-markup
-- https://github.com/Lucas-C/pre-commit-hooks-nodejs
+# - https://github.com/Lucas-C/pre-commit-hooks-markup
+# - https://github.com/Lucas-C/pre-commit-hooks-nodejs
- https://github.com/Lucas-C/pre-commit-hooks-safety
- https://github.com/chriskuehl/puppet-pre-commit-hooks
- https://github.com/golangci/golangci-lint
@@ -154,10 +154,10 @@
- https://gitlab.com/pablodiehl/pre-commit-lua-formatter
- https://github.com/frnmst/md-toc
- https://github.com/mgedmin/check-manifest
-- https://github.com/ecugol/pre-commit-hooks-django
+# - https://github.com/ecugol/pre-commit-hooks-django
- https://github.com/PrincetonUniversity/blocklint
- https://github.com/python-jsonschema/check-jsonschema
-- https://github.com/sirosen/texthooks
+# - https://github.com/sirosen/texthooks
- https://github.com/snok/pep585-upgrade
- https://github.com/jendrikseipp/vulture
- https://github.com/mwouts/jupytext
@@ -185,8 +185,8 @@
- https://github.com/chrismgrayftsinc/jsonnetfmt
- https://github.com/zricethezav/gitleaks
- https://github.com/hugoh/pre-commit-fish
-- https://github.com/nbyl/pre-commit-license-checks
-- https://github.com/jonasbb/pre-commit-latex-hooks
+# - https://github.com/nbyl/pre-commit-license-checks
+# - https://github.com/jonasbb/pre-commit-latex-hooks
- https://github.com/dfm/black_nbconvert
- https://github.com/crate-ci/typos
- https://github.com/snakemake/snakefmt
@@ -231,7 +231,7 @@
- https://github.com/jshwi/docsig
- https://github.com/finsberg/clang-format-docs
- https://github.com/rubocop/rubocop
-- https://github.com/dbt-checkpoint/dbt-checkpoint
+# - https://github.com/dbt-checkpoint/dbt-checkpoint
- https://gitlab.com/engmark/vcard
- https://github.com/Data-Liberation-Front/csvlint.rb
- https://github.com/christopher-hacker/enforce-notebook-run-order
diff --git a/make_all_hooks.py b/make_all_hooks.py
index 5d046dce..32182634 100644
--- a/make_all_hooks.py
+++ b/make_all_hooks.py
@@ -33,6 +33,10 @@ def get_manifest(repo_path: str) -> tuple[bool, str, list[dict[str, Any]]]:
if hook['fail_fast']:
print(f'{repo_path} ({hook["id"]}) sets `fail_fast: true`')
return False, repo_path, []
+ # hook names should be short and not cause wrapping by default
+ if len(hook['name']) > 50:
+ print(f'{repo_path} ({hook["id"]}) has too long `name` (>50)')
+ return False, repo_path, []
with open(manifest_path) as f:
return True, repo_path, fast_load(f)
From 492392409b08495c7dbfc0d42270203b52e24c40 Mon Sep 17 00:00:00 2001
From: Stefanie Molin <24376333+stefmolin@users.noreply.github.com>
Date: Sun, 19 Nov 2023 16:20:57 -0500
Subject: [PATCH 245/368] Add numpydoc validation pre-commit hook
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index b6af5e38..74a87be1 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -241,3 +241,4 @@
- https://github.com/Mermeid-Designs/pydantic-hooks
- https://github.com/igrr/astyle_py
- https://gitlab.com/codementors/pre-commit/add-issue-number-to-conventional-commit
+- https://github.com/numpy/numpydoc
From 0180f2a5c71298e06e2fcb424d70bf7e17fdf4bf Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 20 Nov 2023 20:03:34 +0000
Subject: [PATCH 246/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.53.0 → v8.54.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.53.0...v8.54.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 1e1fb916..eee4a129 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -38,7 +38,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.53.0
+ rev: v8.54.0
hooks:
- id: eslint
args: [--fix]
From 8e5f800060beb64d896112cb8c605211f79ef701 Mon Sep 17 00:00:00 2001
From: Stephen Rosen
Date: Sun, 26 Nov 2023 18:12:11 -0600
Subject: [PATCH 247/368] Reenable 'sirosen/texthooks' in all-repos.yaml
---
all-repos.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index 74a87be1..3d4643dd 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -157,7 +157,7 @@
# - https://github.com/ecugol/pre-commit-hooks-django
- https://github.com/PrincetonUniversity/blocklint
- https://github.com/python-jsonschema/check-jsonschema
-# - https://github.com/sirosen/texthooks
+- https://github.com/sirosen/texthooks
- https://github.com/snok/pep585-upgrade
- https://github.com/jendrikseipp/vulture
- https://github.com/mwouts/jupytext
From 1749e3bf898945c564e30d0486baafd6dbdf38e6 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 27 Nov 2023 20:01:26 +0000
Subject: [PATCH 248/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.7.0 → v1.7.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.7.0...v1.7.1)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index eee4a129..d6a9ffea 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,7 +33,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.7.0
+ rev: v1.7.1
hooks:
- id: mypy
additional_dependencies: [types-all]
From 262f677ad53f81d94bc55287ceeffbed270ec34a Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 4 Dec 2023 20:08:47 +0000
Subject: [PATCH 249/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.54.0 → v8.55.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.54.0...v8.55.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index d6a9ffea..ac94e2cd 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -38,7 +38,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.54.0
+ rev: v8.55.0
hooks:
- id: eslint
args: [--fix]
From 3d799f187a3bb8f68bf0a6fd49e4864824cb4d56 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Wed, 20 Dec 2023 18:08:22 -0500
Subject: [PATCH 250/368] allow deprecated hooks to exceed character limit
---
make_all_hooks.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/make_all_hooks.py b/make_all_hooks.py
index 32182634..a1bea4f4 100644
--- a/make_all_hooks.py
+++ b/make_all_hooks.py
@@ -34,7 +34,10 @@ def get_manifest(repo_path: str) -> tuple[bool, str, list[dict[str, Any]]]:
print(f'{repo_path} ({hook["id"]}) sets `fail_fast: true`')
return False, repo_path, []
# hook names should be short and not cause wrapping by default
- if len(hook['name']) > 50:
+ if (
+ len(hook['name']) > 50 and
+ 'deprecated' not in hook['name'].lower()
+ ):
print(f'{repo_path} ({hook["id"]}) has too long `name` (>50)')
return False, repo_path, []
From 14dd9f46f3d657d905c21ae837b03a37729cda30 Mon Sep 17 00:00:00 2001
From: Hakan Celik
Date: Tue, 19 Dec 2023 11:29:13 +0300
Subject: [PATCH 251/368] Add unimport & unexport
---
all-repos.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 3d4643dd..aed44b14 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -242,3 +242,5 @@
- https://github.com/igrr/astyle_py
- https://gitlab.com/codementors/pre-commit/add-issue-number-to-conventional-commit
- https://github.com/numpy/numpydoc
+- https://github.com/hakancelikdev/unimport
+- https://github.com/hakancelikdev/unexport
From 428c2f4c0d6a4cb47b1404c8bba740780e30cb1e Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 18 Dec 2023 20:37:25 +0000
Subject: [PATCH 252/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.55.0 → v8.56.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.55.0...v8.56.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index ac94e2cd..590f95e0 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -38,7 +38,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.55.0
+ rev: v8.56.0
hooks:
- id: eslint
args: [--fix]
From f92586adcff8509ad652f7302a43e4c1ef05459e Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 25 Dec 2023 20:20:31 +0000
Subject: [PATCH 253/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.7.1 → v1.8.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.7.1...v1.8.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 590f95e0..ffaa1c3c 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,7 +33,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.7.1
+ rev: v1.8.0
hooks:
- id: mypy
additional_dependencies: [types-all]
From 45888154001d5031ec48fc20f0d5509e44e8cd1b Mon Sep 17 00:00:00 2001
From: yxtay
Date: Thu, 28 Dec 2023 09:59:02 +0800
Subject: [PATCH 254/368] docs: updates ruff pre-commit
---
all-repos.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index aed44b14..288e7274 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -226,7 +226,7 @@
- https://github.com/nuztalgia/botstrap
- https://gitlab.com/adam-moss/pre-commit-trailer
- https://gitlab.com/adam-moss/pre-commit-ssh-git-signing-key
-- https://github.com/charliermarsh/ruff-pre-commit
+- https://github.com/astral-sh/ruff-pre-commit
- https://github.com/mrtazz/checkmake
- https://github.com/jshwi/docsig
- https://github.com/finsberg/clang-format-docs
From 2066f80b814a090fa5b18b05953a576e1a8d552b Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 1 Jan 2024 20:03:30 +0000
Subject: [PATCH 255/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-eslint: v8.56.0 → v9.0.0-alpha.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.56.0...v9.0.0-alpha.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index ffaa1c3c..70ef1f40 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -38,7 +38,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.56.0
+ rev: v9.0.0-alpha.0
hooks:
- id: eslint
args: [--fix]
From 8305ef8dc66834c6328a4096b5050f668697c6f7 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Thu, 4 Jan 2024 20:53:02 -0500
Subject: [PATCH 256/368] replace eslint with biome
---
.pre-commit-config.yaml | 8 ++++----
assets/copyable.js | 20 +++++++++++---------
assets/filter_repos.js | 8 ++++++--
biome.json | 24 ++++++++++++++++++++++++
package.json | 23 -----------------------
5 files changed, 45 insertions(+), 38 deletions(-)
create mode 100644 biome.json
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 70ef1f40..f3449b82 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,11 +37,11 @@ repos:
hooks:
- id: mypy
additional_dependencies: [types-all]
-- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v9.0.0-alpha.0
+- repo: https://github.com/biomejs/pre-commit
+ rev: v0.1.0
hooks:
- - id: eslint
- args: [--fix]
+ - id: biome-check
+ additional_dependencies: ["@biomejs/biome@1.4.1"]
- repo: local
hooks:
- id: no-github-dot-git
diff --git a/assets/copyable.js b/assets/copyable.js
index 8aba102f..f7bc1876 100644
--- a/assets/copyable.js
+++ b/assets/copyable.js
@@ -1,6 +1,8 @@
-(function () {
+'use strict';
+
+(() => {
function copyTextToClipboard(text) {
- var textArea = document.createElement('textarea');
+ const textArea = document.createElement('textarea');
textArea.value = text;
textArea.style.position = 'fixed';
textArea.style.left = '-1';
@@ -11,17 +13,17 @@
document.execCommand('copy');
document.body.removeChild(textArea);
}
- var codeBlockElements = document.getElementsByClassName('copyable');
- for (var i = 0; i < codeBlockElements.length; i++) {
- var block = codeBlockElements[i];
- var copyIcon = new Image(16, 16);
+ const codeBlockElements = document.getElementsByClassName('copyable');
+ for (let i = 0; i < codeBlockElements.length; i++) {
+ const block = codeBlockElements[i];
+ const copyIcon = new Image(16, 16);
copyIcon.setAttribute('src', './assets/copy-icon.svg');
copyIcon.setAttribute('alt', 'copy');
copyIcon.setAttribute('title', 'copy to clipboard');
block.insertBefore(copyIcon, block.children[0]);
- copyIcon.addEventListener('click', function(block) {
- var text = block.getElementsByTagName('pre')[0].innerText;
+ copyIcon.addEventListener('click', (block) => {
+ const text = block.getElementsByTagName('pre')[0].innerText;
copyTextToClipboard(text);
- }.bind(null, block));
+ });
}
})();
diff --git a/assets/filter_repos.js b/assets/filter_repos.js
index 718cb73d..bd969bd4 100644
--- a/assets/filter_repos.js
+++ b/assets/filter_repos.js
@@ -22,7 +22,10 @@
const hookId = repoHook.dataset.id.toLowerCase();
const hookTypes = repoHook.dataset.types.split(', ');
- if (hookId.includes(id) && (type === '' || hookTypes.includes(type))) {
+ if (
+ hookId.includes(id) &&
+ (type === '' || hookTypes.includes(type))
+ ) {
repoHook.hidden = false;
hasVisibleHooks = true;
} else {
@@ -32,7 +35,8 @@
}
repo.hidden = !hasVisibleHooks;
- hooks.querySelector(`h3[data-repo="${repo.dataset.repo}"]`).hidden = !hasVisibleHooks;
+ hooks.querySelector(`h3[data-repo="${repo.dataset.repo}"]`).hidden =
+ !hasVisibleHooks;
}
};
diff --git a/biome.json b/biome.json
new file mode 100644
index 00000000..03e2df98
--- /dev/null
+++ b/biome.json
@@ -0,0 +1,24 @@
+{
+ "$schema": "https://biomejs.dev/schemas/1.4.0/schema.json",
+ "organizeImports": {
+ "enabled": false
+ },
+ "formatter": {
+ "indentStyle": "space",
+ "indentWidth": 4
+ },
+ "javascript": {
+ "formatter": {
+ "quoteStyle": "single"
+ }
+ },
+ "linter": {
+ "enabled": true,
+ "rules": {
+ "recommended": true,
+ "suspicious": {
+ "noRedundantUseStrict": "off"
+ }
+ }
+ }
+}
diff --git a/package.json b/package.json
index a4bd6cb4..2e3892c8 100644
--- a/package.json
+++ b/package.json
@@ -4,28 +4,5 @@
"dependencies": {
"bootstrap": "^5.0.0",
"sass": "^1.32.13"
- },
- "eslintConfig": {
- "extends": "eslint:recommended",
- "rules": {
- "indent": [
- "error",
- 4
- ],
- "quotes": [
- "error",
- "single"
- ],
- "semi": [
- "error",
- "always"
- ]
- },
- "parserOptions": {
- "ecmaVersion": 6
- },
- "env": {
- "browser": true
- }
}
}
From 525ca992a7f1500ab5a032a3f38524a4bc214023 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Thu, 4 Jan 2024 21:22:56 -0500
Subject: [PATCH 257/368] fix copy script
---
assets/copyable.js | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/assets/copyable.js b/assets/copyable.js
index f7bc1876..7d18e25b 100644
--- a/assets/copyable.js
+++ b/assets/copyable.js
@@ -13,15 +13,13 @@
document.execCommand('copy');
document.body.removeChild(textArea);
}
- const codeBlockElements = document.getElementsByClassName('copyable');
- for (let i = 0; i < codeBlockElements.length; i++) {
- const block = codeBlockElements[i];
+ for (const block of document.getElementsByClassName('copyable')) {
const copyIcon = new Image(16, 16);
copyIcon.setAttribute('src', './assets/copy-icon.svg');
copyIcon.setAttribute('alt', 'copy');
copyIcon.setAttribute('title', 'copy to clipboard');
block.insertBefore(copyIcon, block.children[0]);
- copyIcon.addEventListener('click', (block) => {
+ copyIcon.addEventListener('click', () => {
const text = block.getElementsByTagName('pre')[0].innerText;
copyTextToClipboard(text);
});
From 2b3183e1568542d3f92b55a2afb50d1238114f60 Mon Sep 17 00:00:00 2001
From: Arkady Shapkin
Date: Sat, 23 Dec 2023 03:05:41 +0300
Subject: [PATCH 258/368] Support gn-format hook in all-repos.yaml
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 288e7274..44872c6f 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -244,3 +244,4 @@
- https://github.com/numpy/numpydoc
- https://github.com/hakancelikdev/unimport
- https://github.com/hakancelikdev/unexport
+- https://github.com/KindDragon/gn-build-py
From 1220c271aec8f7618e68bfbe4a178bf22fb7cdbb Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 8 Jan 2024 20:21:14 +0000
Subject: [PATCH 259/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/PyCQA/flake8: 6.1.0 → 7.0.0](https://github.com/PyCQA/flake8/compare/6.1.0...7.0.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f3449b82..c70cb0a6 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -29,7 +29,7 @@ repos:
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/flake8
- rev: 6.1.0
+ rev: 7.0.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
From 60c6a9fcc2eafd3ffa3a3267c14183291a82cab3 Mon Sep 17 00:00:00 2001
From: Stefanie Molin <24376333+stefmolin@users.noreply.github.com>
Date: Tue, 16 Jan 2024 20:39:12 -0500
Subject: [PATCH 260/368] Add exif-stripper to all-repos.yaml
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index 44872c6f..8bf4f01e 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -245,3 +245,4 @@
- https://github.com/hakancelikdev/unimport
- https://github.com/hakancelikdev/unexport
- https://github.com/KindDragon/gn-build-py
+- https://github.com/stefmolin/exif-stripper
From fb3ebb13e187b75c1018ec62ff44aad5a18ae6fb Mon Sep 17 00:00:00 2001
From: Michael Behrisch
Date: Tue, 23 Jan 2024 07:54:32 +0100
Subject: [PATCH 261/368] referring to the maintained autopep8 repo instead of
the archived mirror
---
all-repos.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index 8bf4f01e..d09d025f 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -1,6 +1,5 @@
# This file is used to generate all-hooks.json
- https://github.com/pre-commit/pre-commit-hooks
-- https://github.com/pre-commit/mirrors-autopep8
- https://github.com/pre-commit/mirrors-clang-format
- https://github.com/pre-commit/mirrors-csslint
- https://github.com/pre-commit/mirrors-eslint
@@ -246,3 +245,4 @@
- https://github.com/hakancelikdev/unexport
- https://github.com/KindDragon/gn-build-py
- https://github.com/stefmolin/exif-stripper
+- https://github.com/hhatto/autopep8
From 2bfa056b7212ee97088287b080464888d4c72e99 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20B=C3=B6ger?=
Date: Mon, 29 Jan 2024 13:11:07 +0000
Subject: [PATCH 262/368] Extend golang docs: additional dependencies and
tooling semantics
---
sections/new-hooks.md | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sections/new-hooks.md b/sections/new-hooks.md
index 631d260f..4fc886a5 100644
--- a/sections/new-hooks.md
+++ b/sections/new-hooks.md
@@ -314,6 +314,9 @@ The hook repository must contain go source code. It will be installed via
and the [`entry`](#hooks-entry) should match an executable which will get installed into the
`GOPATH`'s `bin` directory.
+This language supports `additional_dependencies` and will pass any of the values directly to `go
+install`. It can be used as a `repo: local` hook.
+
_changed in 2.17.0_: previously `go get ./...` was used
_new in 3.0.0_: pre-commit will bootstrap `go` if it is not present. `language: golang`
From e71413ebe6a2f150054624ca3d719efc5a103a9f Mon Sep 17 00:00:00 2001
From: Joris Clement <7713214+joclement@users.noreply.github.com>
Date: Sat, 10 Feb 2024 13:15:54 +0100
Subject: [PATCH 263/368] Add actionlint
---
all-repos.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/all-repos.yaml b/all-repos.yaml
index d09d025f..e3aff2e6 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -246,3 +246,4 @@
- https://github.com/KindDragon/gn-build-py
- https://github.com/stefmolin/exif-stripper
- https://github.com/hhatto/autopep8
+- https://github.com/rhysd/actionlint
From e6665631210c9a5b9f93070c623bb0edffa169b1 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Sun, 18 Feb 2024 12:09:02 -0500
Subject: [PATCH 264/368] prevent trailing slash in urls
---
.pre-commit-config.yaml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c70cb0a6..16a71fac 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -49,3 +49,8 @@ repos:
entry: '(github|gitlab).*\.git'
files: all-repos.yaml
language: pygrep
+ - id: no-github-trailing-slash
+ name: No need for trailing / for urls
+ entry: '.*/$'
+ files: all-repos.yaml
+ language: pygrep
From 81383b64d833b2d80ebf060d9cd5ae997899b6db Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 20 Feb 2024 00:02:34 +0000
Subject: [PATCH 265/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/pyupgrade: v3.15.0 → v3.15.1](https://github.com/asottile/pyupgrade/compare/v3.15.0...v3.15.1)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 16a71fac..0059243b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -20,7 +20,7 @@ repos:
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
- rev: v3.15.0
+ rev: v3.15.1
hooks:
- id: pyupgrade
args: [--py38-plus]
From 08b3a6a7add3e7c3bab5410c0df6a7989979b1c0 Mon Sep 17 00:00:00 2001
From: Michal Halenka
Date: Wed, 21 Feb 2024 12:26:36 +0100
Subject: [PATCH 266/368] remove archived hook repo
https://github.com/Lucas-C/pre-commit-hooks-go/commit/223d5d97082ae7c10c1a5b00afdeb131e03e1991
Official replacement is already included in list.
---
all-repos.yaml | 1 -
1 file changed, 1 deletion(-)
diff --git a/all-repos.yaml b/all-repos.yaml
index e3aff2e6..85579c82 100644
--- a/all-repos.yaml
+++ b/all-repos.yaml
@@ -29,7 +29,6 @@
# - https://github.com/jumanjihouse/pre-commit-hooks
- https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
- https://github.com/Lucas-C/pre-commit-hooks
-- https://github.com/Lucas-C/pre-commit-hooks-go
# - https://github.com/Lucas-C/pre-commit-hooks-java
- https://github.com/Lucas-C/pre-commit-hooks-lxml
# - https://github.com/Lucas-C/pre-commit-hooks-markup
From 4ff997aa5fc2e706964a214ec3c6632d7349d32d Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Fri, 1 Mar 2024 14:01:26 -0500
Subject: [PATCH 267/368] fix sidebar when linking to a section
---
base.mako | 4 ++--
package.json | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/base.mako b/base.mako
index 72cd221f..77ba61f4 100644
--- a/base.mako
+++ b/base.mako
@@ -67,7 +67,7 @@
-
+
@@ -81,7 +81,7 @@
-
+
+${body}
diff --git a/make_all_hooks.py b/make_all_hooks.py
deleted file mode 100644
index a1bea4f4..00000000
--- a/make_all_hooks.py
+++ /dev/null
@@ -1,65 +0,0 @@
-from __future__ import annotations
-
-import functools
-import json
-import multiprocessing
-import os.path
-import subprocess
-import tempfile
-from typing import Any
-
-import yaml
-from pre_commit.clientlib import load_manifest
-
-Loader = getattr(yaml, 'CSafeLoader', yaml.SafeLoader)
-fast_load = functools.partial(yaml.load, Loader=Loader)
-
-
-def get_manifest(repo_path: str) -> tuple[bool, str, list[dict[str, Any]]]:
- print(f'*** {repo_path}')
- with tempfile.TemporaryDirectory() as directory:
- repo_dir = os.path.join(directory, 'repo')
- cmd = ('git', 'clone', '--depth', '1', '-q', repo_path, repo_dir)
- subprocess.check_call(cmd)
- manifest_path = os.path.join(repo_dir, '.pre-commit-hooks.yaml')
- # Validate the manifest just to make sure it's ok.
- manifest = load_manifest(manifest_path)
- for hook in manifest:
- # hooks should not set debugging `verbose: true` flag
- if hook['verbose']:
- print(f'{repo_path} ({hook["id"]}) sets `verbose: true`')
- return False, repo_path, []
- # hooks should not set `fail-fast` breaking user expectations
- if hook['fail_fast']:
- print(f'{repo_path} ({hook["id"]}) sets `fail_fast: true`')
- return False, repo_path, []
- # hook names should be short and not cause wrapping by default
- if (
- len(hook['name']) > 50 and
- 'deprecated' not in hook['name'].lower()
- ):
- print(f'{repo_path} ({hook["id"]}) has too long `name` (>50)')
- return False, repo_path, []
-
- with open(manifest_path) as f:
- return True, repo_path, fast_load(f)
-
-
-def main() -> int:
- with open('all-repos.yaml') as f:
- repos = fast_load(f)
-
- hooks_json = {}
- with multiprocessing.Pool(4) as pool:
- for ok, path, manifest in pool.imap(get_manifest, repos):
- if not ok:
- return 1
- hooks_json[path] = manifest
-
- with open('all-hooks.json', 'w') as hooks_json_file:
- json.dump(hooks_json, hooks_json_file, indent=4)
- return 0
-
-
-if __name__ == '__main__':
- raise SystemExit(main())
diff --git a/make_templates.py b/make_templates.py
index 2e5c2de8..aca62aed 100644
--- a/make_templates.py
+++ b/make_templates.py
@@ -1,9 +1,6 @@
from __future__ import annotations
-import collections
-import json
import os.path
-from typing import Any
import mako.lookup
import markupsafe
@@ -29,13 +26,7 @@
)
-ALL_TEMPLATES = [
- filename for filename in os.listdir('.')
- if filename.endswith('.mako') and filename != 'base.mako'
-]
-
-
-def get_env() -> dict[str, Any]:
+def index_body() -> markupsafe.Markup:
body_parts = []
for title, filename in SECTIONS:
div_id, _ = os.path.splitext(os.path.basename(filename))
@@ -50,30 +41,22 @@ def get_env() -> dict[str, Any]:
f'\n',
),
)
- body = markupsafe.Markup().join(body_parts)
+ return markupsafe.Markup().join(body_parts)
- all_hooks = json.loads(
- open('all-hooks.json').read(),
- object_pairs_hook=collections.OrderedDict,
- )
- all_types = {
- hook_type
- for properties in all_hooks.values()
- for hook_type in (
- properties[0].get('types', []) + properties[0].get('types_or', [])
- )
- }
- return {'all_hooks': all_hooks, 'all_types': all_types, 'body': body}
+
+def hooks_body() -> markupsafe.Markup:
+ with open('sections/hooks.md') as f:
+ return md(f.read())
def main() -> int:
- env = get_env()
- for template in ALL_TEMPLATES:
- template_name, _ = os.path.splitext(template)
- env['template_name'] = template_name
- with open(f'{template_name}.html', 'w') as html_file:
- template_obj = template_lookup.get_template(template)
- html_file.write(template_obj.render(**env))
+ with open('index.html', 'w') as f:
+ tmpl = template_lookup.get_template('index.mako')
+ f.write(tmpl.render(body=index_body(), template_name='index'))
+
+ with open('hooks.html', 'w') as f:
+ tmpl = template_lookup.get_template('hooks.mako')
+ f.write(tmpl.render(body=hooks_body(), template_name='hooks'))
return 0
diff --git a/sections/hooks.md b/sections/hooks.md
new file mode 100644
index 00000000..703bb5d3
--- /dev/null
+++ b/sections/hooks.md
@@ -0,0 +1,163 @@
+## featured hooks
+
+here are a few hand-picked repositories which provide pre-commit integrations.
+
+these are fairly popular and are generally known to work well in most setups!
+
+_this list is not intended to be exhaustive_
+
+provided by the pre-commit team:
+- [pre-commit/pre-commit-hooks]: a handful of language-agnostic hooks which
+ are universally useful!
+- [pre-commit/pygrep-hooks]: a few quick regex-based hooks for a handful of
+ quick syntax checks
+- [pre-commit/sync-pre-commit-deps]: sync pre-commit hook dependencies based
+ on other installed hooks
+- [pre-commit/mirrors-*]: pre-commit mirrors of a handful of popular tools
+
+[pre-commit/pre-commit-hooks]: https://github.com/pre-commit/pre-commit-hooks
+[pre-commit/pygrep-hooks]: https://github.com/pre-commit/pygrep-hooks
+[pre-commit/sync-pre-commit-deps]: https://github.com/pre-commit/sync-pre-commit-deps
+[pre-commit/mirrors-*]: https://github.com/orgs/pre-commit/repositories?language=&q=%22mirrors-%22+archived%3AFalse&sort=
+
+for python projects:
+- [asottile/pyupgrade]: automatically upgrade syntax for newer versions of the
+ language
+- [asottile/(others)]: a few other repos by the pre-commit creator
+- [psf/black]: The uncompromising Python code formatter
+- [hhatto/autopep8]: automatically fixes PEP8 violations
+- [astral-sh/ruff-pre-commit]: the ruff linter and formatter for python
+- [google/yapf]: a highly configurable python formatter
+- [PyCQA/flake8]: a linter framework for python
+- [PyCQA/isort]: an import sorter for python
+- [PyCQA/(others)]: a few other python code quality tools
+- [adamchainz/django-upgrade]: automatically upgrade your Django project code
+
+[asottile/pyupgrade]: https://github.com/asottile/pyupgrade
+[asottile/(others)]: https://sourcegraph.com/search?q=context:global+file:%5E%5C.pre-commit-hooks%5C.yaml%24+repo:%5Egithub.com/asottile/
+[psf/black]: https://github.com/psf/black
+[hhatto/autopep8]: https://github.com/hhatto/autopep8
+[astral-sh/ruff-pre-commit]: https://github.com/astral-sh/ruff-pre-commit
+[google/yapf]: https://github.com/google/yapf
+[PyCQA/flake8]: https://github.com/PyCQA/flake8
+[PyCQA/isort]: https://github.com/PyCQA/isort
+[PyCQA/(others)]: https://sourcegraph.com/search?q=context:global+file:%5E%5C.pre-commit-hooks%5C.yaml%24+repo:%5Egithub.com/PyCQA/
+[adamchainz/django-upgrade]: https://github.com/adamchainz/django-upgrade
+
+for shell scripts:
+- [shellcheck-py/shellcheck-py]: runs shellcheck on your scripts
+- [openstack/bashate]: code style enforcement for bash programs
+
+[shellcheck-py/shellcheck-py]: https://github.com/shellcheck-py/shellcheck-py
+[openstack/bashate]: https://github.com/openstack/bashate
+
+for the web:
+- [biomejs/pre-commit]: a fast formatter / fixer written in rust
+- [standard/standard]: linter / fixer
+- [shssoichiro/oxipng]: optimize png files
+
+[biomejs/pre-commit]: https://github.com/biomejs/pre-commit
+[standard/standard]: https://github.com/standard/standard
+[shssoichiro/oxipng]: https://github.com/shssoichiro/oxipng
+
+for configuration files:
+- [python-jsonschema/check-jsonschema]: check many common configurations with jsonschema
+- [rhysd/actionlint]: lint your GitHub Actions workflow files
+- [google/yamlfmt]: a formatter for yaml files
+- [adrienverge/yamllint]: a linter for YAML files
+
+[python-jsonschema/check-jsonschema]: https://github.com/python-jsonschema/check-jsonschema
+[rhysd/actionlint]: https://github.com/rhysd/actionlint
+[google/yamlfmt]: https://github.com/google/yamlfmt
+[adrienverge/yamllint]: https://github.com/adrienverge/yamllint
+
+for text / docs / prose:
+- [crate-ci/typos]: find and fix common typographical errors
+- [thlorenz/doctoc]: generate a table-of-contents in markdown files
+- [amperser/proselint]: A linter for prose.
+- [markdownlint/markdownlint]: a Markdown lint tool
+- [codespell-project/codespell]: check code for common misspellings
+
+[crate-ci/typos]: https://github.com/crate-ci/typos
+[thlorenz/doctoc]: https://github.com/thlorenz/doctoc
+[amperser/proselint]: https://github.com/amperser/proselint
+[markdownlint/markdownlint]: https://github.com/markdownlint/markdownlint
+[codespell-project/codespell]: https://github.com/codespell-project/codespell
+
+for linting commit messages:
+- [jorisroovers/gitlint]
+- [commitizen-tools/commitizen]
+
+[jorisroovers/gitlint]: https://github.com/jorisroovers/gitlint
+[commitizen-tools/commitizen]: https://github.com/commitizen-tools/commitizen
+
+for secret scanning / security:
+- [gitleaks/gitleaks]
+- [trufflesecurity/truffleHog]
+- [thoughtworks/talisman]
+
+[gitleaks/gitleaks]: https://github.com/gitleaks/gitleaks
+[trufflesecurity/truffleHog]: https://github.com/trufflesecurity/truffleHog
+[thoughtworks/talisman]: https://github.com/thoughtworks/talisman
+
+for other programming languages:
+- [realm/SwiftLint]: enforce Swift style and conventions
+- [nicklockwood/SwiftFormat]: a formatter for Swift
+- [AleksaC/terraform-py]: format and validate terraform syntax
+- [rubocop/rubocop]: static analysis and formatting for Ruby
+- [bufbuild/buf]: tooling for Protocol Buffers
+- [sqlfluff/sqlfluff]: a modular linter and auto formatter for SQL
+- [aws-cloudformation/cfn-lint]: aws CloudFormation linter
+- [google/go-jsonnet]: linter / formatter for jsonnet
+- [JohnnyMorganz/StyLua]: an opinionated Lua code formatter
+- [Koihik/LuaFormatter]: a formatter for Lua code
+- [mrtazz/checkmake]: linter for Makefile syntax
+
+[realm/SwiftLint]: https://github.com/realm/SwiftLint
+[nicklockwood/SwiftFormat]: https://github.com/nicklockwood/SwiftFormat
+[AleksaC/terraform-py]: https://github.com/AleksaC/terraform-py
+[rubocop/rubocop]: https://github.com/rubocop/rubocop
+[bufbuild/buf]: https://github.com/bufbuild/buf
+[sqlfluff/sqlfluff]: https://github.com/sqlfluff/sqlfluff
+[aws-cloudformation/cfn-lint]: https://github.com/aws-cloudformation/cfn-lint
+[google/go-jsonnet]: https://github.com/google/go-jsonnet
+[JohnnyMorganz/StyLua]: https://github.com/JohnnyMorganz/StyLua
+[Koihik/LuaFormatter]: https://github.com/Koihik/LuaFormatter
+[mrtazz/checkmake]: https://github.com/mrtazz/checkmake
+
+## finding hooks
+
+it's recommended to use your favorite searching tool to find existing hooks to
+use in your project.
+
+for example, here's some searches you may find useful using [sourcegraph]:
+
+- hooks which run on python files: [`file:^\.pre-commit-hooks\.yaml$ "types: [python]"`](https://sourcegraph.com/search?q=context:global+file:^\.pre-commit-hooks\.yaml%24+%22types:+[python]%22)
+- hooks which run on shell files: [`file:^\.pre-commit-hooks\.yaml$ "types: [shell]"`](https://sourcegraph.com/search?q=context:global+file:^\.pre-commit-hooks\.yaml%24+"types:+[shell]")
+- pre-commit configurations in popular projects: [`file:^\.pre-commit-config\.yaml$`](https://sourcegraph.com/search?q=context:global+file:^\.pre-commit-hooks\.yaml%24+"types:+[shell]")
+
+[sourcegraph]: https://sourcegraph.com/search
+
+you may also find [github's search] useful as well, though its querying and
+sorting capabilities are quite limited plus it requires a login:
+
+- repositories providing hooks: [`path:.pre-commit-hooks.yaml language:YAML`](https://github.com/search?q=path%3A.pre-commit-hooks.yaml+language%3AYAML&type=code&l=YAML)
+
+[github's search]: https://github.com/search
+
+
+## adding to this page
+
+the previous iteration of this page was a laundry list of hooks and maintaining
+quality of the listed tools was cumbersome.
+
+**this page is not intended to be exhaustive**
+
+you may send [a pull request] to expand this list however there are a few
+requirements you *must* follow or your PR will be closed without comment:
+
+- the tool must already be fairly popular (>500 stars)
+- the tool must use a managed language (no `system` / `script` / `docker` hooks)
+- the tool must operate on files
+
+[a pull request]: https://github.com/pre-commit/pre-commit.com/blob/main/sections/hooks.md
diff --git a/template_lib.py b/template_lib.py
index 376f196a..05a26c61 100644
--- a/template_lib.py
+++ b/template_lib.py
@@ -153,7 +153,7 @@ def block_code(self, code: str, info: str | None = None) -> str:
return ret
-def md(s: str) -> str:
+def md(s: str) -> markupsafe.Markup:
html = markdown_code_blocks.highlight(s, Renderer=Renderer)
# manually bless the highlighted output.
return markupsafe.Markup(html)
From 2cda0a7bd732922c74e4a4a7da4b1ecd5821ef22 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 24 Jun 2024 21:49:09 +0000
Subject: [PATCH 285/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/hhatto/autopep8: v2.3.0 → v2.3.1](https://github.com/hhatto/autopep8/compare/v2.3.0...v2.3.1)
- [github.com/biomejs/pre-commit: v0.3.0 → v0.4.0](https://github.com/biomejs/pre-commit/compare/v0.3.0...v0.4.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 7e96b26a..c3f6e2be 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -25,7 +25,7 @@ repos:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/hhatto/autopep8
- rev: v2.3.0
+ rev: v2.3.1
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/flake8
@@ -38,7 +38,7 @@ repos:
- id: mypy
additional_dependencies: [types-all]
- repo: https://github.com/biomejs/pre-commit
- rev: v0.3.0
+ rev: v0.4.0
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 71c50e745bdaa10d59837c4274b1603107beb6cf Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 1 Jul 2024 23:34:22 +0000
Subject: [PATCH 286/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.10.0 → v1.10.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.10.0...v1.10.1)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c3f6e2be..eb0d0de6 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,7 +33,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.10.0
+ rev: v1.10.1
hooks:
- id: mypy
additional_dependencies: [types-all]
From 4d721865e7b9a2ea3c0c2a52e7e4f87bdfaf0148 Mon Sep 17 00:00:00 2001
From: Stefaan Lippens
Date: Mon, 24 Jun 2024 15:20:51 +0200
Subject: [PATCH 287/368] Document that additional_dependencies is supported
for python
---
sections/new-hooks.md | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sections/new-hooks.md b/sections/new-hooks.md
index 4fc886a5..5d8c50e3 100644
--- a/sections/new-hooks.md
+++ b/sections/new-hooks.md
@@ -384,6 +384,10 @@ The hook repository must be installable via `pip install .` (usually by either
executable that will match the [`entry`](#hooks-entry) – usually through `console_scripts` or
`scripts` in setup.py.
+This language also supports `additional_dependencies`
+so it can be used with [local](#repository-local-hooks) hooks.
+The specified dependencies will be appended to the `pip install` command.
+
__Support:__ python hooks work without any system-level dependencies. It
has been tested on linux, macOS, windows, and cygwin.
From 75a9857021d09338beaac4cd30a4d7f56dfc6d2d Mon Sep 17 00:00:00 2001
From: Stefaan Lippens
Date: Mon, 24 Jun 2024 12:00:59 +0200
Subject: [PATCH 288/368] repo mapping: link to docs on special "local" repo
---
sections/advanced.md | 2 +-
sections/plugins.md | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/sections/advanced.md b/sections/advanced.md
index 65d30ac5..cc272103 100644
--- a/sections/advanced.md
+++ b/sections/advanced.md
@@ -299,7 +299,7 @@ You can configure repository-local hooks by specifying the [`repo`](#repos-repo)
sentinel `local`.
local hooks can use any language which supports [`additional_dependencies`](#config-additional_dependencies)
-or `docker_image` / `fail` / `pygrep` / `script` / `system`.
+or [`docker_image`](#docker_image) / [`fail`](#fail) / [`pygrep`](#pygrep) / [`script`](#script) / [`system`](#system).
This enables you to install things which previously would require a trivial
mirror repository.
diff --git a/sections/plugins.md b/sections/plugins.md
index f1e660e4..663d7f67 100644
--- a/sections/plugins.md
+++ b/sections/plugins.md
@@ -73,6 +73,9 @@ from.
=r=
=c= [`repo`](_#repos-repo)
=c= the repository url to `git clone` from
+ or one of the special sentinel values:
+ [`local`](#repository-local-hooks),
+ [`meta`](#meta-hooks).
=r=
=c= [`rev`](_#repos-rev)
=c= the revision or tag to clone at.
From 1a59073f5994f4c833a049b20e584317f2737b06 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 22 Jul 2024 22:04:27 +0000
Subject: [PATCH 289/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.10.1 → v1.11.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.10.1...v1.11.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index eb0d0de6..a36123b4 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,7 +33,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.10.1
+ rev: v1.11.0
hooks:
- id: mypy
additional_dependencies: [types-all]
From 465a0b46f18b1936afee14b3402e252001f3c227 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 29 Jul 2024 21:59:04 +0000
Subject: [PATCH 290/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/pyupgrade: v3.16.0 → v3.17.0](https://github.com/asottile/pyupgrade/compare/v3.16.0...v3.17.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index a36123b4..fb1732ed 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -20,7 +20,7 @@ repos:
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
- rev: v3.16.0
+ rev: v3.17.0
hooks:
- id: pyupgrade
args: [--py38-plus]
From d295bf3cd42f156f7758f7112bd0ba6104beeb28 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 5 Aug 2024 22:39:42 +0000
Subject: [PATCH 291/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/PyCQA/flake8: 7.1.0 → 7.1.1](https://github.com/PyCQA/flake8/compare/7.1.0...7.1.1)
- [github.com/pre-commit/mirrors-mypy: v1.11.0 → v1.11.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.0...v1.11.1)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index fb1732ed..c2d55a4c 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -29,11 +29,11 @@ repos:
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/flake8
- rev: 7.1.0
+ rev: 7.1.1
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.11.0
+ rev: v1.11.1
hooks:
- id: mypy
additional_dependencies: [types-all]
From 2faa55d0b0767799972a91b6906977bb9173e751 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 26 Aug 2024 22:18:45 +0000
Subject: [PATCH 292/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.11.1 → v1.11.2](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.1...v1.11.2)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c2d55a4c..91a61552 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,7 +33,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.11.1
+ rev: v1.11.2
hooks:
- id: mypy
additional_dependencies: [types-all]
From f0e0da0a6d8942202a29b3a0f8de0a8711ffd091 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Mon, 26 Aug 2024 19:21:34 -0400
Subject: [PATCH 293/368] remove types-all
---
.pre-commit-config.yaml | 1 -
1 file changed, 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 91a61552..aab66aec 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -36,7 +36,6 @@ repos:
rev: v1.11.2
hooks:
- id: mypy
- additional_dependencies: [types-all]
- repo: https://github.com/biomejs/pre-commit
rev: v0.4.0
hooks:
From 4d2ecfc6f6177c9d8d145374f0261fea1d10232f Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 23 Sep 2024 22:13:39 +0000
Subject: [PATCH 294/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v0.4.0 → v0.5.0](https://github.com/biomejs/pre-commit/compare/v0.4.0...v0.5.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index aab66aec..3c5d56f4 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v0.4.0
+ rev: v0.5.0
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 34921bf31eaed96783e83310da2f8d9a67eab5a9 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Sat, 5 Oct 2024 15:04:05 -0400
Subject: [PATCH 295/368] update docs for pre-commit 4.0
- remove `python_venv`
- remove 2.x references
---
sections/advanced.md | 12 ++----------
sections/cli.md | 9 +++------
sections/new-hooks.md | 42 +++++++-----------------------------------
sections/plugins.md | 3 ---
4 files changed, 12 insertions(+), 54 deletions(-)
diff --git a/sections/advanced.md b/sections/advanced.md
index cc272103..6d1f1f65 100644
--- a/sections/advanced.md
+++ b/sections/advanced.md
@@ -101,8 +101,6 @@ aborted if there is a nonzero exit code.
### post-checkout
-_new in 2.2.0_
-
[git post-checkout docs](https://git-scm.com/docs/githooks#_post_checkout)
post-checkout hooks run *after* a `checkout` has occurred and can be used to
@@ -118,8 +116,6 @@ environment variables:
### post-commit
-_new in 2.4.0_
-
[git post-commit docs](https://git-scm.com/docs/githooks#_post_commit)
`post-commit` runs after the commit has already succeeded so it cannot be used
@@ -130,8 +126,6 @@ to prevent the commit from happening.
### post-merge
-_new in 2.11.0_
-
[git post-merge docs](https://git-scm.com/docs/githooks#_post_merge)
`post-merge` runs after a successful `git merge`.
@@ -144,8 +138,6 @@ environment variables:
### post-rewrite
-_new in 2.15.0_
-
[git post-rewrite docs](https://git-scm.com/docs/githooks#_post_rewrite)
`post-rewrite` runs after a git command which modifies history such as
@@ -463,7 +455,7 @@ If a file extension you use is not supported, please
`types`, `types_or`, and `files` are evaluated together with `AND` when
filtering. Tags within `types` are also evaluated using `AND`.
-_new in 2.9.0_: Tags within `types_or` are evaluated using `OR`.
+Tags within `types_or` are evaluated using `OR`.
For example:
@@ -555,7 +547,7 @@ Valid values for specific languages are listed below:
windows.
- node: See [nodeenv](https://github.com/ekalinin/nodeenv#advanced).
- ruby: See [ruby-build](https://github.com/sstephenson/ruby-build/tree/master/share/ruby-build).
-- _new in 2.21.0_ rust: `language_version` is passed to `rustup`
+- rust: `language_version` is passed to `rustup`
- _new in 3.0.0_ golang: use the versions on [go.dev/dl](https://go.dev/dl/) such as `1.19.5`
you can set [`default_language_version`](#top_level-default_language_version)
diff --git a/sections/cli.md b/sections/cli.md
index 0529ae5c..a644a0ae 100644
--- a/sections/cli.md
+++ b/sections/cli.md
@@ -6,7 +6,7 @@ All pre-commit commands take the following options:
- `-c CONFIG`, `--config CONFIG`: path to alternate config file
- `-h`, `--help`: show help and available options.
-_new in 2.8.0_: `pre-commit` now exits with more specific codes:
+`pre-commit` exits with specific codes:
- `1`: a detected / expected error
- `3`: an unexpected error
- `130`: the process was interrupted by `^C`
@@ -68,8 +68,7 @@ $ grep rev: .pre-commit-config.yaml
rev: 34a269fd7650d264e4de7603157c10d0a9bb8211 # frozen: v1.25.2
```
-_new in 2.18.0_: pre-commit will preferentially pick tags containing a `.` if
-there are ties.
+pre-commit will preferentially pick tags containing a `.` if there are ties.
## pre-commit clean [options] #pre-commit-clean
@@ -143,7 +142,7 @@ Some example useful invocations:
existing git hook scripts with pre-commit, and also installs hook
environments.
-_new in 2.18.0_: `pre-commit install` will now install hooks from
+`pre-commit install` will install hooks from
[`default_install_hook_types`](#top_level-default_install_hook_types) if
`--hook-type` is not specified on the command line.
@@ -178,8 +177,6 @@ Options:
- `--files [FILES [FILES ...]]`: specific filenames to run hooks on.
- `--from-ref FROM_REF` + `--to-ref TO_REF`: run against the files changed
between `FROM_REF...TO_REF` in git.
- - _new in 2.2.0_: prior to 2.2.0 the arguments were `--source` and
- `--origin`.
- `--hook-stage STAGE`: select a [`stage` to run](#confining-hooks-to-run-at-certain-stages).
- `--show-diff-on-failure`: when hooks fail, run `git diff` directly afterward.
- `-v`, `--verbose`: produce hook output independent of success. Include hook
diff --git a/sections/new-hooks.md b/sections/new-hooks.md
index 5d8c50e3..a1f5604e 100644
--- a/sections/new-hooks.md
+++ b/sections/new-hooks.md
@@ -37,7 +37,6 @@ file that tells pre-commit:
=c= [`types_or`](_#hooks-types_or)
=c= (optional: default `[]`) list of file types to run on (OR). See
[Filtering files with types](#filtering-files-with-types).
- _new in 2.9.0_.
=r=
=c= [`exclude_types`](_#hooks-exclude_types)
=c= (optional: default `[]`) the pattern of files to exclude.
@@ -48,7 +47,7 @@ file that tells pre-commit:
=r=
=c= [`fail_fast`](_#hooks-fail_fast)
=c= (optional: default `false`) if `true` pre-commit will stop running
- hooks if this hook fails. _new in 2.16.0_.
+ hooks if this hook fails.
=r=
=c= [`verbose`](_#hooks-verbose)
=c= (optional: default `false`) if `true`, forces the output of the hook to be printed even when
@@ -151,7 +150,6 @@ Hello from foo hook!
- [node](#node)
- [perl](#perl)
- [python](#python)
-- [python_venv](#python_venv)
- [r](#r)
- [ruby](#ruby)
- [rust](#rust)
@@ -169,7 +167,7 @@ The `conda` language also supports [`additional_dependencies`](#config-additiona
and will pass any of the values directly into `conda install`. This language can therefore be
used with [local](#repository-local-hooks) hooks.
-_new in 2.17.0_: `mamba` or `micromamba` can be used to install instead via the
+`mamba` or `micromamba` can be used to install instead via the
`PRE_COMMIT_USE_MAMBA=1` or `PRE_COMMIT_USE_MICROMAMBA=1` environment
variables.
@@ -179,8 +177,6 @@ It has been tested on linux, macOS, and windows.
### coursier
-_new in 2.8.0_
-
The hook repository must have a `.pre-commit-channel` folder and that folder
must contain the coursier
[application descriptors](https://get-coursier.io/docs/2.0.0-RC6-10/cli-install.html#application-descriptor-reference)
@@ -193,16 +189,14 @@ __Support:__ `coursier` hooks are known to work on any system which has the
applications you install may depend on various versions of the JVM, consult
the hooks' documentation for clarification. It has been tested on linux.
-_new in 2.18.0_: pre-commit now supports the `coursier` naming of the package
-manager executable.
+pre-commit also supports the `coursier` naming of the package manager
+executable.
_new in 3.0.0_: `language: coursier` hooks now support `repo: local` and
`additional_dependencies`.
### dart
-_new in 2.15.0_
-
The hook repository must have a `pubspec.yaml` -- this must contain an
`executables` section which will list the binaries that will be available
after installation. Match the [`entry`](#hooks-entry) to an executable.
@@ -274,8 +268,6 @@ For example:
### dotnet
-_new in 2.8.0_
-
dotnet hooks are installed using the system installation of the dotnet CLI.
Hook repositories must contain a dotnet CLI tool which can be `pack`ed and
@@ -340,8 +332,6 @@ installed. It has been tested on linux, macOS, and windows.
### lua
-_new in 2.17.0_
-
Lua hooks are installed with the version of Lua that is used by Luarocks.
__Support:__ Lua hooks are known to work on any system which has Luarocks
@@ -358,8 +348,6 @@ been tested on linux, windows, and macOS and _may_ work under cygwin.
### perl
-_new in 2.1.0_
-
Perl hooks are installed using the system installation of
[cpan](https://perldoc.perl.org/cpan), the CPAN package installer
that comes with Perl.
@@ -391,24 +379,8 @@ The specified dependencies will be appended to the `pip install` command.
__Support:__ python hooks work without any system-level dependencies. It
has been tested on linux, macOS, windows, and cygwin.
-### python_venv
-
-_new in 2.4.0_: The `python_venv` language is now an alias to `python` since
-`virtualenv>=20` creates equivalently structured environments. Previously,
-this [`language`](#hooks-language) created environments using the [venv] module.
-
-This [`language`](#hooks-language) will be removed eventually so it is suggested to use `python`
-instead.
-
-[venv]: https://docs.python.org/3/library/venv.html
-
-__Support:__ python hooks work without any system-level dependencies. It
-has been tested on linux, macOS, windows, and cygwin.
-
### r
-_new in 2.11.0_
-
This hook repository must have a `renv.lock` file that will be restored with
[`renv::restore()`](https://rstudio.github.io/renv/reference/restore.html) on
hook installation. If the repository is an R package (i.e. has `Type: Package`
@@ -452,8 +424,8 @@ build _your_ hook repo), or the special syntax
`cli:{package_name}:{package_version}` for a CLI dependency (built separately,
with binaries made available for use by hooks).
-_new in 2.21.0_: pre-commit will bootstrap `rust` if it is not present.
-`language: rust` also now supports `language_version`
+pre-commit will bootstrap `rust` if it is not present.
+`language: rust` also supports `language_version`
__Support:__ It has been tested on linux, Windows, and macOS.
@@ -476,7 +448,7 @@ can apply the `(?i)` flag as the start of your entry, or use `args: [-i]`.
For multiline matches, use `args: [--multiline]`.
-_new in 2.8.0_: To require all files to match, use `args: [--negate]`.
+To require all files to match, use `args: [--negate]`.
__Support:__ pygrep hooks are supported on all platforms which pre-commit runs
on.
diff --git a/sections/plugins.md b/sections/plugins.md
index 663d7f67..96cb213c 100644
--- a/sections/plugins.md
+++ b/sections/plugins.md
@@ -15,8 +15,6 @@ pre-commit config file describes what repositories and hooks are installed.
=c= (optional: default `[pre-commit]`) a list of `--hook-type`s which will
be used by default when running
[`pre-commit install`](#pre-commit-install).
-
- _new in 2.18.0_
=r=
=c= [`default_language_version`](_#top_level-default_language_version)
=c= (optional: default `{}`) a mapping from language to the default
@@ -129,7 +127,6 @@ repository's configuration.
=c= [`types_or`](_#config-types_or)
=c= (optional) override the default file types to run on (OR). See
[Filtering files with types](#filtering-files-with-types).
- _new in 2.9.0_.
=r=
=c= [`exclude_types`](_#config-exclude_types)
=c= (optional) file types to exclude.
From 778f687b0a376cd5aaf8b41c2369befeac1193ad Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 8 Oct 2024 00:02:12 +0000
Subject: [PATCH 296/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 3c5d56f4..9742afe7 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v4.6.0
+ rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
From d5992ed02c06471733f5789e625e675b3a304f63 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Fri, 11 Oct 2024 20:04:21 -0400
Subject: [PATCH 297/368] py39+
Committed via https://github.com/asottile/all-repos
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 9742afe7..96958bad 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -13,7 +13,7 @@ repos:
rev: v3.13.0
hooks:
- id: reorder-python-imports
- args: [--py38-plus, --add-import, 'from __future__ import annotations']
+ args: [--py39-plus, --add-import, 'from __future__ import annotations']
- id: reorder-python-imports
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
@@ -23,7 +23,7 @@ repos:
rev: v3.17.0
hooks:
- id: pyupgrade
- args: [--py38-plus]
+ args: [--py39-plus]
- repo: https://github.com/hhatto/autopep8
rev: v2.3.1
hooks:
From de8fe47915b11d8138ec2374a7c525d10c7df47a Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 21 Oct 2024 22:30:27 +0000
Subject: [PATCH 298/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/reorder-python-imports: v3.13.0 → v3.14.0](https://github.com/asottile/reorder-python-imports/compare/v3.13.0...v3.14.0)
- [github.com/asottile/pyupgrade: v3.17.0 → v3.18.0](https://github.com/asottile/pyupgrade/compare/v3.17.0...v3.18.0)
- [github.com/pre-commit/mirrors-mypy: v1.11.2 → v1.12.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.2...v1.12.1)
---
.pre-commit-config.yaml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 96958bad..d1eb6846 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -10,7 +10,7 @@ repos:
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/asottile/reorder-python-imports
- rev: v3.13.0
+ rev: v3.14.0
hooks:
- id: reorder-python-imports
args: [--py39-plus, --add-import, 'from __future__ import annotations']
@@ -20,7 +20,7 @@ repos:
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
- rev: v3.17.0
+ rev: v3.18.0
hooks:
- id: pyupgrade
args: [--py39-plus]
@@ -33,7 +33,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.11.2
+ rev: v1.12.1
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
From 3846ccffecd3371f54c978ccc5cecdb75282cacb Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 28 Oct 2024 22:57:00 +0000
Subject: [PATCH 299/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/pyupgrade: v3.18.0 → v3.19.0](https://github.com/asottile/pyupgrade/compare/v3.18.0...v3.19.0)
- [github.com/pre-commit/mirrors-mypy: v1.12.1 → v1.13.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.12.1...v1.13.0)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index d1eb6846..f95b7cdf 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -20,7 +20,7 @@ repos:
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
- rev: v3.18.0
+ rev: v3.19.0
hooks:
- id: pyupgrade
args: [--py39-plus]
@@ -33,7 +33,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.12.1
+ rev: v1.13.0
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
From 2f511142d22f7bb58b0d762cab654fdfda01f6b5 Mon Sep 17 00:00:00 2001
From: Marco Edward Gorelli
Date: Wed, 20 Nov 2024 11:50:53 +0000
Subject: [PATCH 300/368] Add nbqa to list of hooks
---
sections/hooks.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sections/hooks.md b/sections/hooks.md
index 703bb5d3..828e9db9 100644
--- a/sections/hooks.md
+++ b/sections/hooks.md
@@ -112,6 +112,7 @@ for other programming languages:
- [JohnnyMorganz/StyLua]: an opinionated Lua code formatter
- [Koihik/LuaFormatter]: a formatter for Lua code
- [mrtazz/checkmake]: linter for Makefile syntax
+- [nbqa-dev/nbqa]: run common linters on Jupyter Notebooks
[realm/SwiftLint]: https://github.com/realm/SwiftLint
[nicklockwood/SwiftFormat]: https://github.com/nicklockwood/SwiftFormat
@@ -124,6 +125,7 @@ for other programming languages:
[JohnnyMorganz/StyLua]: https://github.com/JohnnyMorganz/StyLua
[Koihik/LuaFormatter]: https://github.com/Koihik/LuaFormatter
[mrtazz/checkmake]: https://github.com/mrtazz/checkmake
+[nbqa-dev/nbqa]: https://github.com/nbQA-dev/nbQA
## finding hooks
From f8eda3bb32b700e6927d3553cda7e9b2ca2153f3 Mon Sep 17 00:00:00 2001
From: Fredrik Ekre
Date: Fri, 1 Nov 2024 15:36:18 +0100
Subject: [PATCH 301/368] Documentation for julia hooks
See pre-commit PR: https://github.com/pre-commit/pre-commit/pull/3348
---
sections/new-hooks.md | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/sections/new-hooks.md b/sections/new-hooks.md
index a1f5604e..70699666 100644
--- a/sections/new-hooks.md
+++ b/sections/new-hooks.md
@@ -330,6 +330,45 @@ This language supports `additional_dependencies` so it can be used as a
__Support:__ haskell hooks are known to work on any system which has `cabal`
installed. It has been tested on linux, macOS, and windows.
+### julia
+
+_new in 4.1.0_
+
+For configuring julia hooks, your [`entry`](#hooks-entry) should be a path to a julia source
+file relative to the hook repository (optionally with arguments).
+
+Hooks run in an isolated package environment defined by a `Project.toml` file (optionally
+with a `Manifest.toml` file) in the hook repository. If no `Project.toml` file is found the
+hook is run in an empty environment.
+
+Julia hooks support [`additional_dependencies`](#config-additional_dependencies) which can
+be used to augment, or override, the existing environment in the hooks repository. This also
+means that julia can be used as a `repo: local` hook. `additional_dependencies` are passed
+to `pkg> add` and should be specified using
+[Pkg REPL mode syntax](https://pkgdocs.julialang.org/v1/repl/#repl-add).
+
+Examples:
+
+```yaml
+- id: foo-without-args
+ name: ...
+ language: julia
+ entry: bin/foo.jl
+- id: bar-with-args
+ name: ...
+ language: julia
+ entry: bin/bar.jl --arg1 --arg2
+- id: baz-with-extra-deps
+ name: ...
+ language: julia
+ entry: bin/baz.jl
+ additional_dependencies:
+ - 'ExtraDepA@1'
+ - 'ExtraDepB@2.4'
+```
+
+__Support:__ julia hooks are known to work on any system which has `julia` installed.
+
### lua
Lua hooks are installed with the version of Lua that is used by Luarocks.
From 5da39af30602984cfd50034e071843ec4f11910d Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 9 Dec 2024 22:35:03 +0000
Subject: [PATCH 302/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v0.5.0 → v0.6.0](https://github.com/biomejs/pre-commit/compare/v0.5.0...v0.6.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f95b7cdf..7aac2d2a 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v0.5.0
+ rev: v0.6.0
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 8ac3aaea32eeec8361075369918a3e45cb92d699 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Mon, 16 Dec 2024 20:48:07 -0500
Subject: [PATCH 303/368] undo language_version: lts
---
.pre-commit-config.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 7aac2d2a..bd57334e 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -41,3 +41,5 @@ repos:
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
+ # https://github.com/biomejs/pre-commit/issues/16
+ language_version: default
From c9b579ca70f167fc5107c743bf9a20bc98f3eaa1 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 23 Dec 2024 22:45:31 +0000
Subject: [PATCH 304/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/pyupgrade: v3.19.0 → v3.19.1](https://github.com/asottile/pyupgrade/compare/v3.19.0...v3.19.1)
- [github.com/pre-commit/mirrors-mypy: v1.13.0 → v1.14.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.13.0...v1.14.0)
- [github.com/biomejs/pre-commit: v0.6.0 → v0.6.1](https://github.com/biomejs/pre-commit/compare/v0.6.0...v0.6.1)
---
.pre-commit-config.yaml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index bd57334e..966a5a18 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -20,7 +20,7 @@ repos:
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
- rev: v3.19.0
+ rev: v3.19.1
hooks:
- id: pyupgrade
args: [--py39-plus]
@@ -33,11 +33,11 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.13.0
+ rev: v1.14.0
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v0.6.0
+ rev: v0.6.1
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 7cbbecab199c4abfe8eda1eaf0398677f82fbc26 Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Mon, 23 Dec 2024 21:15:26 -0500
Subject: [PATCH 305/368] remove `language_version` workaround
---
.pre-commit-config.yaml | 2 --
1 file changed, 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 966a5a18..fa22c789 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -41,5 +41,3 @@ repos:
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
- # https://github.com/biomejs/pre-commit/issues/16
- language_version: default
From 4b53cb42cd8c0d22ef4204080e93031c8ddcb12e Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 6 Jan 2025 23:30:25 +0000
Subject: [PATCH 306/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.14.0 → v1.14.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.14.0...v1.14.1)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index fa22c789..7380f6b8 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,7 +33,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.14.0
+ rev: v1.14.1
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
From 75e7d099e5559d6d89e2afffce34970e951c6cdd Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 20 Jan 2025 22:29:50 +0000
Subject: [PATCH 307/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/hhatto/autopep8: v2.3.1 → v2.3.2](https://github.com/hhatto/autopep8/compare/v2.3.1...v2.3.2)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 7380f6b8..1ef5586f 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -25,7 +25,7 @@ repos:
- id: pyupgrade
args: [--py39-plus]
- repo: https://github.com/hhatto/autopep8
- rev: v2.3.1
+ rev: v2.3.2
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/flake8
From f2412b98716212cf3a53c1c27e2bd7a8d0a13ee6 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 10 Feb 2025 22:44:03 +0000
Subject: [PATCH 308/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.14.1 → v1.15.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.14.1...v1.15.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 1ef5586f..c9640e61 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,7 +33,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.14.1
+ rev: v1.15.0
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
From 5f40d02e70c202dbfc5d73c2516af728e26c7fec Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 17 Feb 2025 21:07:34 +0000
Subject: [PATCH 309/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/PyCQA/flake8: 7.1.1 → 7.1.2](https://github.com/PyCQA/flake8/compare/7.1.1...7.1.2)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c9640e61..6153149e 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -29,7 +29,7 @@ repos:
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/flake8
- rev: 7.1.1
+ rev: 7.1.2
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
From d4fe6de0f4c7fdaf0024b144e439b6ca98916726 Mon Sep 17 00:00:00 2001
From: David Xia
Date: Fri, 7 Feb 2025 08:00:34 -0500
Subject: [PATCH 310/368] docs: add DavidAnson/markdownlint-cli2 to hooks page
The current Markdownlint hook is in Ruby.
Mention a popular Node-based one as well.
Signed-off-by: David Xia
---
sections/hooks.md | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sections/hooks.md b/sections/hooks.md
index 828e9db9..8796a4da 100644
--- a/sections/hooks.md
+++ b/sections/hooks.md
@@ -75,13 +75,15 @@ for text / docs / prose:
- [crate-ci/typos]: find and fix common typographical errors
- [thlorenz/doctoc]: generate a table-of-contents in markdown files
- [amperser/proselint]: A linter for prose.
-- [markdownlint/markdownlint]: a Markdown lint tool
+- [markdownlint/markdownlint]: a Markdown lint tool in Ruby
+- [DavidAnson/markdownlint-cli2]: a Markdown lint tool in Node
- [codespell-project/codespell]: check code for common misspellings
[crate-ci/typos]: https://github.com/crate-ci/typos
[thlorenz/doctoc]: https://github.com/thlorenz/doctoc
[amperser/proselint]: https://github.com/amperser/proselint
[markdownlint/markdownlint]: https://github.com/markdownlint/markdownlint
+[DavidAnson/markdownlint-cli2]: https://github.com/DavidAnson/markdownlint-cli2
[codespell-project/codespell]: https://github.com/codespell-project/codespell
for linting commit messages:
From 96caf22c7466eb215a614389a51908ca0cdac2d9 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 24 Feb 2025 19:44:47 +0000
Subject: [PATCH 311/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v0.6.1 → v1.9.4](https://github.com/biomejs/pre-commit/compare/v0.6.1...v1.9.4)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 6153149e..12005c89 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v0.6.1
+ rev: v1.9.4
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 50954289ede630b82d3fbf128a63a433b28379ef Mon Sep 17 00:00:00 2001
From: Maksym Vlasov
Date: Mon, 17 Mar 2025 14:26:36 +0200
Subject: [PATCH 312/368] docs: Fix missleading link
It was copy-pasted from previous link for shell, and currently point to wrong search result. This PR fix that.
---
sections/hooks.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sections/hooks.md b/sections/hooks.md
index 8796a4da..40d17c36 100644
--- a/sections/hooks.md
+++ b/sections/hooks.md
@@ -138,7 +138,7 @@ for example, here's some searches you may find useful using [sourcegraph]:
- hooks which run on python files: [`file:^\.pre-commit-hooks\.yaml$ "types: [python]"`](https://sourcegraph.com/search?q=context:global+file:^\.pre-commit-hooks\.yaml%24+%22types:+[python]%22)
- hooks which run on shell files: [`file:^\.pre-commit-hooks\.yaml$ "types: [shell]"`](https://sourcegraph.com/search?q=context:global+file:^\.pre-commit-hooks\.yaml%24+"types:+[shell]")
-- pre-commit configurations in popular projects: [`file:^\.pre-commit-config\.yaml$`](https://sourcegraph.com/search?q=context:global+file:^\.pre-commit-hooks\.yaml%24+"types:+[shell]")
+- pre-commit configurations in popular projects: [`file:^\.pre-commit-config\.yaml$`](https://sourcegraph.com/search?q=context:global+file:^\.pre-commit-hooks\.yaml")
[sourcegraph]: https://sourcegraph.com/search
From 8be946894b24903ac7e2bfc1484c8b6315259791 Mon Sep 17 00:00:00 2001
From: Maksym Vlasov
Date: Fri, 21 Mar 2025 00:32:36 +0200
Subject: [PATCH 313/368] docs: Fix broken link
---
sections/hooks.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sections/hooks.md b/sections/hooks.md
index 40d17c36..1a97d5dc 100644
--- a/sections/hooks.md
+++ b/sections/hooks.md
@@ -138,7 +138,7 @@ for example, here's some searches you may find useful using [sourcegraph]:
- hooks which run on python files: [`file:^\.pre-commit-hooks\.yaml$ "types: [python]"`](https://sourcegraph.com/search?q=context:global+file:^\.pre-commit-hooks\.yaml%24+%22types:+[python]%22)
- hooks which run on shell files: [`file:^\.pre-commit-hooks\.yaml$ "types: [shell]"`](https://sourcegraph.com/search?q=context:global+file:^\.pre-commit-hooks\.yaml%24+"types:+[shell]")
-- pre-commit configurations in popular projects: [`file:^\.pre-commit-config\.yaml$`](https://sourcegraph.com/search?q=context:global+file:^\.pre-commit-hooks\.yaml")
+- pre-commit configurations in popular projects: [`file:^\.pre-commit-config\.yaml$`](https://sourcegraph.com/search?q=context:global+file:^\.pre-commit-hooks\.yaml)
[sourcegraph]: https://sourcegraph.com/search
From 7cd4f25b1cea23ef0a33bfff040e55e339611807 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 31 Mar 2025 19:43:56 +0000
Subject: [PATCH 314/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/PyCQA/flake8: 7.1.2 → 7.2.0](https://github.com/PyCQA/flake8/compare/7.1.2...7.2.0)
- [github.com/biomejs/pre-commit: v1.9.4 → v2.0.0-beta.1](https://github.com/biomejs/pre-commit/compare/v1.9.4...v2.0.0-beta.1)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 12005c89..7fa55780 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -29,7 +29,7 @@ repos:
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/flake8
- rev: 7.1.2
+ rev: 7.2.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v1.9.4
+ rev: v2.0.0-beta.1
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 113d1134cdbc5089e8ecfc60c1135cd16371de93 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 5 May 2025 19:56:04 +0000
Subject: [PATCH 315/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v2.0.0-beta.1 → v2.0.0-beta.2](https://github.com/biomejs/pre-commit/compare/v2.0.0-beta.1...v2.0.0-beta.2)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 7fa55780..8c0297c5 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.0.0-beta.1
+ rev: v2.0.0-beta.2
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From c526c9ad16b5d3c8b8e21f9ac2cf5613fab1d522 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 12 May 2025 19:43:22 +0000
Subject: [PATCH 316/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v2.0.0-beta.2 → v2.0.0-beta.3](https://github.com/biomejs/pre-commit/compare/v2.0.0-beta.2...v2.0.0-beta.3)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 8c0297c5..a6feae51 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.0.0-beta.2
+ rev: v2.0.0-beta.3
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 6749eb002979f118b725d9a7c31bc62f7a367514 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 19 May 2025 19:47:46 +0000
Subject: [PATCH 317/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v2.0.0-beta.3 → v2.0.0-beta.4](https://github.com/biomejs/pre-commit/compare/v2.0.0-beta.3...v2.0.0-beta.4)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index a6feae51..8f75b88e 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.0.0-beta.3
+ rev: v2.0.0-beta.4
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 788d0a616db94946945792759d1ca70c3072d7cf Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 26 May 2025 19:45:49 +0000
Subject: [PATCH 318/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/reorder-python-imports: v3.14.0 → v3.15.0](https://github.com/asottile/reorder-python-imports/compare/v3.14.0...v3.15.0)
- [github.com/asottile/add-trailing-comma: v3.1.0 → v3.2.0](https://github.com/asottile/add-trailing-comma/compare/v3.1.0...v3.2.0)
- [github.com/asottile/pyupgrade: v3.19.1 → v3.20.0](https://github.com/asottile/pyupgrade/compare/v3.19.1...v3.20.0)
- [github.com/biomejs/pre-commit: v2.0.0-beta.4 → v2.0.0-beta.5](https://github.com/biomejs/pre-commit/compare/v2.0.0-beta.4...v2.0.0-beta.5)
---
.pre-commit-config.yaml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 8f75b88e..49b7d7de 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -10,17 +10,17 @@ repos:
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/asottile/reorder-python-imports
- rev: v3.14.0
+ rev: v3.15.0
hooks:
- id: reorder-python-imports
args: [--py39-plus, --add-import, 'from __future__ import annotations']
- id: reorder-python-imports
- repo: https://github.com/asottile/add-trailing-comma
- rev: v3.1.0
+ rev: v3.2.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
- rev: v3.19.1
+ rev: v3.20.0
hooks:
- id: pyupgrade
args: [--py39-plus]
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.0.0-beta.4
+ rev: v2.0.0-beta.5
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 4152f35c884b779c41dc98fefcd00854476b950a Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 2 Jun 2025 19:57:11 +0000
Subject: [PATCH 319/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.15.0 → v1.16.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.15.0...v1.16.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 49b7d7de..65df650e 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,7 +33,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.15.0
+ rev: v1.16.0
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
From afe5d18e313b76e288440e0542bf2ea67ba712c5 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 23 Jun 2025 19:55:26 +0000
Subject: [PATCH 320/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/PyCQA/flake8: 7.2.0 → 7.3.0](https://github.com/PyCQA/flake8/compare/7.2.0...7.3.0)
- [github.com/pre-commit/mirrors-mypy: v1.16.0 → v1.16.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.16.0...v1.16.1)
- [github.com/biomejs/pre-commit: v2.0.0-beta.5 → v2.0.2](https://github.com/biomejs/pre-commit/compare/v2.0.0-beta.5...v2.0.2)
---
.pre-commit-config.yaml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 65df650e..8f123d07 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -29,15 +29,15 @@ repos:
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/flake8
- rev: 7.2.0
+ rev: 7.3.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.16.0
+ rev: v1.16.1
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.0.0-beta.5
+ rev: v2.0.2
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 505020bf91edf43eef1f5efa70c7e40181ca081a Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 30 Jun 2025 19:40:10 +0000
Subject: [PATCH 321/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v2.0.2 → v2.0.6](https://github.com/biomejs/pre-commit/compare/v2.0.2...v2.0.6)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 8f123d07..60c3474c 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.0.2
+ rev: v2.0.6
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 0e1a4fb3d0a2b0665bfc5bae24c97dd48afdc29f Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 21 Jul 2025 20:02:26 +0000
Subject: [PATCH 322/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.16.1 → v1.17.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.16.1...v1.17.0)
- [github.com/biomejs/pre-commit: v2.0.6 → v2.1.2](https://github.com/biomejs/pre-commit/compare/v2.0.6...v2.1.2)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 60c3474c..565bbce4 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,11 +33,11 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.16.1
+ rev: v1.17.0
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.0.6
+ rev: v2.1.2
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 8e6c0cf9125c64b6918365c67abb8f1a3028d2d3 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 4 Aug 2025 20:31:37 +0000
Subject: [PATCH 323/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.17.0 → v1.17.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.17.0...v1.17.1)
- [github.com/biomejs/pre-commit: v2.1.2 → v2.1.3](https://github.com/biomejs/pre-commit/compare/v2.1.2...v2.1.3)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 565bbce4..06118d83 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,11 +33,11 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.17.0
+ rev: v1.17.1
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.1.2
+ rev: v2.1.3
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 262eef89d2ce2cc0ec8e023f9088768735ec04d3 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 11 Aug 2025 20:46:41 +0000
Subject: [PATCH 324/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0)
- [github.com/biomejs/pre-commit: v2.1.3 → v2.1.4](https://github.com/biomejs/pre-commit/compare/v2.1.3...v2.1.4)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 06118d83..9f306963 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v5.0.0
+ rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.1.3
+ rev: v2.1.4
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 30335c6efa212c75b1d93903eac5609e7bf8bb90 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 18 Aug 2025 20:20:02 +0000
Subject: [PATCH 325/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v2.1.4 → v2.2.0](https://github.com/biomejs/pre-commit/compare/v2.1.4...v2.2.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 9f306963..2a4833b2 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.1.4
+ rev: v2.2.0
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 4a2da412c9cdda77ca028a2c25af45ce6c56b6ce Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 25 Aug 2025 20:10:14 +0000
Subject: [PATCH 326/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v2.2.0 → v2.2.2](https://github.com/biomejs/pre-commit/compare/v2.2.0...v2.2.2)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2a4833b2..973105dd 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.2.0
+ rev: v2.2.2
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 060c74ed5c8cceb802702ab311b246c47d87e16b Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 8 Sep 2025 20:24:27 +0000
Subject: [PATCH 327/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v2.2.2 → v2.2.3](https://github.com/biomejs/pre-commit/compare/v2.2.2...v2.2.3)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 973105dd..0586c7dc 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.2.2
+ rev: v2.2.3
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From e46b5072a3d271b9e48fc0810822adb87ade8145 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 15 Sep 2025 20:23:56 +0000
Subject: [PATCH 328/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.17.1 → v1.18.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.17.1...v1.18.1)
- [github.com/biomejs/pre-commit: v2.2.3 → v2.2.4](https://github.com/biomejs/pre-commit/compare/v2.2.3...v2.2.4)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 0586c7dc..ad802039 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,11 +33,11 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.17.1
+ rev: v1.18.1
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.2.3
+ rev: v2.2.4
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 7e560abc624ac15cafe945791e6f8b1c241bd20c Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 22 Sep 2025 20:44:17 +0000
Subject: [PATCH 329/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.18.1 → v1.18.2](https://github.com/pre-commit/mirrors-mypy/compare/v1.18.1...v1.18.2)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index ad802039..eabcd2e5 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,7 +33,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.18.1
+ rev: v1.18.2
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
From 9bdfa1943323464659d48ad8a91c98dff5c6389f Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 6 Oct 2025 21:25:46 +0000
Subject: [PATCH 330/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v2.2.4 → v2.2.5](https://github.com/biomejs/pre-commit/compare/v2.2.4...v2.2.5)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index eabcd2e5..b7ff4eca 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.2.4
+ rev: v2.2.5
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From c03eb70f65896db17317e5f089d43135cd7f5c78 Mon Sep 17 00:00:00 2001
From: anthony sottile
Date: Thu, 9 Oct 2025 17:46:20 -0400
Subject: [PATCH 331/368] py310+
Committed via https://github.com/asottile/all-repos
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index eabcd2e5..9b4299ad 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -13,7 +13,7 @@ repos:
rev: v3.15.0
hooks:
- id: reorder-python-imports
- args: [--py39-plus, --add-import, 'from __future__ import annotations']
+ args: [--py310-plus, --add-import, 'from __future__ import annotations']
- id: reorder-python-imports
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.2.0
@@ -23,7 +23,7 @@ repos:
rev: v3.20.0
hooks:
- id: pyupgrade
- args: [--py39-plus]
+ args: [--py310-plus]
- repo: https://github.com/hhatto/autopep8
rev: v2.3.2
hooks:
From 5fc98faf8148dadeaf2a95f7b31baea9b15b83fe Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 13 Oct 2025 20:38:51 +0000
Subject: [PATCH 332/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/reorder-python-imports: v3.15.0 → v3.16.0](https://github.com/asottile/reorder-python-imports/compare/v3.15.0...v3.16.0)
- [github.com/asottile/add-trailing-comma: v3.2.0 → v4.0.0](https://github.com/asottile/add-trailing-comma/compare/v3.2.0...v4.0.0)
- [github.com/asottile/pyupgrade: v3.20.0 → v3.21.0](https://github.com/asottile/pyupgrade/compare/v3.20.0...v3.21.0)
---
.pre-commit-config.yaml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 62fffc4a..d8267d73 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -10,17 +10,17 @@ repos:
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/asottile/reorder-python-imports
- rev: v3.15.0
+ rev: v3.16.0
hooks:
- id: reorder-python-imports
args: [--py310-plus, --add-import, 'from __future__ import annotations']
- id: reorder-python-imports
- repo: https://github.com/asottile/add-trailing-comma
- rev: v3.2.0
+ rev: v4.0.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
- rev: v3.20.0
+ rev: v3.21.0
hooks:
- id: pyupgrade
args: [--py310-plus]
From a6b97bafeb862011669fd9b18cea5bb61fb88ed7 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 20 Oct 2025 22:31:21 +0000
Subject: [PATCH 333/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v2.2.5 → v2.2.6](https://github.com/biomejs/pre-commit/compare/v2.2.5...v2.2.6)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index d8267d73..18774736 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.2.5
+ rev: v2.2.6
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From cf1df5734a9cfdec66613686914d5ffa58da1a92 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 27 Oct 2025 20:19:51 +0000
Subject: [PATCH 334/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v2.2.6 → v2.3.1](https://github.com/biomejs/pre-commit/compare/v2.2.6...v2.3.1)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 18774736..04f322cf 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.2.6
+ rev: v2.3.1
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 0e8ffd5dc2b19b3c62048ea513e84acc337f67a1 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 3 Nov 2025 20:45:48 +0000
Subject: [PATCH 335/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v2.3.1 → v2.3.2](https://github.com/biomejs/pre-commit/compare/v2.3.1...v2.3.2)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 04f322cf..cc9c126b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.3.1
+ rev: v2.3.2
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From ed4f60b5f538399b765988882eb0cdb61e5df851 Mon Sep 17 00:00:00 2001
From: anthony sottile
Date: Sat, 8 Nov 2025 17:11:18 -0500
Subject: [PATCH 336/368] documentation updates for 4.4.0
---
sections/advanced.md | 8 ++++----
sections/hooks.md | 2 +-
sections/new-hooks.md | 28 ++++++++++++++++------------
3 files changed, 21 insertions(+), 17 deletions(-)
diff --git a/sections/advanced.md b/sections/advanced.md
index 6d1f1f65..b5f7f227 100644
--- a/sections/advanced.md
+++ b/sections/advanced.md
@@ -272,7 +272,7 @@ For example:
hooks:
- id: check-requirements
name: check requirements files
- language: system
+ language: unsupported
entry: python -m scripts.check_requirements --compare
files: ^requirements.*\.txt$
```
@@ -291,7 +291,7 @@ You can configure repository-local hooks by specifying the [`repo`](#repos-repo)
sentinel `local`.
local hooks can use any language which supports [`additional_dependencies`](#config-additional_dependencies)
-or [`docker_image`](#docker_image) / [`fail`](#fail) / [`pygrep`](#pygrep) / [`script`](#script) / [`system`](#system).
+or [`docker_image`](#docker_image) / [`fail`](#fail) / [`pygrep`](#pygrep) / [`unsupported`](#unsupported) / [`unsupported_script`](#unsupported_script).
This enables you to install things which previously would require a trivial
mirror repository.
@@ -307,13 +307,13 @@ Here's an example configuration with a few `local` hooks:
- id: pylint
name: pylint
entry: pylint
- language: system
+ language: unsupported
types: [python]
require_serial: true
- id: check-x
name: Check X
entry: ./bin/check-x.sh
- language: script
+ language: unsupported_script
files: \.x$
- id: scss-lint
name: scss-lint
diff --git a/sections/hooks.md b/sections/hooks.md
index 1a97d5dc..27dc128c 100644
--- a/sections/hooks.md
+++ b/sections/hooks.md
@@ -161,7 +161,7 @@ you may send [a pull request] to expand this list however there are a few
requirements you *must* follow or your PR will be closed without comment:
- the tool must already be fairly popular (>500 stars)
-- the tool must use a managed language (no `system` / `script` / `docker` hooks)
+- the tool must use a managed language (no `unsupported` / `unsupported_script` / `docker` hooks)
- the tool must operate on files
[a pull request]: https://github.com/pre-commit/pre-commit.com/blob/main/sections/hooks.md
diff --git a/sections/new-hooks.md b/sections/new-hooks.md
index 70699666..7f35b991 100644
--- a/sections/new-hooks.md
+++ b/sections/new-hooks.md
@@ -155,8 +155,8 @@ Hello from foo hook!
- [rust](#rust)
- [swift](#swift)
- [pygrep](#pygrep)
-- [script](#script)
-- [system](#system)
+- [unsupported](#unsupported)
+- [unsupported_script](#unsupported_scripts)
### conda
@@ -492,23 +492,27 @@ To require all files to match, use `args: [--negate]`.
__Support:__ pygrep hooks are supported on all platforms which pre-commit runs
on.
-### script
+### unsupported
-Script hooks provide a way to write simple scripts which validate files. The
-[`entry`](#hooks-entry) should be a path relative to the root of the hook repository.
+[anchor](__#system)
+_new in 4.4.0_: previously `language: system`. the alias will be removed in a
+future version
+
+System hooks provide a way to write hooks for system-level executables which
+don't have a supported language above (or have special environment
+requirements that don't allow them to run in isolation such as pylint).
This hook type will not be given a virtual environment to work with – if it
needs additional dependencies the consumer must install them manually.
-__Support:__ the support of script hooks depend on the scripts themselves.
+### unsupported_script
-### system
+[anchor](__#script)
+_new in 4.4.0_: previously `language: script`. the alias will be removed in a
+future version
-System hooks provide a way to write hooks for system-level executables which
-don't have a supported language above (or have special environment
-requirements that don't allow them to run in isolation such as pylint).
+Script hooks provide a way to write simple scripts which validate files. The
+[`entry`](#hooks-entry) should be a path relative to the root of the hook repository.
This hook type will not be given a virtual environment to work with – if it
needs additional dependencies the consumer must install them manually.
-
-__Support:__ the support of system hooks depend on the executables.
From de92afe062779e768d861af8ca5ce22734997295 Mon Sep 17 00:00:00 2001
From: Xianpeng Shen
Date: Sun, 9 Nov 2025 00:16:32 +0200
Subject: [PATCH 337/368] Update new-hooks.md to fix anchor link
---
sections/new-hooks.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sections/new-hooks.md b/sections/new-hooks.md
index 7f35b991..6154b821 100644
--- a/sections/new-hooks.md
+++ b/sections/new-hooks.md
@@ -156,7 +156,7 @@ Hello from foo hook!
- [swift](#swift)
- [pygrep](#pygrep)
- [unsupported](#unsupported)
-- [unsupported_script](#unsupported_scripts)
+- [unsupported_script](#unsupported_script)
### conda
From 287dea84064fa7bb98796eb9d430ca4f005ff090 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 10 Nov 2025 21:00:01 +0000
Subject: [PATCH 338/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/pyupgrade: v3.21.0 → v3.21.1](https://github.com/asottile/pyupgrade/compare/v3.21.0...v3.21.1)
- [github.com/biomejs/pre-commit: v2.3.2 → v2.3.4](https://github.com/biomejs/pre-commit/compare/v2.3.2...v2.3.4)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index cc9c126b..f0cb09b8 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -20,7 +20,7 @@ repos:
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
- rev: v3.21.0
+ rev: v3.21.1
hooks:
- id: pyupgrade
args: [--py310-plus]
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.3.2
+ rev: v2.3.4
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 2aef9432e3a2bcd4eee6f5be4bb2434a53cbf5a2 Mon Sep 17 00:00:00 2001
From: anthony sottile
Date: Mon, 17 Nov 2025 13:06:37 -0500
Subject: [PATCH 339/368] update link to oxipng
---
sections/hooks.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sections/hooks.md b/sections/hooks.md
index 27dc128c..a045f6f6 100644
--- a/sections/hooks.md
+++ b/sections/hooks.md
@@ -54,11 +54,11 @@ for shell scripts:
for the web:
- [biomejs/pre-commit]: a fast formatter / fixer written in rust
- [standard/standard]: linter / fixer
-- [shssoichiro/oxipng]: optimize png files
+- [oxipng/oxipng]: optimize png files
[biomejs/pre-commit]: https://github.com/biomejs/pre-commit
[standard/standard]: https://github.com/standard/standard
-[shssoichiro/oxipng]: https://github.com/shssoichiro/oxipng
+[oxipng/oxipng]: https://github.com/oxipng/oxipng
for configuration files:
- [python-jsonschema/check-jsonschema]: check many common configurations with jsonschema
From f90e3d7364c92fc9299a52c5916a91e99640994c Mon Sep 17 00:00:00 2001
From: anthony sottile
Date: Mon, 17 Nov 2025 13:08:12 -0500
Subject: [PATCH 340/368] remove all-repos.yaml
removed references over a year ago in 53aacc6daa654bd0038ad662245286357ac96571
---
all-repos.yaml | 249 -------------------------------------------------
1 file changed, 249 deletions(-)
delete mode 100644 all-repos.yaml
diff --git a/all-repos.yaml b/all-repos.yaml
deleted file mode 100644
index 90eecf56..00000000
--- a/all-repos.yaml
+++ /dev/null
@@ -1,249 +0,0 @@
-# This file is used to generate all-hooks.json
-- https://github.com/pre-commit/pre-commit-hooks
-- https://github.com/pre-commit/mirrors-clang-format
-- https://github.com/pre-commit/mirrors-csslint
-- https://github.com/pre-commit/mirrors-eslint
-- https://github.com/pre-commit/mirrors-fixmyjs
-- https://github.com/pre-commit/mirrors-jshint
-- https://github.com/pre-commit/mirrors-mypy
-- https://github.com/pre-commit/mirrors-puppet-lint
-- https://github.com/pre-commit/mirrors-scss-lint
-- https://github.com/pre-commit/mirrors-yapf
-- https://github.com/pre-commit/pygrep-hooks
-- https://github.com/pre-commit/sync-pre-commit-deps
-- https://github.com/FalconSocial/pre-commit-mirrors-pep257
-- https://github.com/FalconSocial/pre-commit-python-sorter
-- https://github.com/MarketSquare/robotframework-tidy
-- https://github.com/guykisel/prospector-mirror
-- https://github.com/asottile/add-trailing-comma
-- https://github.com/asottile/pyupgrade
-- https://github.com/asottile/reorder-python-imports
-- https://github.com/asottile/yesqa
-- https://github.com/asottile/dead
-- https://github.com/asottile/setup-cfg-fmt
-- https://github.com/asottile/cheetah_lint
-- https://github.com/digitalpulp/pre-commit-php
-- https://github.com/elidupuis/mirrors-jscs
-- https://github.com/elidupuis/mirrors-sass-lint
-# - https://github.com/jumanjihouse/pre-commit-hooks
-- https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
-- https://github.com/Lucas-C/pre-commit-hooks
-# - https://github.com/Lucas-C/pre-commit-hooks-java
-- https://github.com/Lucas-C/pre-commit-hooks-lxml
-# - https://github.com/Lucas-C/pre-commit-hooks-markup
-# - https://github.com/Lucas-C/pre-commit-hooks-nodejs
-- https://github.com/Lucas-C/pre-commit-hooks-safety
-- https://github.com/chriskuehl/puppet-pre-commit-hooks
-- https://github.com/golangci/golangci-lint
-- https://github.com/Bahjat/pre-commit-golang
-- https://github.com/dnephin/pre-commit-golang
-- https://github.com/troian/pre-commit-golang
-- https://github.com/jstewmon/check-swagger
-- https://github.com/detailyang/pre-commit-shell
-- https://github.com/lovesegfault/beautysh
-- https://github.com/antonbabenko/pre-commit-terraform
-- https://github.com/ansible-community/ansible-lint
-- https://github.com/doublify/pre-commit-clang-format
-- https://github.com/doublify/pre-commit-go
-- https://github.com/doublify/pre-commit-hindent
-- https://github.com/doublify/pre-commit-rust
-- https://github.com/awebdeveloper/pre-commit-stylelint
-- https://github.com/awebdeveloper/pre-commit-tslint
-- https://github.com/adrienverge/yamllint
-- https://github.com/thlorenz/doctoc
-- https://github.com/noahsark769/xcodeproj-sort-pre-commit-hook
-- https://github.com/jorisroovers/gitlint
-- https://github.com/psf/black
-- https://github.com/IamTheFij/ansible-pre-commit
-- https://github.com/IamTheFij/docker-pre-commit
-- https://github.com/mattlqx/pre-commit-ruby
-- https://github.com/mattlqx/pre-commit-sign
-- https://github.com/mattlqx/pre-commit-search-and-replace
-- https://github.com/pryorda/dockerfilelint-precommit-hooks
-- https://github.com/alessandrojcm/commitlint-pre-commit-hook
-- https://github.com/henryykt/pre-commit-perl
-- https://github.com/juancarlospaco/pre-commit-nim
-- https://github.com/aws-cloudformation/cfn-lint
-- https://github.com/thoughtworks/talisman
-- https://github.com/PyCQA/flake8
-- https://github.com/PyCQA/bandit
-- https://github.com/PyCQA/pydocstyle
-- https://github.com/PyCQA/pylint
-- https://github.com/PyCQA/doc8
-- https://github.com/PyCQA/prospector
-- https://github.com/PyCQA/isort
-- https://github.com/PyCQA/docformatter
-- https://github.com/PyCQA/autoflake
-- https://github.com/miki725/importanize
-- https://github.com/motet-a/jinjalint
-- https://github.com/milin/giticket
-- https://github.com/milin/gitown
-- https://github.com/sqlalchemyorg/zimports
-- https://github.com/peterdemin/pip-compile-multi
-- https://github.com/homebysix/pre-commit-macadmin
-- https://github.com/fortman/pre-commit-prometheus
-- https://github.com/syntaqx/git-hooks
-- https://github.com/lunarmodules/luacheck
-- https://github.com/Koihik/LuaFormatter
-- https://github.com/Calinou/pre-commit-luacheck
-- https://github.com/belminf/pre-commit-chef
-- https://github.com/pocc/pre-commit-hooks
-- https://github.com/dwightgunning/pre-commit-nglint
-- https://github.com/codespell-project/codespell
-- https://gitlab.com/smop/pre-commit-hooks
-- https://github.com/seddonym/import-linter
-- https://github.com/marco-c/taskcluster_yml_validator
-- https://github.com/rstcheck/rstcheck
-- https://github.com/lorenzwalthert/precommit
-- https://github.com/lorenzwalthert/gitignore-tidy
-- https://github.com/FelixSeptem/pre-commit-golang
-- https://gitlab.com/daverona/pre-commit/cpp
-- https://github.com/codingjoe/relint
-- https://github.com/nix-community/nixpkgs-fmt
-- https://github.com/d6e/beancount-check
-- https://gitlab.com/iamlikeme/nbhooks
-- https://github.com/Vimjas/vint
-- https://github.com/eschulte/lisp-format
-- https://github.com/shellcheck-py/shellcheck-py
-- https://github.com/APIDevTools/swagger-cli
-- https://github.com/kynan/nbstripout
-- https://gitlab.com/devopshq/gitlab-ci-linter
-- https://github.com/bmorcos/pre-commit-hooks-cpp
-- https://github.com/igorshubovych/markdownlint-cli
-- https://github.com/TekWizely/pre-commit-golang
-- https://github.com/markdownlint/markdownlint
-- https://github.com/jguttman94/pre-commit-gradle
-- https://github.com/Yelp/detect-secrets
-- https://github.com/dmitri-lerko/pre-commit-docker-kustomize
-- https://github.com/perltidy/perltidy
-- https://github.com/talos-systems/conform
-- https://github.com/twu/skjold
-- https://github.com/commitizen-tools/commitizen
-- https://github.com/gherynos/pre-commit-java
-- https://github.com/lietu/go-pre-commit
-- https://github.com/macisamuele/language-formatters-pre-commit-hooks
-- https://github.com/jlebar/pre-commit-hooks
-- https://github.com/jazzband/pip-tools
-- https://github.com/pappasam/toml-sort
-- https://github.com/arenadotio/pre-commit-ocamlformat
-- https://github.com/hcodes/yaspeller
-- https://github.com/maltzj/google-style-precommit-hook
-- https://github.com/jvstein/pre-commit-dotnet-format
-- https://github.com/PeterMosmans/jenkinslint
-- https://github.com/nicklockwood/SwiftFormat
-- https://github.com/executablebooks/mdformat
-- https://gitlab.com/daverona/pre-commit/php
-- https://github.com/anderseknert/pre-commit-opa
-- https://github.com/radix-ai/auto-smart-commit
-- https://github.com/thibaudcolas/curlylint
-- https://github.com/cheshirekow/cmake-format-precommit
-- https://github.com/aorumbayev/pydantic-to-schema
-- https://github.com/hadialqattan/pycln
-- https://github.com/nbQA-dev/nbQA
-- https://github.com/Scony/godot-gdscript-toolkit
-- https://github.com/avilaton/add-msg-issue-prefix-hook
-- https://github.com/dustinsand/pre-commit-jvm
-- https://github.com/alan-turing-institute/CleverCSV-pre-commit
-- https://gitlab.com/jvenom/elixir-pre-commit-hooks
-- https://github.com/Cretezy/flutter-format-pre-commit
-- https://github.com/dluksza/flutter-analyze-pre-commit
-- https://github.com/fluttercommunity/import_sorter
-- https://github.com/editorconfig-checker/editorconfig-checker.python
-- https://gitlab.com/pablodiehl/pre-commit-lua-formatter
-- https://github.com/frnmst/md-toc
-- https://github.com/mgedmin/check-manifest
-# - https://github.com/ecugol/pre-commit-hooks-django
-- https://github.com/PrincetonUniversity/blocklint
-- https://github.com/python-jsonschema/check-jsonschema
-- https://github.com/sirosen/texthooks
-- https://github.com/snok/pep585-upgrade
-- https://github.com/jendrikseipp/vulture
-- https://github.com/mwouts/jupytext
-- https://github.com/ejba/pre-commit-maven
-- https://github.com/tfsec/tfsec
-- https://github.com/yoheimuta/protolint
-- https://github.com/hadolint/hadolint
-- https://github.com/google/go-jsonnet
-- https://github.com/google/yamlfmt
-- https://github.com/guid-empty/flutter-dependency-validation-pre-commit
-- https://github.com/cpplint/cpplint
-- https://github.com/MarcoGorelli/absolufy-imports
-- https://github.com/MarcoGorelli/auto-walrus
-- https://github.com/MarcoGorelli/cython-lint
-- https://github.com/domdfcoding/flake2lint
-- https://github.com/dotnet/format
-- https://github.com/ashwin153/pre-commit-vagrant
-- https://github.com/AleksaC/hadolint-py
-- https://github.com/AleksaC/circleci-cli-py
-- https://github.com/AleksaC/mirrors-cfn-nag
-- https://github.com/cmake-lint/cmake-lint
-- https://github.com/priv-kweihmann/oelint-adv
-- https://github.com/jggomez/pre-commit-android-kotlin
-- https://github.com/Carreau/velin
-- https://github.com/chrismgrayftsinc/jsonnetfmt
-- https://github.com/zricethezav/gitleaks
-- https://github.com/hugoh/pre-commit-fish
-# - https://github.com/nbyl/pre-commit-license-checks
-# - https://github.com/jonasbb/pre-commit-latex-hooks
-- https://github.com/dfm/black_nbconvert
-- https://github.com/crate-ci/typos
-- https://github.com/snakemake/snakefmt
-- https://github.com/regebro/pyroma
-- https://github.com/tox-dev/tox-ini-fmt
-- https://github.com/janosh/format-ipy-cells
-- https://github.com/FalcoSuessgott/lint-gitlab-ci
-- https://github.com/comkieffer/xml-linter-hook
-- https://github.com/jackdewinter/pymarkdown
-- https://github.com/klieret/jekyll-relative-url-check
-- https://github.com/tarioch/flux-check-hook
-- https://github.com/streetsidesoftware/cspell-cli
-- https://github.com/rapidsai/frigate
-- https://github.com/norwoodj/helm-docs
-- https://github.com/sqlfluff/sqlfluff
-- https://github.com/adamchainz/blacken-docs
-- https://github.com/adamchainz/django-upgrade
-- https://github.com/scop/pre-commit-shfmt
-- https://github.com/scop/pre-commit-perlcritic
-- https://github.com/BlankSpruce/gersemi
-- https://github.com/realm/SwiftLint
-- https://gitlab.com/bmares/check-json5
-- https://github.com/semaphor-dk/dansabel
-- https://github.com/gitguardian/gg-shield
-- https://github.com/JohnnyMorganz/StyLua
-- https://github.com/shssoichiro/oxipng
-- https://github.com/datarootsio/databooks
-- https://github.com/standard/standard
-- https://github.com/Sceptre/sceptrelint
-- https://github.com/lyz-code/yamlfix
-- https://github.com/dannysepler/rm_unneeded_f_str
-- https://github.com/cmhughes/latexindent.pl
-- https://github.com/sirwart/ripsecrets
-- https://github.com/bagerard/graphviz-dot-hooks
-- https://github.com/omnilib/ufmt
-- https://github.com/daveshanley/vacuum
-- https://github.com/nuztalgia/botstrap
-- https://gitlab.com/adam-moss/pre-commit-trailer
-- https://gitlab.com/adam-moss/pre-commit-ssh-git-signing-key
-- https://github.com/astral-sh/ruff-pre-commit
-- https://github.com/mrtazz/checkmake
-- https://github.com/jshwi/docsig
-- https://github.com/finsberg/clang-format-docs
-- https://github.com/rubocop/rubocop
-- https://github.com/dbt-checkpoint/dbt-checkpoint
-- https://gitlab.com/engmark/vcard
-- https://github.com/Data-Liberation-Front/csvlint.rb
-- https://github.com/christopher-hacker/enforce-notebook-run-order
-- https://github.com/mxr/unkey
-- https://github.com/Mateusz-Grzelinski/actionlint-py
-- https://github.com/andrewring/github-distributed-owners
-- https://github.com/Mermeid-Designs/pydantic-hooks
-- https://github.com/igrr/astyle_py
-- https://gitlab.com/codementors/pre-commit/add-issue-number-to-conventional-commit
-- https://github.com/numpy/numpydoc
-- https://github.com/hakancelikdev/unimport
-- https://github.com/hakancelikdev/unexport
-- https://github.com/KindDragon/gn-build-py
-- https://github.com/stefmolin/exif-stripper
-- https://github.com/hhatto/autopep8
-- https://github.com/rhysd/actionlint
-- https://github.com/hija/clean-dotenv
From f8f9c9315572bb7e40b18c26bd7bf44295d09f25 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 17 Nov 2025 20:30:37 +0000
Subject: [PATCH 341/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v2.3.4 → v2.3.5](https://github.com/biomejs/pre-commit/compare/v2.3.4...v2.3.5)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f0cb09b8..07211466 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.3.4
+ rev: v2.3.5
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From f35f043f5e64adf8f8e5c996f4c0508b13d85f86 Mon Sep 17 00:00:00 2001
From: anthony sottile
Date: Sat, 22 Nov 2025 16:48:14 -0500
Subject: [PATCH 342/368] document `pre-commit hazmat`
---
sections/advanced.md | 93 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 93 insertions(+)
diff --git a/sections/advanced.md b/sections/advanced.md
index b5f7f227..442dbff1 100644
--- a/sections/advanced.md
+++ b/sections/advanced.md
@@ -352,6 +352,99 @@ The currently available `meta` hooks:
debugging.
```
+## `pre-commit hazmat`
+
+"hazardous materials"
+
+pre-commit provides a few `entry` prefix "helpers" for unusual situations.
+
+in case it's not clear, using these is _usually_ a bad idea.
+
+_note_: hazmat helpers do not work on languages which adjust `entry` (`docker`
+/ `docker_image` / `fail` / `julia` / `pygrep` / `r` / `unsupported_script`).
+
+### `pre-commit hazmat cd`
+
+_new in 4.5.0_
+
+for "monorepo" usage one can use this to target a subdirectory.
+
+this entry prefix will cd to the target subdir and adjust filename arguments
+
+example usage:
+
+```yaml
+# recommended:
+# minimum_pre_commit_version: 4.5.0
+repos:
+- repo: ...
+ rev: ...
+ hooks:
+ - id: example
+ alias: example-repo1
+ name: example (repo1)
+ files: ^repo1/
+ # important! ends with `--`
+ # important! copy `args: [...]` to entry and blank out `args: []`
+ entry: pre-commit hazmat cd repo1 example-bin --arg1 --
+ args: []
+
+ - id: example
+ alias: example-repo2
+ name: example (repo2)
+ files: ^repo2/
+ entry: pre-commit hazmat cd repo2 example-bin --arg1 --
+ args: []
+
+ # ... etc.
+```
+
+### `pre-commit hazmat ignore-exit-code`
+
+_new in 4.5.0_
+
+it's a bad idea to introduce warning noise but this gives you a way to do it.
+
+example:
+
+```yaml
+# recommended:
+# minimum_pre_commit_version: 4.5.0
+repos:
+- repo: ...
+ rev: ...
+ hooks:
+ - id: example
+ # important! copy `args: [...]` to entry and blank out `args: []`
+ entry: pre-commit hazmat ignore-exit-code example-bin --arg1 --
+ args: []
+ # otherwise the output will always be hidden
+ verbose: true
+```
+
+### `pre-commit hazmat n1`
+
+_new in 4.5.0_
+
+some hooks only take one filename argument. this runs them one at a time
+(which is super slow!)
+
+example:
+
+```yaml
+# recommended:
+# minimum_pre_commit_version: 4.5.0
+repos:
+- repo: ...
+ rev: ...
+ hooks:
+ - id: example
+ # important! ends with `--`
+ # important! copy `args: [...]` to entry and blank out `args: []`
+ entry: pre-commit hazmat n1 example-bin --arg1 --
+ args: []
+```
+
## automatically enabling pre-commit on repositories
`pre-commit init-templatedir` can be used to set up a skeleton for `git`'s
From d09459c1fbdd6fd7b8509f0a501cd63c8c9ed356 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 24 Nov 2025 20:53:51 +0000
Subject: [PATCH 343/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/asottile/pyupgrade: v3.21.1 → v3.21.2](https://github.com/asottile/pyupgrade/compare/v3.21.1...v3.21.2)
- [github.com/biomejs/pre-commit: v2.3.5 → v2.3.7](https://github.com/biomejs/pre-commit/compare/v2.3.5...v2.3.7)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 07211466..a6474e83 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -20,7 +20,7 @@ repos:
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
- rev: v3.21.1
+ rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py310-plus]
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.3.5
+ rev: v2.3.7
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 6740110ea1c43d84c6cea09d45ab87d7137ff48c Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 1 Dec 2025 21:05:21 +0000
Subject: [PATCH 344/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.18.2 → v1.19.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.18.2...v1.19.0)
- [github.com/biomejs/pre-commit: v2.3.7 → v2.3.8](https://github.com/biomejs/pre-commit/compare/v2.3.7...v2.3.8)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index a6474e83..113669b1 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,11 +33,11 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.18.2
+ rev: v1.19.0
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.3.7
+ rev: v2.3.8
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 92414a56f02690b8a895332b5c7bde18087b7967 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 15 Dec 2025 20:49:03 +0000
Subject: [PATCH 345/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.19.0 → v1.19.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.19.0...v1.19.1)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 113669b1..088e0d95 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,7 +33,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.19.0
+ rev: v1.19.1
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
From 47556e078482b9500d75acb2670e8cee87b49ea2 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 22 Dec 2025 20:26:31 +0000
Subject: [PATCH 346/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v2.3.8 → v2.3.10](https://github.com/biomejs/pre-commit/compare/v2.3.8...v2.3.10)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 088e0d95..84487e17 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.3.8
+ rev: v2.3.10
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 392108ef916d5c87836a842f41f4c31b364d2448 Mon Sep 17 00:00:00 2001
From: abhro <5664668+abhro@users.noreply.github.com>
Date: Sat, 3 Jan 2026 08:00:42 -0500
Subject: [PATCH 347/368] Add julia to supported languages in new-hooks.md
---
sections/new-hooks.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/sections/new-hooks.md b/sections/new-hooks.md
index 6154b821..587ccfd5 100644
--- a/sections/new-hooks.md
+++ b/sections/new-hooks.md
@@ -146,6 +146,7 @@ Hello from foo hook!
- [fail](#fail)
- [golang](#golang)
- [haskell](#haskell)
+- [julia](#julia)
- [lua](#lua)
- [node](#node)
- [perl](#perl)
From b587ec453054ee5c8949019783f9a7c21dcd4a7a Mon Sep 17 00:00:00 2001
From: Anthony Sottile
Date: Fri, 30 Jan 2026 14:44:41 -0500
Subject: [PATCH 348/368] document validate-config / validate-manifest
---
sections/cli.md | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/sections/cli.md b/sections/cli.md
index a644a0ae..56b74d76 100644
--- a/sections/cli.md
+++ b/sections/cli.md
@@ -233,3 +233,11 @@ Uninstall the pre-commit script.
Options:
- `-t HOOK_TYPE, --hook-type HOOK_TYPE`: which hook type to uninstall.
+
+## pre-commit validate-config [options] [filenames ...] #pre-commit-validate-config
+
+Validate .pre-commit-config.yaml files
+
+## pre-commit validate-manifest [options] [filenames ...] #pre-commit-validate-manifest
+
+Validate .pre-commit-hooks.yaml files
From a4aafb147834fe1af11d6b4764f7c9ed98440974 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 9 Feb 2026 21:49:04 +0000
Subject: [PATCH 349/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v2.3.10 → v2.3.14](https://github.com/biomejs/pre-commit/compare/v2.3.10...v2.3.14)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 84487e17..387a3ac4 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.3.10
+ rev: v2.3.14
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 106554d73c04a35d8517a9d67efeb955c225e66a Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 16 Feb 2026 20:28:58 +0000
Subject: [PATCH 350/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v2.3.14 → v2.3.15](https://github.com/biomejs/pre-commit/compare/v2.3.14...v2.3.15)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 387a3ac4..fb5e9799 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.3.14
+ rev: v2.3.15
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 931459f771fdc6e5e7a1606fc07cbce5d195d2d6 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 23 Feb 2026 20:56:37 +0000
Subject: [PATCH 351/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v2.3.15 → v2.4.4](https://github.com/biomejs/pre-commit/compare/v2.3.15...v2.4.4)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index fb5e9799..3069f855 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.3.15
+ rev: v2.4.4
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From ccd7e31d699538dcaec7078594412588457ef572 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 9 Mar 2026 21:09:12 +0000
Subject: [PATCH 352/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v2.4.4 → v2.4.6](https://github.com/biomejs/pre-commit/compare/v2.4.4...v2.4.6)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 3069f855..1c32b889 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.4.4
+ rev: v2.4.6
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From d1294c3ef7d41512cd89088eaa7d8c7b8951ac21 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 16 Mar 2026 21:03:18 +0000
Subject: [PATCH 353/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v2.4.6 → v2.4.7](https://github.com/biomejs/pre-commit/compare/v2.4.6...v2.4.7)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 1c32b889..93069c8c 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.4.6
+ rev: v2.4.7
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From a284af67b082a1f8d60fba10506a980e6ea3914d Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 23 Mar 2026 20:36:28 +0000
Subject: [PATCH 354/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v2.4.7 → v2.4.8](https://github.com/biomejs/pre-commit/compare/v2.4.7...v2.4.8)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 93069c8c..a9c89401 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.4.7
+ rev: v2.4.8
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From ce931e1cd46262fd5099ba95b7325e7adbc732ff Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 30 Mar 2026 20:36:34 +0000
Subject: [PATCH 355/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v2.4.8 → v2.4.9](https://github.com/biomejs/pre-commit/compare/v2.4.8...v2.4.9)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index a9c89401..d9af6322 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.4.8
+ rev: v2.4.9
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From ef83ef1d8cda38ab346e3674c4f6b824139067c7 Mon Sep 17 00:00:00 2001
From: Matthew Hughes
Date: Thu, 26 Mar 2026 20:48:48 +0000
Subject: [PATCH 356/368] Document `PRE_COMMIT` environment variable
Document this variable, exposed since `v2.5.0`[1], as a way to determine
if `pre-commit` is running. Because It took a bit of searching in the
`pre-commit` repo to discover the existence of this variable.
Link: https://github.com/pre-commit/pre-commit/commit/2f25085d60bf953fea457a3240c91886145dbcc5 [1]
---
sections/new-hooks.md | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sections/new-hooks.md b/sections/new-hooks.md
index 587ccfd5..7f21d439 100644
--- a/sections/new-hooks.md
+++ b/sections/new-hooks.md
@@ -4,6 +4,9 @@ installable package (gem, npm, pypi, etc.) or exposes an executable, it can be
used with pre-commit. Each git repo can support as many languages/hooks as you
want.
+_new in 2.5.0_: `pre-commit` sets the `PRE_COMMIT=1` environment variable
+during hook execution.
+
The hook must exit nonzero on failure or modify files.
A git repo containing pre-commit plugins must contain a `.pre-commit-hooks.yaml`
From 6a6a0a195871b9fd8368086d3094ea62814d5b82 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 6 Apr 2026 21:10:15 +0000
Subject: [PATCH 357/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.19.1 → v1.20.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.19.1...v1.20.0)
- [github.com/biomejs/pre-commit: v2.4.9 → v2.4.10](https://github.com/biomejs/pre-commit/compare/v2.4.9...v2.4.10)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index d9af6322..c94d0e68 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,11 +33,11 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.19.1
+ rev: v1.20.0
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.4.9
+ rev: v2.4.10
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From d82a43cfe3aa29a4d8644d059931086acd9fbd69 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 13 Apr 2026 20:41:26 +0000
Subject: [PATCH 358/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.20.0 → v1.20.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.20.0...v1.20.1)
- [github.com/biomejs/pre-commit: v2.4.10 → v2.4.11](https://github.com/biomejs/pre-commit/compare/v2.4.10...v2.4.11)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c94d0e68..715ec127 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,11 +33,11 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.20.0
+ rev: v1.20.1
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.4.10
+ rev: v2.4.11
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 301d2b619a8d446a0164a097a16c2f6370ea949b Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 20 Apr 2026 20:26:11 +0000
Subject: [PATCH 359/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v2.4.11 → v2.4.12](https://github.com/biomejs/pre-commit/compare/v2.4.11...v2.4.12)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 715ec127..110c92ec 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.4.11
+ rev: v2.4.12
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 756f7abd18d28c207e5c6f6d276c8ef87efc0d70 Mon Sep 17 00:00:00 2001
From: anthony sottile
Date: Tue, 21 Apr 2026 17:11:08 -0400
Subject: [PATCH 360/368] document support for git 2.54+ hooks
---
sections/advanced.md | 71 ++++++++++++++++++++++++++++++++++++++++++++
template_lib.py | 2 +-
2 files changed, 72 insertions(+), 1 deletion(-)
diff --git a/sections/advanced.md b/sections/advanced.md
index 442dbff1..e7531157 100644
--- a/sections/advanced.md
+++ b/sections/advanced.md
@@ -445,8 +445,79 @@ repos:
args: []
```
+## usage with git 2.54+ hook configuration
+
+_new in 4.6.0_: pre-commit improved support for `git config`-based hooks.
+a later version will change `pre-commit install` to use this approach.
+
+[git 2.54] introduced a new way to install git hook tools via `git config`.
+
+the basic gist is the following enables a hook in a git repo:
+
+```bash
+git config set hook..event pre-push
+git config set hook..command 'some command here'
+```
+
+an example setup with `pre-commit` might look like:
+
+```bash
+# note, the "hook" name here is `pre-commit.pre-commit`
+# for the `pre-commit` "tool" and the `pre-commit` "event"
+git config set hook.pre-commit.pre-commit.event pre-commit
+git config set hook.pre-commit.pre-commit.command 'pre-commit hook-impl --hook-type pre-commit --'
+
+# please follow that naming scheme for future compatibility with `pre-commit install`
+
+# an example with pre-push:
+#
+# git config set hook.pre-commit.pre-push.event pre-push
+# git config set hook.pre-commit.pre-push.command 'pre-commit hook-impl --hook-type pre-push --'
+```
+
+`pre-commit hook-impl` is a "hidden" implementation command with these options:
+- `--hook-type ...`: the [hook type](#supported-git-hooks) to use
+- `--skip-on-missing-config`: silently pass when a config is missing
+
+some interesting applications of this:
+
+### "global" installation of pre-commit
+
+with `git config set --global ...` this can automatically enable pre-commit
+for all repositories:
+
+```bash
+git config set --global hook.pre-commit.pre-commit.event pre-commit
+git config set --global hook.pre-commit.pre-commit.command 'pre-commit hook-impl --hook-type pre-commit --skip-on-missing-config --'
+```
+
+- this setup **not recommended** as it can lead to accidentally running hooks
+ when interacting with an untrusted repository.
+- `--skip-on-missing-config` is recommended here as arbitrary git repositories
+ may not have a `.pre-commit-config.yaml`.
+
+### always running a hook on all files
+
+since you can configure pre-commit as many times as you want you *could* invoke
+pre-commit to run a particular hook always and on all files
+
+```bash
+git config set hook.pre-commit.pre-commit-always.event pre-commit
+git config set hook.pre-commit.pre-commit-always.command 'pre-commit run hookid --hook-stage pre-commit --all-files'
+```
+
+*note*: this is not recommended as it has the tendancy to be slow and deviates
+from the normal expectations of pre-commit.
+
+[git 2.54]: https://github.blog/open-source/git/highlights-from-git-2-54/#h-config-based-hooks
+
## automatically enabling pre-commit on repositories
+*note*: if you are on a new-enough version of `git` you may want to use
+[this approach](#global-installation-of-pre-commit) instead.
+
+___
+
`pre-commit init-templatedir` can be used to set up a skeleton for `git`'s
`init.templateDir` option. This means that any newly cloned repository will
automatically have the hooks set up without the need to run
diff --git a/template_lib.py b/template_lib.py
index 05a26c61..72286d70 100644
--- a/template_lib.py
+++ b/template_lib.py
@@ -12,7 +12,7 @@
ID_RE = re.compile(r' #([a-z0-9-]+)$')
-SPECIAL_CHARS_RE = re.compile('[^a-z0-9 _-]')
+SPECIAL_CHARS_RE = re.compile('(&[a-z]+;|[^a-z0-9 _-])')
ROW = '=r='
From 54cd70dfa20378d2c656f1b764e02966587629ad Mon Sep 17 00:00:00 2001
From: anthony sottile
Date: Wed, 22 Apr 2026 09:32:44 -0400
Subject: [PATCH 361/368] also document --config for hook-impl
---
sections/advanced.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/sections/advanced.md b/sections/advanced.md
index e7531157..646f2ac1 100644
--- a/sections/advanced.md
+++ b/sections/advanced.md
@@ -477,6 +477,7 @@ git config set hook.pre-commit.pre-commit.command 'pre-commit hook-impl --hook-t
`pre-commit hook-impl` is a "hidden" implementation command with these options:
- `--hook-type ...`: the [hook type](#supported-git-hooks) to use
+- `--config ...`: (optional) path to `.pre-commit-config.yaml`
- `--skip-on-missing-config`: silently pass when a config is missing
some interesting applications of this:
From dfcca29ccab42fe6f0561b12932d4b8ace60cf32 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 27 Apr 2026 21:08:43 +0000
Subject: [PATCH 362/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.20.1 → v1.20.2](https://github.com/pre-commit/mirrors-mypy/compare/v1.20.1...v1.20.2)
- [github.com/biomejs/pre-commit: v2.4.12 → v2.4.13](https://github.com/biomejs/pre-commit/compare/v2.4.12...v2.4.13)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 110c92ec..30c8fc25 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,11 +33,11 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.20.1
+ rev: v1.20.2
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.4.12
+ rev: v2.4.13
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From 680799de09a2f9415eb5d22cb8f6f0a6d5f903ba Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 4 May 2026 20:31:48 +0000
Subject: [PATCH 363/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v2.4.13 → v2.4.14](https://github.com/biomejs/pre-commit/compare/v2.4.13...v2.4.14)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 30c8fc25..2d92b1f3 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.4.13
+ rev: v2.4.14
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From f0b1c6a2207ad6f5d79351fc4f8e275755392b23 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 11 May 2026 20:24:43 +0000
Subject: [PATCH 364/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v1.20.2 → v2.0.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.20.2...v2.0.0)
- [github.com/biomejs/pre-commit: v2.4.14 → v2.4.15](https://github.com/biomejs/pre-commit/compare/v2.4.14...v2.4.15)
---
.pre-commit-config.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2d92b1f3..f387ba22 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,11 +33,11 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.20.2
+ rev: v2.0.0
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.4.14
+ rev: v2.4.15
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.8.1"]
From b73acadb5076665198f4adba5fe5a6dff73a5876 Mon Sep 17 00:00:00 2001
From: Max R
Date: Mon, 18 May 2026 14:49:29 -0400
Subject: [PATCH 365/368] Remove redundant Biome pre-commit additional
dependencies and update biome.json
Committed via https://github.com/asottile/all-repos
---
.pre-commit-config.yaml | 1 -
biome.json | 10 +++++++---
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f387ba22..29d3782a 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -40,4 +40,3 @@ repos:
rev: v2.4.15
hooks:
- id: biome-check
- additional_dependencies: ["@biomejs/biome@1.8.1"]
diff --git a/biome.json b/biome.json
index 03e2df98..e99b718f 100644
--- a/biome.json
+++ b/biome.json
@@ -1,7 +1,11 @@
{
- "$schema": "https://biomejs.dev/schemas/1.4.0/schema.json",
- "organizeImports": {
- "enabled": false
+ "$schema": "https://biomejs.dev/schemas/2.4.15/schema.json",
+ "assist": {
+ "actions": {
+ "source": {
+ "organizeImports": "off"
+ }
+ }
},
"formatter": {
"indentStyle": "space",
From 6b4b9a1f7420768662d652507f72af727178c22a Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 18 May 2026 21:13:41 +0000
Subject: [PATCH 366/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/pre-commit/mirrors-mypy: v2.0.0 → v2.1.0](https://github.com/pre-commit/mirrors-mypy/compare/v2.0.0...v2.1.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 29d3782a..79c2fe2f 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,7 +33,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v2.0.0
+ rev: v2.1.0
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
From 6af0665b1e586d58be0daeea8e2aaaf5b6510cd9 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 1 Jun 2026 21:27:25 +0000
Subject: [PATCH 367/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v2.4.15 → v2.4.16](https://github.com/biomejs/pre-commit/compare/v2.4.15...v2.4.16)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 79c2fe2f..885239ae 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,6 +37,6 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.4.15
+ rev: v2.4.16
hooks:
- id: biome-check
From c4ac9996467da7979c67c4deab15631a530d5e67 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 15 Jun 2026 20:47:05 +0000
Subject: [PATCH 368/368] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/biomejs/pre-commit: v2.4.16 → v2.5.0](https://github.com/biomejs/pre-commit/compare/v2.4.16...v2.5.0)
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 885239ae..1f2f8c10 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,6 +37,6 @@ repos:
hooks:
- id: mypy
- repo: https://github.com/biomejs/pre-commit
- rev: v2.4.16
+ rev: v2.5.0
hooks:
- id: biome-check