66 - id : ruff
77 name : ruff lint mne
88 args : ["--fix"]
9- files : ^mne/
9+ files : ^mne/|^tools/
10+ exclude : vulture_allowlist.py
1011 - id : ruff
1112 name : ruff lint mne preview
1213 args : ["--fix", "--preview", "--select=NPY201"]
13- files : ^mne/
14+ files : ^mne/|^tools/
1415 - id : ruff
1516 name : ruff lint doc, tutorials, and examples
1617 # D103: missing docstring in public function
1718 # D400: docstring first line must end with period
1819 args : ["--ignore=D103,D400", "--fix"]
1920 files : ^doc/|^tutorials/|^examples/
2021 - id : ruff-format
21- files : ^mne/|^doc/|^tutorials/|^examples/
22+ files : ^mne/|^doc/|^tutorials/|^examples/|^tools/
2223
2324 # Codespell
2425 - repo : https://github.com/codespell-project/codespell
2728 - id : codespell
2829 additional_dependencies :
2930 - tomli
30- files : ^mne/|^doc/|^examples/|^tutorials/
31+ files : ^mne/|^doc/|^examples/|^tutorials/|^tools/
3132 types_or : [python, bib, rst, inc]
3233
3334 # yamllint
@@ -45,13 +46,15 @@ repos:
4546 additional_dependencies :
4647 - tomli
4748 files : ^doc/.*\.(rst|inc)$
49+ # Credit is problematic because we generate an include on the fly
50+ exclude : ^doc/credit.rst$
4851
4952 # sorting
5053 - repo : https://github.com/pre-commit/pre-commit-hooks
5154 rev : v4.6.0
5255 hooks :
5356 - id : file-contents-sorter
54- files : ^doc/changes/names.inc
57+ files : ^doc/changes/names.inc|^.mailmap
5558 args : ["--ignore-case"]
5659
5760# The following are too slow to run on local commits, so let's only run on CIs:
0 commit comments