Skip to content

Commit f579359

Browse files
authored
Merge branch 'main' into ruff
2 parents c983c48 + 4b8b5b2 commit f579359

1 file changed

Lines changed: 23 additions & 16 deletions

File tree

.pre-commit-config.yaml

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
---
2-
# See https://pre-commit.com for more information
3-
# See https://pre-commit.com/hooks.html for more hooks
42
repos:
53
- repo: https://github.com/pre-commit/pre-commit-hooks
64
rev: v6.0.0
@@ -28,22 +26,32 @@ repos:
2826
rev: 0.2.3
2927
hooks:
3028
- id: yamlfmt
31-
args: [--mapping, '4', --sequence, '4', --offset, '0']
29+
args:
30+
- --mapping
31+
- '4'
32+
- --sequence
33+
- '4'
34+
- --offset
35+
- '0'
3236

3337
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
3438
rev: v2.16.0
3539
hooks:
3640
- id: pretty-format-toml
37-
args: [--autofix, --indent, '4']
41+
args:
42+
- --autofix
43+
- --indent
44+
- '4'
3845

3946
- repo: https://github.com/asottile/pyupgrade
4047
rev: v3.21.2
4148
hooks:
4249
- id: pyupgrade
43-
args: [--py38-plus]
50+
args:
51+
- --py38-plus
4452

4553
- repo: https://github.com/seddonym/import-linter
46-
rev: v2.10
54+
rev: v2.11
4755
hooks:
4856
- id: import-linter
4957
args: [--verbose]
@@ -56,12 +64,6 @@ repos:
5664
additional_dependencies:
5765
- black==24.2.0
5866

59-
- repo: https://github.com/psf/black-pre-commit-mirror
60-
rev: 26.1.0
61-
hooks:
62-
- id: black
63-
args: [--config=pyproject.toml]
64-
6567
# Lint and format Python code
6668
- repo: https://github.com/astral-sh/ruff-pre-commit
6769
rev: v0.15.1
@@ -76,18 +78,23 @@ repos:
7678
rev: v1.19.1
7779
hooks:
7880
- id: mypy
79-
additional_dependencies: [pydantic, numpy, types-Jinja2]
81+
additional_dependencies:
82+
- pydantic
83+
- numpy
84+
- types-Jinja2
8085
files: bidsmreye
81-
args: [--config-file, pyproject.toml]
86+
args:
87+
- --config-file
88+
- pyproject.toml
8289

8390
- repo: https://github.com/codespell-project/codespell
84-
rev: v2.4.1
91+
rev: v2.4.2
8592
hooks:
8693
- id: codespell
8794
args: [--toml=pyproject.toml]
8895
additional_dependencies: [tomli]
8996

9097
ci:
9198
autoupdate_commit_msg: 'chore: update pre-commit hooks'
92-
autofix_commit_msg: 'style: pre-commit fixes'
9399
autoupdate_schedule: monthly
100+
autofix_commit_msg: 'style: pre-commit fixes'

0 commit comments

Comments
 (0)