Files
typeshed/.flake8
renovate[bot] 8679e99468 Update most test/lint dependencies (#11683)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-04-01 01:46:58 +01:00

23 lines
794 B
INI

[flake8]
# NQA: Ruff won't warn about redundant `# noqa: Y`
# Y: Flake8 is only used to run flake8-pyi, everything else is in Ruff
# F821: Until https://github.com/astral-sh/ruff/issues/3011 is fixed, we need flake8-pyi's monkeypatching
select = NQA, Y, F821
# Ignore rules normally excluded by default
extend-ignore = Y090
per-file-ignores =
# We should only need to noqa Y and F821 codes in .pyi files
*.py: NQA
# TODO: Remove bare "Incomplete"s from stubs (Y065)
*.pyi: Y065
# Generated protobuf files:
# Y021: Include docstrings
# Y023: Alias typing as typing_extensions
# Y026: Have implicit type aliases
# Y053: have literals >50 characters long
# Y065: bare "Incomplete"s used
*_pb2.pyi: Y021, Y023, Y026, Y053, Y065
exclude = .venv*,.git
noqa_require_code = true