@@ -33,9 +33,9 @@ exclude = [
33
33
# are invoked via separate runs of ruff in pre-commit:
34
34
# see our .pre-commit-config.yaml file for details
35
35
exclude = [" **/test_cases/**/*.py" ]
36
- # We still use flake8-pyi and flake8-noqa to check these (see .flake8 config file);
36
+ # We still use flake8-pyi to check these (see .flake8 config file);
37
37
# tell ruff not to flag these as e.g. "unused noqa comments"
38
- external = [" F821" , " NQA " , " Y" ]
38
+ external = [" F821" , " Y" ]
39
39
select = [
40
40
" ARG" , # flake8-unused-arguments
41
41
" B" , # flake8-bugbear
@@ -67,8 +67,7 @@ select = [
67
67
" FURB177" , # Prefer `Path.cwd()` over `Path().resolve()` for current-directory lookups
68
68
" FURB187" , # Use of assignment of `reversed` on list `{name}`
69
69
# PYI: only enable rules that have autofixes and that we always want to fix (even manually),
70
- # avoids duplicate # noqa with flake8-pyi and flake8-noqa flagging `PYI` codes
71
- # See https://github.com/plinss/flake8-noqa/issues/22
70
+ # avoids duplicate # noqa with flake8-pyi
72
71
" PYI009" , # Empty body should contain `...`, not pass
73
72
" PYI010" , # Function body must contain only `...`
74
73
" PYI012" , # Class bodies must not contain `pass`
@@ -82,7 +81,6 @@ select = [
82
81
# "PYI026", Waiting for this mypy bug to be fixed: https://github.com/python/mypy/issues/16581
83
82
" PYI030" , # Multiple literal members in a union. Use a single literal, e.g. `Literal[{}]`
84
83
" PYI032" , # Prefer `object` to `Any` for the second parameter to `{method_name}`
85
- " PYI034" , # `__new__` methods usually return self at runtime
86
84
" PYI036" , # Star-args in `{method_name}` should be annotated with `object`
87
85
" PYI044" , # `from __future__ import annotations` has no effect in stub files, since type checkers automatically treat stubs as having those semantics
88
86
" PYI055" , # Multiple `type[T]` usages in a union. Combine them into one, e.g., `type[{union_str}]`.
0 commit comments