@@ -5,38 +5,27 @@ extend-select = [
55 " C901" , # complex-structure
66 " I" , # isort
77 " PERF401" , # manual-list-comprehension
8+ " UP" , # pyupgrade (Code modernization for strings, annotations, conditions, ...)
89
910 # Ensure modern type annotation syntax and best practices
1011 # Not including those covered by type-checkers or exclusive to Python 3.11+
1112 " FA" , # flake8-future-annotations
1213 " F404" , # late-future-import
1314 " PYI" , # flake8-pyi
14- " UP006" , # non-pep585-annotation
15- " UP007" , # non-pep604-annotation
16- " UP010" , # unnecessary-future-import
17- " UP035" , # deprecated-import
18- " UP037" , # quoted-annotation
19- " UP043" , # unnecessary-default-type-args
2015
2116 # local
2217]
2318ignore = [
2419 # upstream
20+ " UP015" , # redundant-open-modes, explicit is preferred
2521
2622 # Typeshed rejects complex or non-literal defaults for maintenance and testing reasons,
2723 # irrelevant to this project.
2824 " PYI011" , # typed-argument-default-in-stub
2925 # https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
3026 " W191" ,
31- " E111" ,
32- " E114" ,
33- " E117" ,
3427 " D206" ,
3528 " D300" ,
36- " Q000" ,
37- " Q001" ,
38- " Q002" ,
39- " Q003" ,
4029 " COM812" ,
4130 " COM819" ,
4231
0 commit comments