mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-24 03:51:52 +08:00
Upgrade flake8-pyi to 22.4.0, enable Y026 in .flake8 config (#7650)
This commit is contained in:
7
.flake8
7
.flake8
@@ -18,7 +18,6 @@
|
||||
# F405 defined from star imports
|
||||
|
||||
# Rules that we'd like to enable in the future:
|
||||
# Y026 Use typing_extensions.TypeAlias for type aliases (blocked by #4913)
|
||||
# Y027 Disallow importing typing.ContextManager, typing.OrderedDict &
|
||||
# typing_extensions.OrderedDict (cannot be globally enabled while typeshed
|
||||
# still contains stubs supporting Python 2).
|
||||
@@ -32,12 +31,12 @@
|
||||
[flake8]
|
||||
per-file-ignores =
|
||||
*.py: E203, E501
|
||||
*.pyi: E301, E302, E305, E501, E701, E741, F401, F403, F405, F822, Y026, Y037
|
||||
*.pyi: E301, E302, E305, E501, E701, E741, 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
|
||||
# F811 redefinition of unused '...'
|
||||
stubs/*.pyi: E301, E302, E305, E501, E701, E741, F401, F403, F405, F822, Y026, Y027, Y037
|
||||
stdlib/typing.pyi: E301, E302, E305, E501, E701, E741, F401, F403, F405, F811, F822, Y026, Y034, Y037
|
||||
stubs/*.pyi: E301, E302, E305, E501, E701, E741, F401, F403, F405, F822, Y027, Y037
|
||||
stdlib/typing.pyi: E301, E302, E305, E501, E701, E741, F401, F403, F405, F811, F822, Y034, Y037
|
||||
|
||||
exclude = .venv*,.git,*_pb2.pyi,stdlib/@python2/*
|
||||
|
||||
Reference in New Issue
Block a user