Skip to content

Commit fc97e88

Browse files
committed
'precommit-update'
1 parent 8ebb271 commit fc97e88

File tree

2 files changed

+1372
-1386
lines changed

2 files changed

+1372
-1386
lines changed

.pre-commit-config.yaml

Lines changed: 37 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,76 @@
11
---
2-
# See https://pre-commit.com for more information
3-
# See https://pre-commit.com/hooks.html for more hooks
4-
exclude: |
5-
(?x)^(
6-
tools/schemacode/bidsschematools/tests/data/broken_dataset_description.json
7-
| CNAME
8-
)$
2+
exclude: "(?x)^(\n tools/schemacode/bidsschematools/tests/data/broken_dataset_description.json\n | CNAME\n)$\n"
93
repos:
104
- repo: https://github.com/pre-commit/pre-commit-hooks
115
rev: v6.0.0
126
hooks:
137
- id: trailing-whitespace
148
- id: end-of-file-fixer
159
- id: check-yaml
16-
exclude: |
17-
(?x)^(
18-
mkdocs.yml
19-
)$
10+
exclude: "(?x)^(\n mkdocs.yml\n)$\n"
2011
- id: check-json
2112
- id: check-added-large-files
2213
- id: check-case-conflict
2314
- id: check-merge-conflict
2415
- id: mixed-line-ending
25-
2616
- repo: https://github.com/codespell-project/codespell
27-
rev: v2.4.1
17+
rev: v2.4.2
2818
hooks:
2919
- id: codespell
30-
args: [--toml, pyproject.toml]
31-
additional_dependencies: [tomli]
32-
20+
args:
21+
- --toml
22+
- pyproject.toml
23+
additional_dependencies:
24+
- tomli
3325
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
3426
rev: 0.2.3
3527
hooks:
3628
- id: yamlfmt
37-
args: [--mapping, '4', --sequence, '4', --offset, '0']
38-
exclude: |
39-
(?x)^(
40-
docs/specification/.*
41-
| mkdocs.yml
42-
)$
43-
29+
args:
30+
- --mapping
31+
- '4'
32+
- --sequence
33+
- '4'
34+
- --offset
35+
- '0'
36+
exclude: "(?x)^(\n docs/specification/.*\n | mkdocs.yml\n)$\n"
4437
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
4538
rev: v2.16.0
4639
hooks:
4740
- id: pretty-format-toml
48-
args: [--autofix, --indent, '4', --no-sort, --trailing-commas]
49-
41+
args:
42+
- --autofix
43+
- --indent
44+
- '4'
45+
- --no-sort
46+
- --trailing-commas
5047
- repo: https://github.com/djlint/djLint
5148
rev: v1.36.4
5249
hooks:
5350
- id: djlint
54-
exclude: |
55-
(?x)^(
56-
templates/.*md.jinja
57-
)$
51+
exclude: "(?x)^(\n templates/.*md.jinja\n)$\n"
5852
- id: djlint-reformat
59-
exclude: |
60-
(?x)^(
61-
templates/.*md.jinja
62-
)$
53+
exclude: "(?x)^(\n templates/.*md.jinja\n)$\n"
6354
- id: djlint-jinja
64-
exclude: |
65-
(?x)^(
66-
templates/.*md.jinja
67-
)$
55+
exclude: "(?x)^(\n templates/.*md.jinja\n)$\n"
6856
- id: djlint-reformat-jinja
69-
exclude: |
70-
(?x)^(
71-
templates/.*md.jinja
72-
)$
73-
74-
# Check formatting of CSS
75-
# prettier: https://prettier.io/
57+
exclude: "(?x)^(\n templates/.*md.jinja\n)$\n"
7658
- repo: https://github.com/rbubley/mirrors-prettier
7759
rev: v3.8.1
7860
hooks:
7961
- id: prettier
80-
types_or: [css]
81-
82-
# Lint and format Python code
62+
types_or:
63+
- css
8364
- repo: https://github.com/astral-sh/ruff-pre-commit
84-
rev: v0.15.4
65+
rev: v0.15.5
8566
hooks:
8667
- id: ruff-check
87-
# args: [--statistics]
88-
args: [--fix, --show-fixes, --unsafe-fixes]
68+
args:
69+
- --fix
70+
- --show-fixes
71+
- --unsafe-fixes
8972
- id: ruff-format
90-
# args: [--diff]
73+
ci:
74+
autoupdate_commit_msg: 'chore: update pre-commit hooks'
75+
autoupdate_schedule: monthly
76+
autofix_commit_msg: 'style: pre-commit fixes'

0 commit comments

Comments
 (0)