11target-version = " py310"
2- line-length = 110
2+ line-length = 120
33exclude = [
44 " .git," ,
55 " __pycache__" ,
@@ -8,16 +8,53 @@ exclude = [
88]
99
1010[lint ]
11- select = [" E" , " F" , " W" , " UP" , " PT" ]
11+ select = [
12+ " E" ,
13+ " F" ,
14+ " W" ,
15+ " N" ,
16+ " UP" ,
17+ " BLE" ,
18+ " A" ,
19+ " C4" ,
20+ " INP" ,
21+ " PIE" ,
22+ " T20" ,
23+ " PT" ,
24+ " RET" ,
25+ " TID" ,
26+ " PTH" ,
27+ " PD" ,
28+ " PLC" ,
29+ " PLE" ,
30+ " FLY" ,
31+ " NPY" ,
32+ " PERF" ,
33+ " RUF" ,
34+ ]
1235extend-ignore = [
13- # pycodestyle (E, W)
14- " E501" , # LineTooLong # TODO! fix
36+ " E501" , # ignore line length will use a formatter instead
37+ " E712" ,
38+ " E721" ,
39+ # flake8-pie
40+ " PIE808" , # Disallow passing 0 as the first argument to range
41+ # upgrades
42+ " UP038" , # Use | in isinstance - not compatible with models and is slower
43+ # numpy
44+ " NPY002" , # TODO: migrate from np.random.rand to np.random.Generator
1545 # pytest (PT)
1646 " PT001" , # Always use pytest.fixture()
1747 " PT004" , # Fixtures which don't return anything should have leading _
18- " PT007 " , # Parametrize should be lists of tuples # TODO! fix
19- " PT011 " , # Too broad exception assert # TODO! fix
48+ " PT011 " , # except(ValueRaises) is too broad
49+ " PT012 " , # TODO: temporary override for test_global_coords::test_overwrite
2050 " PT023" , # Always use () on pytest decorators
51+ # flake8-use-pathlib
52+ " PTH123" , # open() should be replaced by Path.open()
53+ # Ruff
54+ " RUF003" , # Ignore ambiguous quote marks, doesn't allow ' in comments
55+ " RUF012" , # Mutable class attributes should be annotated with `typing.ClassVar`
56+ " RUF013" , # PEP 484 prohibits implicit `Optional`
57+ " RUF015" , # Prefer `next(iter(...))` over single element slice
2158]
2259
2360[lint .per-file-ignores ]
0 commit comments