Update Ruff and enable F821 in stubs (#11771)

This commit is contained in:
Avasam
2024-04-17 12:50:58 -04:00
committed by GitHub
parent 6e16a4ce23
commit 12b9e48324
6 changed files with 13 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
[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
# F821: Typeshed is a testing ground for flake8-pyi, which monkeypatches F821
select = NQA, Y, F821
# Ignore rules normally excluded by default
extend-ignore = Y090