11---
2- exclude : |
3- (?x)^(
4- demos/renaming/spm_2_bids_filenames.ipynb
5- | demos/MoAE/moae_01_bids_app.ipynb
6- )$
7-
2+ exclude : " (?x)^(\n demos/renaming/spm_2_bids_filenames.ipynb\n | demos/MoAE/moae_01_bids_app.ipynb\n )$\n "
83ci :
9- skip : [hadolint-docker]
10-
11-
4+ autoupdate_commit_msg : ' chore: update pre-commit hooks '
5+ autoupdate_schedule : monthly
6+ autofix_commit_msg : ' style: pre-commit fixes '
127repos :
138- repo : local
14-
159 hooks :
1610 - id : mh_style
1711 name : mh_style
1812 entry : mh_style
19- args : [--process-slx, --fix]
13+ args :
14+ - --process-slx
15+ - --fix
2016 files : ^(.*\.(m|slx))$
2117 language : python
22- additional_dependencies : [miss_hit_core]
23-
18+ additional_dependencies :
19+ - miss_hit_core
2420 - id : mh_metric
2521 name : mh_metric
2622 entry : mh_metric
27- args : [--ci]
23+ args :
24+ - --ci
2825 files : ^(.*\.(m|slx))$
2926 language : python
30- additional_dependencies : [miss_hit_core]
31-
27+ additional_dependencies :
28+ - miss_hit_core
3229 - id : mh_lint
3330 name : mh_lint
3431 entry : mh_lint
3532 files : ^(.*\.(m|slx))$
3633 language : python
37- additional_dependencies : [miss_hit]
38-
34+ additional_dependencies :
35+ - miss_hit
3936- repo : https://github.com/pre-commit/pre-commit-hooks
4037 rev : v6.0.0
4138 hooks :
@@ -45,77 +42,93 @@ repos:
4542 - id : check-json
4643 - id : check-added-large-files
4744 - id : pretty-format-json
48- args : [--autofix, --no-sort-keys]
49-
45+ args :
46+ - --autofix
47+ - --no-sort-keys
5048- repo : https://github.com/macisamuele/language-formatters-pre-commit-hooks
5149 rev : v2.16.0
5250 hooks :
5351 - id : pretty-format-toml
54- args : [--autofix, --indent, '4']
55-
52+ args :
53+ - --autofix
54+ - --indent
55+ - ' 4'
5656- repo : https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
5757 rev : 0.2.3
5858 hooks :
5959 - id : yamlfmt
60- args : [--mapping, '4', --sequence, '4', --offset, '0']
61-
60+ args :
61+ - --mapping
62+ - ' 4'
63+ - --sequence
64+ - ' 4'
65+ - --offset
66+ - ' 0'
6267- repo : https://github.com/pre-commit/pygrep-hooks
6368 rev : v1.10.0
6469 hooks :
6570 - id : rst-backticks
6671 - id : rst-inline-touching-normal
67-
6872- repo : https://github.com/pycqa/isort
6973 rev : 8.0.1
7074 hooks :
7175 - id : isort
72- args : [--profile, black]
73-
76+ args :
77+ - --profile
78+ - black
7479- repo : https://github.com/psf/black-pre-commit-mirror
75- rev : 26.1 .0
80+ rev : 26.3 .0
7681 hooks :
7782 - id : black
78- args : [--config=pyproject.toml]
79-
83+ args :
84+ - --config=pyproject.toml
8085- repo : https://github.com/asottile/pyupgrade
8186 rev : v3.21.2
8287 hooks :
8388 - id : pyupgrade
84- args : [--py38-plus]
85-
89+ args :
90+ - --py38-plus
8691- repo : https://github.com/pre-commit/mirrors-mypy
8792 rev : v1.19.1
8893 hooks :
8994 - id : mypy
9095 files : bidspm
91- args : [--config-file, pyproject.toml]
92-
96+ args :
97+ - --config-file
98+ - pyproject.toml
9399- repo : https://github.com/hadolint/hadolint
94100 rev : v2.14.0
95101 hooks :
96102 - id : hadolint-docker
97103 name : Lint Dockerfiles
98104 description : Runs hadolint Docker image to lint Dockerfiles
99105 language : docker_image
100- types : [dockerfile]
106+ types :
107+ - dockerfile
101108 entry : ghcr.io/hadolint/hadolint hadolint
102-
103109- repo : https://github.com/codespell-project/codespell
104- rev : v2.4.1
110+ rev : v2.4.2
105111 hooks :
106112 - id : codespell
107- args : [--toml, pyproject.toml]
108- additional_dependencies : [tomli]
109-
110- # Check that Python code complies with PEP8 guidelines
111- # flake8 uses pydocstyle to check docstrings: https://flake8.pycqa.org/en/latest/
112- # flake8-docstrings: https://pypi.org/project/flake8-docstrings/
113- # flake8-use-fstring forces to use fstrings: https://pypi.org/project/flake8-use-fstring/
114- # flake8-functions checks functions quality: https://pypi.org/project/flake8-functions/
115- # flake8-bugbear detects some common bugs: https://github.com/PyCQA/flake8-bugbear
113+ args :
114+ - --toml
115+ - pyproject.toml
116+ additional_dependencies :
117+ - tomli
116118- repo : https://github.com/pyCQA/flake8
117119 rev : 7.3.0
118120 hooks :
119121 - id : flake8
120- args : [--config, .flake8, --verbose, src, tools, docs, demos, tests]
121- additional_dependencies : [flake8-docstrings, flake8-use-fstring, flake8-bugbear]
122+ args :
123+ - --config
124+ - .flake8
125+ - --verbose
126+ - src
127+ - tools
128+ - docs
129+ - demos
130+ - tests
131+ additional_dependencies :
132+ - flake8-docstrings
133+ - flake8-use-fstring
134+ - flake8-bugbear
0 commit comments