Skip to content

Commit e04647b

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

File tree

1 file changed

+26
-9
lines changed

1 file changed

+26
-9
lines changed

pyproject.toml

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,22 +84,39 @@ 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+
'RUF'
10096
]
10197
ignore = [
102-
'UP031'
98+
'F401',
99+
'F402',
100+
'F403',
101+
'F821',
102+
'F841',
103+
'E402',
104+
'E712',
105+
'E721',
106+
'E722',
107+
'E731',
108+
'E741',
109+
'E742',
110+
'UP031',
111+
'SIM102',
112+
'SIM105',
113+
'SIM108',
114+
'SIM114',
115+
'SIM115',
116+
'SIM300',
117+
'RUF005',
118+
'RUF012',
119+
'RUF015'
103120
]
104121

105122
[tool.spin]

0 commit comments

Comments
 (0)