diff --git a/.flake8 b/.flake8 index 87d3a985e..67fa99361 100644 --- a/.flake8 +++ b/.flake8 @@ -26,13 +26,11 @@ # into the typeshed codebase to unblock flake8-pyi PRs, meaning these comments # have "no matching violations" since the relevant flake8-pyi checks haven't # yet been released. -# Y041 Use "complex" instead of "float | complex" (see "The numeric tower" in PEP 484) -# TODO this check is somewhat broken, see https://github.com/PyCQA/flake8-pyi/issues/299 [flake8] per-file-ignores = *.py: E203, E301, E302, E305, E501 - *.pyi: B, E301, E302, E305, E501, E701, E741, NQA102, F401, F403, F405, F822, Y037, Y041 + *.pyi: B, E301, E302, E305, E501, E701, E741, NQA102, F401, F403, F405, F822, Y037 # Since typing.pyi defines "overload" this is not recognized by flake8 as typing.overload. # Unfortunately, flake8 does not allow to "noqa" just a specific error inside the file itself. # https://github.com/PyCQA/flake8/issues/1079 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f7ff41fea..709359487 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: additional_dependencies: - 'flake8-bugbear==22.10.27' # must match requirements-tests.txt - 'flake8-noqa==1.2.9' # must match requirements-tests.txt - - 'flake8-pyi==22.10.0' # must match requirements-tests.txt + - 'flake8-pyi==22.11.0' # must match requirements-tests.txt ci: autofix_commit_msg: '[pre-commit.ci] auto fixes from pre-commit.com hooks' diff --git a/requirements-tests.txt b/requirements-tests.txt index 1aff08721..871598858 100644 --- a/requirements-tests.txt +++ b/requirements-tests.txt @@ -3,14 +3,14 @@ black==22.10.0 # must match .pre-commit-config.yaml flake8==5.0.4 # must match .pre-commit-config.yaml flake8-bugbear==22.10.27 # must match .pre-commit-config.yaml flake8-noqa==1.2.9 # must match .pre-commit-config.yaml -flake8-pyi==22.10.0 # must match .pre-commit-config.yaml +flake8-pyi==22.11.0 # must match .pre-commit-config.yaml isort==5.10.1 # must match .pre-commit-config.yaml mypy==0.991 packaging==21.3 pathspec pycln==2.1.2 # must match .pre-commit-config.yaml pyyaml==6.0 -pytype==2022.11.10; platform_system != "Windows" and python_version < "3.11" +pytype==2022.11.18; platform_system != "Windows" and python_version < "3.11" termcolor>=2 tomli==2.0.1 tomlkit==0.11.6