Skip to content

Commit eefd30e

Browse files
ruff: use extend-select instead of select
Add a few rules in the process.
1 parent 8db7bbe commit eefd30e

File tree

1 file changed

+27
-9
lines changed

1 file changed

+27
-9
lines changed

pyproject.toml

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,22 +84,40 @@ nipy_diagnose = 'nipy.cli.diagnose:main'
8484
line-length = 88
8585

8686
[tool.ruff.lint]
87-
select = [
87+
extend-select = [
8888
'I',
8989
'UP',
9090
'C4',
91-
'E713',
9291
'PIE',
93-
'PGH003',
92+
'PGH',
9493
'PLR0402',
95-
'SIM101',
96-
'SIM109',
97-
'SIM110',
98-
'SIM118',
99-
'SIM2'
94+
'SIM',
95+
'PERF',
96+
'RUF'
10097
]
10198
ignore = [
102-
'UP031'
99+
'F401',
100+
'F402',
101+
'F403',
102+
'F821',
103+
'F841',
104+
'E402',
105+
'E712',
106+
'E721',
107+
'E722',
108+
'E731',
109+
'E741',
110+
'E742',
111+
'UP031',
112+
'SIM102',
113+
'SIM105',
114+
'SIM108',
115+
'SIM114',
116+
'SIM115',
117+
'SIM300',
118+
'RUF005',
119+
'RUF012',
120+
'RUF015'
103121
]
104122

105123
[tool.spin]

0 commit comments

Comments
 (0)