File tree Expand file tree Collapse file tree 2 files changed +48
-15
lines changed Expand file tree Collapse file tree 2 files changed +48
-15
lines changed Original file line number Diff line number Diff line change 1
1
exclude : " .*/data/.*"
2
2
repos :
3
- - repo : https://github.com/pre-commit/pre-commit-hooks
3
+ - repo : https://github.com/pre-commit/pre-commit-hooks
4
4
rev : v4.4.0
5
5
hooks :
6
- - id : trailing-whitespace
7
- - id : end-of-file-fixer
8
- - id : check-yaml
9
- - id : check-added-large-files
10
- - repo : https://github.com/psf/black
11
- rev : 23.1.0
6
+ - id : trailing-whitespace
7
+ exclude : ' .*\.svg'
8
+ - id : end-of-file-fixer
9
+ exclude : ' .*\.svg'
10
+ - id : check-yaml
11
+ - id : check-json
12
+ - id : check-toml
13
+ - id : check-added-large-files
14
+ - repo : https://github.com/astral-sh/ruff-pre-commit
15
+ rev : v0.1.6
12
16
hooks :
13
- - id : black
14
- files : ^fmriprep/|^wrapper/
15
- - repo : https://github.com/pycqa/isort
16
- rev : 5.12.0
17
- hooks :
18
- - id : isort
19
- files : ^fmriprep/|^wrapper/
17
+ - id : ruff
18
+ - id : ruff-format
Original file line number Diff line number Diff line change @@ -123,7 +123,6 @@ version-file = "fmriprep/_version.py"
123
123
124
124
[tool .black ]
125
125
line-length = 99
126
- target-version = [' py39' ]
127
126
skip-string-normalization = true
128
127
129
128
[tool .isort ]
@@ -146,3 +145,38 @@ doctest_optionflags = "ALLOW_UNICODE NORMALIZE_WHITESPACE ELLIPSIS"
146
145
env = " PYTHONHASHSEED=0"
147
146
filterwarnings = [" ignore::DeprecationWarning" ]
148
147
junit_family = " xunit2"
148
+
149
+ [tool .ruff ]
150
+ line-length = 99
151
+ extend-select = [
152
+ " F" ,
153
+ " E" ,
154
+ " W" ,
155
+ " I" ,
156
+ " UP" ,
157
+ " YTT" ,
158
+ " S" ,
159
+ " BLE" ,
160
+ " B" ,
161
+ " A" ,
162
+ # "CPY",
163
+ " C4" ,
164
+ " DTZ" ,
165
+ " T10" ,
166
+ # "EM",
167
+ " EXE" ,
168
+ " FA" ,
169
+ " ISC" ,
170
+ " ICN" ,
171
+ " PT" ,
172
+ " Q" ,
173
+ ]
174
+
175
+ [tool .ruff .flake8-quotes ]
176
+ inline-quotes = " single"
177
+
178
+ [tool .ruff .extend-per-file-ignores ]
179
+ "*/test_*.py" = [" S101" ]
180
+
181
+ [tool .ruff .format ]
182
+ quote-style = " single"
You can’t perform that action at this time.
0 commit comments