@@ -3,11 +3,33 @@ extend = "pyproject.toml"
3
3
4
4
[lint ]
5
5
extend-select = [
6
- " C901" ,
7
- " PERF401" ,
8
- " W" ,
6
+ # upstream
7
+
8
+ " C901" , # complex-structure
9
+ " I" , # isort
10
+ " PERF401" , # manual-list-comprehension
11
+ " W" , # pycodestyle Warning
12
+
13
+ # Ensure modern type annotation syntax and best practices
14
+ # Not including those covered by type-checkers or exclusive to Python 3.11+
15
+ " FA" , # flake8-future-annotations
16
+ " F404" , # late-future-import
17
+ " PYI" , # flake8-pyi
18
+ " UP006" , # non-pep585-annotation
19
+ " UP007" , # non-pep604-annotation
20
+ " UP010" , # unnecessary-future-import
21
+ " UP035" , # deprecated-import
22
+ " UP037" , # quoted-annotation
23
+ " UP043" , # unnecessary-default-type-args
24
+
25
+ # local
9
26
]
10
27
ignore = [
28
+ # upstream
29
+
30
+ # Typeshed rejects complex or non-literal defaults for maintenance and testing reasons,
31
+ # irrelevant to this project.
32
+ " PYI011" , # typed-argument-default-in-stub
11
33
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
12
34
" W191" ,
13
35
" E111" ,
@@ -23,6 +45,8 @@ ignore = [
23
45
" COM819" ,
24
46
" ISC001" ,
25
47
" ISC002" ,
48
+
49
+ # local
26
50
]
27
51
28
52
[format ]
0 commit comments