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

@@ -91,8 +91,6 @@ ignore = [
"E501", # Line too long
"E741", # ambiguous variable name
"F403", # `from . import *` used; unable to detect undefined names
# False positives in stubs
"F821", # Undefined name: https://github.com/astral-sh/ruff/issues/3011
# Stubs can sometimes re-export entire modules.
# Issues with using a star-imported name will be caught by type-checkers.
"F405", # may be undefined, or defined from star imports