mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 20:01:29 +08:00
Update most test/lint dependencies (#11683)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
5
.flake8
5
.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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user