Skip to content

Commit 840226a

Browse files
committed
chore: update pre-commit hooks configuration
- Add `check-json` hook and re-add `check-yaml` hook. - Configure `check-added-large-files` with a max size of 500 KB. - Format `ruff-check` hook arguments for consistency.
1 parent dc03cea commit 840226a

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.pre-commit-config.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@ repos:
1313
hooks:
1414
- id: trailing-whitespace
1515
- id: check-yaml
16-
exclude: mkdocs.yml
16+
args: ["--unsafe"]
1717
- id: check-executables-have-shebangs
18+
- id: check-json
1819
- id: check-toml
1920
- id: check-case-conflict
2021
- id: check-added-large-files
22+
args: ["--maxkb=500", "--enforce-all"]
23+
exclude: uv.lock|.*\.ipynb$
2124
- id: detect-private-key
2225
- id: pretty-format-json
2326
exclude: demo.ipynb
@@ -47,7 +50,7 @@ repos:
4750
rev: v0.15.11
4851
hooks:
4952
- id: ruff-check
50-
args: [--fix]
53+
args: ["--fix"]
5154
- id: ruff-format
5255
types_or: [python, pyi, jupyter]
5356

0 commit comments

Comments
 (0)