Skip to content

Commit 3066dd6

Browse files
committed
MNT: move ruff config to ruff.toml
1 parent 4f625af commit 3066dd6

2 files changed

Lines changed: 17 additions & 14 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,10 @@ repos:
2323

2424

2525
- repo: https://github.com/astral-sh/ruff-pre-commit
26-
rev: v0.6.9
26+
rev: v0.15.8
2727
hooks:
28-
- id: ruff
29-
args:
30-
- --quiet
31-
- --fix
32-
- --select
33-
- F # pyflakes
34-
- B # flake8-bugbear
35-
- I # isort
36-
- NPY # numpy-specific rules
37-
- --ignore
38-
- F405
39-
- --ignore
40-
- F403 # ignore import *
28+
- id: ruff-check
29+
args: [--quiet, --fix, --show-fixes]
4130

4231
- repo: https://github.com/neutrinoceros/inifix
4332
rev: v6.1.2

ruff.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
target-version = "py310"
2+
3+
[lint]
4+
select = [
5+
"F", # pyflakes
6+
"B", # flake8-bugbear
7+
"I", # isort
8+
"NPY", # numpy-specific rules
9+
]
10+
ignore = [
11+
# allow `import *`
12+
"F403", # undefined-local-with-import-star
13+
"F405", # undefined-local-with-import-star-usage
14+
]

0 commit comments

Comments
 (0)