Skip to content

Commit

Permalink
Update most test/lint dependencies (#11683)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Waygood <[email protected]>
  • Loading branch information
renovate[bot] and AlexWaygood authored Apr 1, 2024
1 parent d3c831c commit 8679e99
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions requirements-tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 8679e99

Please sign in to comment.