@@ -33,9 +33,9 @@ exclude = [
3333# are invoked via separate runs of ruff in pre-commit:
3434# see our .pre-commit-config.yaml file for details
3535exclude = [" **/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);
3737# tell ruff not to flag these as e.g. "unused noqa comments"
38- external = [" F821" , " NQA " , " Y" ]
38+ external = [" F821" , " Y" ]
3939select = [
4040 " ARG" , # flake8-unused-arguments
4141 " B" , # flake8-bugbear
@@ -67,8 +67,7 @@ select = [
6767 " FURB177" , # Prefer `Path.cwd()` over `Path().resolve()` for current-directory lookups
6868 " FURB187" , # Use of assignment of `reversed` on list `{name}`
6969 # 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
7271 " PYI009" , # Empty body should contain `...`, not pass
7372 " PYI010" , # Function body must contain only `...`
7473 " PYI012" , # Class bodies must not contain `pass`
@@ -82,7 +81,6 @@ select = [
8281 # "PYI026", Waiting for this mypy bug to be fixed: https://github.com/python/mypy/issues/16581
8382 " PYI030" , # Multiple literal members in a union. Use a single literal, e.g. `Literal[{}]`
8483 " PYI032" , # Prefer `object` to `Any` for the second parameter to `{method_name}`
85- " PYI034" , # `__new__` methods usually return self at runtime
8684 " PYI036" , # Star-args in `{method_name}` should be annotated with `object`
8785 " PYI044" , # `from __future__ import annotations` has no effect in stub files, since type checkers automatically treat stubs as having those semantics
8886 " PYI055" , # Multiple `type[T]` usages in a union. Combine them into one, e.g., `type[{union_str}]`.
0 commit comments