Skip to content

Commit 2bb893d

Browse files
Update precommit repos (#21)
Switch to quarterly updates and manually updated via: ``` import yaml import subprocess file = ".pre-commit-config.yaml" with open(file) as f: data = yaml.safe_load(f) repos = [] for repo in data["repos"]: if "mirrors-prettier" not in repo["repo"]: repos.append("--repo") repos.append(repo["repo"]) command = ["pre-commit", "autoupdate", "--freeze"] + repos print(" ".join(command)) subprocess.call(command) ``` Work around to avoid updating to an alpha version of https://github.com/pre-commit/mirrors-prettier.
1 parent c446e61 commit 2bb893d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ repos:
1919
- id: trailing-whitespace
2020

2121
- repo: https://github.com/pre-commit/mirrors-prettier
22-
rev: fc260393cc4ec09f8fc0a5ba4437f481c8b55dc1 # frozen: v3.0.3
22+
rev: ffb6a759a979008c0e6dff86e39f4745a2d9eac4 # frozen: v3.1.0
2323
hooks:
2424
- id: prettier
2525
files: \.(css|md|yml|yaml)
2626
args: [--prose-wrap=preserve]
2727

2828
- repo: https://github.com/psf/black
29-
rev: 744d23b34800c06e10272149b70752396e90eeb8 # frozen: 23.10.1
29+
rev: ec91a2be3c44d88e1a3960a4937ad6ed3b63464e # frozen: 23.12.1
3030
hooks:
3131
- id: black
3232

@@ -50,4 +50,4 @@ repos:
5050
ci:
5151
autofix_prs: false
5252
autofix_commit_msg: "[pre-commit.ci 🤖] Apply code format tools to PR"
53-
autoupdate_schedule: monthly
53+
autoupdate_schedule: quarterly

0 commit comments

Comments
 (0)