Bump flake8-pyi to 24.4.0 (#11745)

This commit is contained in:
Alex Waygood
2024-04-11 13:05:46 +01:00
committed by GitHub
parent c6e0466254
commit 6883b80f52
4 changed files with 6 additions and 7 deletions

View File

@@ -8,15 +8,14 @@ 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
stubs/*_pb2.pyi: Y021, Y023, Y026, Y053
# TODO: Remove bare "Incomplete"s from stubs (Y065)
stubs/*.pyi: Y065
exclude = .venv*,.git
noqa_require_code = true

View File

@@ -43,7 +43,7 @@ repos:
- id: flake8
additional_dependencies:
- "flake8-noqa==1.4.0" # must match requirements-tests.txt
- "flake8-pyi==24.3.1" # must match requirements-tests.txt
- "flake8-pyi==24.4.0" # must match requirements-tests.txt
types: [file]
types_or: [python, pyi]
- repo: meta

View File

@@ -4,7 +4,7 @@
black==24.3.0 # must match .pre-commit-config.yaml
flake8==7.0.0 # must match .pre-commit-config.yaml
flake8-noqa==1.4.0 # must match .pre-commit-config.yaml
flake8-pyi==24.3.1 # must match .pre-commit-config.yaml
flake8-pyi==24.4.0 # must match .pre-commit-config.yaml
mypy==1.9.0
pre-commit-hooks==4.5.0 # must match .pre-commit-config.yaml
pyright==1.1.358

View File

@@ -34,7 +34,7 @@ class TrackableResource(CapturableResource):
class VariablePolicy(Enum):
EXPAND_DISTRIBUTED_VARIABLES = "expand_distributed_variables"
NONE = None # noqa: Y026
NONE = None
SAVE_VARIABLE_DEVICES = "save_variable_devices"
def read_fingerprint(export_dir: str) -> Fingerprint: ...