diff --git a/.flake8 b/.flake8 index 5c527abb5..6e9aa5d97 100644 --- a/.flake8 +++ b/.flake8 @@ -8,12 +8,15 @@ 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 - *_pb2.pyi: Y021, Y023, Y026, Y053 + # Y065: bare "Incomplete"s used + *_pb2.pyi: Y021, Y023, Y026, Y053, Y065 exclude = .venv*,.git noqa_require_code = true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a23a2d575..c25f47b25 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ repos: args: [--fix=lf] - id: check-case-conflict - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.3.2 # must match requirements-tests.txt + rev: v0.3.4 # must match requirements-tests.txt hooks: - id: ruff name: Run ruff on stubs, tests and scripts @@ -38,7 +38,7 @@ repos: - id: flake8 additional_dependencies: - "flake8-noqa==1.4.0" # must match requirements-tests.txt - - "flake8-pyi==24.3.0" # must match requirements-tests.txt + - "flake8-pyi==24.3.1" # must match requirements-tests.txt types: [file] types_or: [python, pyi] - repo: meta diff --git a/requirements-tests.txt b/requirements-tests.txt index 8ea62412f..7e53afaca 100644 --- a/requirements-tests.txt +++ b/requirements-tests.txt @@ -4,12 +4,12 @@ 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.0 # must match .pre-commit-config.yaml +flake8-pyi==24.3.1 # 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.356 pytype==2024.3.19; platform_system != "Windows" and python_version < "3.12" -ruff==0.3.2 # must match .pre-commit-config.yaml +ruff==0.3.4 # must match .pre-commit-config.yaml # Libraries used by our various scripts. aiohttp==3.9.3 @@ -21,4 +21,4 @@ termcolor>=2.3 tomli==2.0.1 tomlkit==0.12.4 typing_extensions>=4.9.0rc1 -uv==0.1.22 # https://github.com/astral-sh/uv/issues/2450 +uv==0.1.26