Ignore Y023 in generated *_pb2.pyi files (#11246)

This commit is contained in:
Alex Waygood
2024-01-05 18:01:54 +00:00
committed by GitHub
parent 53a8193d64
commit a7c5d8bc14

View File

@@ -36,8 +36,9 @@ per-file-ignores =
# https://github.com/PyCQA/flake8/issues/1079
# F811 redefinition of unused '...'
stdlib/typing.pyi: B, E701, E741, F401, F403, F405, F811
# Generated protobuf files include docstrings
*_pb2.pyi: B, E701, E741, F401, F403, F405, Y021, Y026, Y053, Y054
# Generated protobuf files include docstrings,
# and import some things from typing_extensions that could be imported from typing
*_pb2.pyi: B, E701, E741, F401, F403, F405, Y021, Y023, Y026, Y053, Y054
exclude = .venv*,.git
noqa_require_code = true