@@ -39,59 +39,59 @@ lint.select = [
3939]
4040lint.external = [ " D" ]
4141lint.ignore = [
42- " D100 " , # https://docs.astral.sh/ruff/rules/ undocumented-public-module/
43- " D101 " , # https://docs.astral.sh/ruff/rules/ undocumented-public-class/
44- " D102 " , # https://docs.astral.sh/ruff/rules/ undocumented-public-method/
45- " D103 " , # https://docs.astral.sh/ruff/rules/ undocumented-public-function/
46- " D104 " , # https://docs.astral.sh/ruff/rules/ undocumented-public-package/
47- " D105 " , # https://docs.astral.sh/ruff/rules/ undocumented-magic-method/
48- " D106 " , # https://docs.astral.sh/ruff/rules/ undocumented-public-nested-class/
49- " D107 " , # https://docs.astral.sh/ruff/rules/ undocumented-public-init/
50- " D203 " , # https://docs.astral.sh/ruff/rules/ incorrect-blank-line-before-class/
51- " D213 " , # https://docs.astral.sh/ruff/rules/ multi-line-summary-second-line/
52- " D401 " , # https://docs.astral.sh/ruff/rules/ non-imperative-mood/
53- " B011 " , # See https://github.com/PyCQA/flake8-bugbear/issues/66
54- " B023 " ,
55- " B026 " ,
56- " E272 " ,
57- " E402 " ,
58- " E241 " ,
59- " E266 " ,
60- " E501 " ,
61- " E721 " ,
62- " E741 " ,
63- " E111 " , # Does not seem to honor `indent-width = 2` above
64- " E114 " , # Does not seem to honor `indent-width = 2` above
65- " E261 " ,
66- " PERF203 " ,
67- " PERF401 " ,
68- " PLC0415 " ,
69- " PLR0904 " ,
70- " PLR0916 " ,
71- " PLR0914 " ,
72- " PLR1702 " ,
73- " PLR1704 " ,
74- " PLR5501 " ,
75- " PLR6301 " ,
76- " PLW0602 " ,
77- " PLW0603 " ,
78- " PLW0717 " , # https://docs.astral.sh/ruff/rules/ too-many-statements-in-try-clause
79- " PLW1510 " ,
80- " PLW2901 " ,
81- " RUF012 " , # https://docs.astral.sh/ruff/rules/ mutable-class-default/
82- " RUF015 " , # https://docs.astral.sh/ruff/rules/ unnecessary-iterable-allocation-for-first-element/
83- " RUF027 " , # https://docs.astral.sh/ruff/rules/ missing-f-string-syntax/
84- " RUF039 " , # https://docs.astral.sh/ruff/rules/ unraw-re-pattern/
85- " RUF067 " , # https://docs.astral.sh/ruff/rules/ non-empty-init-module/
86- " UP030 " , # TODO
87- " UP031 " , # TODO
88- " UP032 " , # TODO
42+ " undocumented-public-module" ,
43+ " undocumented-public-class" ,
44+ " undocumented-public-method" ,
45+ " undocumented-public-function" ,
46+ " undocumented-public-package" ,
47+ " undocumented-magic-method" ,
48+ " undocumented-public-nested-class" ,
49+ " undocumented-public-init" ,
50+ " incorrect-blank-line-before-class" ,
51+ " multi-line-summary-second-line" ,
52+ " non-imperative-mood" ,
53+ " assert-false " , # See https://github.com/PyCQA/flake8-bugbear/issues/66
54+ " function-uses-loop-variable " ,
55+ " star-arg-unpacking-after-keyword-arg " ,
56+ " multiple-spaces-before-keyword " ,
57+ " module-import-not-at-top-of-file " ,
58+ " multiple-spaces-after-comma " ,
59+ " multiple-leading-hashes-for-block-comment " ,
60+ " line-too-long " ,
61+ " type-comparison " ,
62+ " ambiguous-variable-name " ,
63+ " indentation-with-invalid-multiple " , # Does not seem to honor `indent-width = 2` above
64+ " indentation-with-invalid-multiple-comment " , # Does not seem to honor `indent-width = 2` above
65+ " too-few-spaces-before-inline-comment " ,
66+ " try-except-in-loop " ,
67+ " manual-list-comprehension " ,
68+ " import-outside-top-level " ,
69+ " too-many-public-methods " ,
70+ " too-many-boolean-expressions " ,
71+ " too-many-locals " ,
72+ " too-many-nested-blocks " ,
73+ " redefined-argument-from-local " ,
74+ " collapsible-else-if " ,
75+ " no-self-use " ,
76+ " global-variable-not-assigned " ,
77+ " global-statement " ,
78+ " too-many-statements-in-try-clause" ,
79+ " subprocess-run-without-check " ,
80+ " redefined-loop-name " ,
81+ " mutable-class-default" ,
82+ " unnecessary-iterable-allocation-for-first-element" ,
83+ " missing-f-string-syntax" ,
84+ " unraw-re-pattern" ,
85+ " non-empty-init-module" ,
86+ " format-literals " , # TODO
87+ " printf-string-formatting " , # TODO
88+ " f-string " , # TODO
8989]
90- lint.per-file-ignores."tools/ports/*.py" = [ " ARG001 " , " ARG005 " ]
91- lint.per-file-ignores."test/other/ports/*.py" = [ " ARG001 " ]
92- lint.per-file-ignores."test/parallel_testsuite.py" = [ " ARG002 " ]
93- lint.per-file-ignores."test/test_benchmark.py" = [ " ARG002 " ]
94- lint.per-file-ignores."test/*.py" = [ " RUF005 " ]
90+ lint.per-file-ignores."tools/ports/*.py" = [ " unused-function-argument " , " unused-lambda-argument " ]
91+ lint.per-file-ignores."test/other/ports/*.py" = [ " unused-function-argument " ]
92+ lint.per-file-ignores."test/parallel_testsuite.py" = [ " unused-method-argument " ]
93+ lint.per-file-ignores."test/test_benchmark.py" = [ " unused-method-argument " ]
94+ lint.per-file-ignores."test/*.py" = [ " collection-literal-concatenation " ]
9595lint.mccabe.max-complexity = 51 # Recommended: 10
9696lint.pylint.allow-magic-value-types = [
9797 " bytes" ,
0 commit comments