8000 MNT: blue/isort/flake8 → ruff · nipy/nibabel@36876f9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 36876f9

Browse files
MNT: blue/isort/flake8 → ruff
1 parent 1436a6e commit 36876f9

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,13 @@ repos:
1212
- id: check-case-conflict
1313
- id: check-merge-conflict
1414
- id: check-vcs-permalinks
15-
- repo: https://github.com/grantjenks/blue
16-
rev: v0.9.1
15+
- repo: https://github.com/astral-sh/ruff-pre-commit
16+
rev: v0.1.9
1717
hooks:
18-
- id: blue
19-
- repo: https://github.com/pycqa/isort
20-
rev: 5.12.0
21-
hooks:
22-
- id: isort
23-
- repo: https://github.com/pycqa/flake8
24-
rev: 6.1.0
25-
hooks:
26-
- id: flake8
18+
- id: ruff
19+
args: [--fix, --show-fix, --exit-non-zero-on-fix]
20+
exclude: "^(doc|nisext|tools)/"
21+
- id: ruff-format
2722
exclude: "^(doc|nisext|tools)/"
2823
- repo: https://github.com/pre-commit/mirrors-mypy
2924
rev: v1.5.1

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,8 @@ __version__ = version = {version!r}
109109
__version_tuple__ = version_tuple = {version_tuple!r}
110110
'''
111111

112-
[tool.blue]
112+
[tool.ruff]
113113
line_length = 99
114-
target-version = ["py38"]
115114
force-exclude = """
116115
(
117116
_version.py
@@ -120,10 +119,11 @@ force-exclude = """
120119
)
121120
"""
122121

123-
[tool.isort]
124-
profile = "black"
125-
line_length = 99
126-
extend_skip = ["_version.py", "externals"]
122+
[tool.ruff.lint]
123+
select = ["E4", "E7", "E9", "F", "I", "Q"]
124+
125+
[tool.ruff.format]
126+
quote-style = single
127127

128128
[tool.mypy]
129129
python_version = "3.11"

0 commit comments

Comments
 (0)
0