mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-21 18:42:07 +08:00
Bump various test dependencies (#10028)
This commit is contained in:
@@ -32,9 +32,9 @@ repos:
|
||||
hooks:
|
||||
- id: flake8
|
||||
additional_dependencies:
|
||||
- "flake8-bugbear==23.3.12" # must match requirements-tests.txt
|
||||
- "flake8-bugbear==23.3.23" # must match requirements-tests.txt
|
||||
- "flake8-noqa==1.3.1" # must match requirements-tests.txt
|
||||
- "flake8-pyi==23.3.1" # must match requirements-tests.txt
|
||||
- "flake8-pyi==23.4.0" # must match requirements-tests.txt
|
||||
types: [file]
|
||||
types_or: [python, pyi]
|
||||
|
||||
|
||||
@@ -62,4 +62,4 @@ all = true
|
||||
disable_all_dunder_policy = true
|
||||
|
||||
[tool.typeshed]
|
||||
pyright_version = "1.1.301"
|
||||
pyright_version = "1.1.302"
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
aiohttp==3.8.4
|
||||
black==23.3.0 # must match .pre-commit-config.yaml
|
||||
flake8==6.0.0; python_version >= "3.8" # must match .pre-commit-config.yaml
|
||||
flake8-bugbear==23.3.12; python_version >= "3.8" # must match .pre-commit-config.yaml
|
||||
flake8-bugbear==23.3.23; python_version >= "3.8" # must match .pre-commit-config.yaml
|
||||
flake8-noqa==1.3.1; python_version >= "3.8" # must match .pre-commit-config.yaml
|
||||
flake8-pyi==23.3.1; python_version >= "3.8" # must match .pre-commit-config.yaml
|
||||
flake8-pyi==23.4.0; python_version >= "3.8" # must match .pre-commit-config.yaml
|
||||
isort==5.12.0; python_version >= "3.8" # must match .pre-commit-config.yaml
|
||||
mypy==1.1.1
|
||||
mypy==1.2.0
|
||||
packaging==23.0
|
||||
pathspec>=0.10.3
|
||||
pre-commit-hooks==4.4.0 # must match .pre-commit-config.yaml
|
||||
pycln==2.1.3 # must match .pre-commit-config.yaml
|
||||
pytype==2023.3.13; platform_system != "Windows" and python_version < "3.11"
|
||||
pytype==2023.3.31; platform_system != "Windows" and python_version < "3.11"
|
||||
pyyaml==6.0
|
||||
termcolor>=2
|
||||
tomli==2.0.1
|
||||
tomlkit==0.11.6
|
||||
tomlkit==0.11.7
|
||||
types-pyyaml>=6.0.12.7
|
||||
types-setuptools>=67.5.0.0
|
||||
typing-extensions
|
||||
|
||||
@@ -623,9 +623,7 @@ async def suggest_typeshed_update(update: Update, session: aiohttp.ClientSession
|
||||
branch_name = f"{BRANCH_PREFIX}/{normalize(update.distribution)}"
|
||||
subprocess.check_call(["git", "checkout", "-B", branch_name, "origin/main"])
|
||||
with open(update.stub_path / "METADATA.toml", "rb") as f:
|
||||
# tomlkit.load has partially unknown IO type
|
||||
# https://github.com/sdispater/tomlkit/pull/272
|
||||
meta = tomlkit.load(f) # pyright: ignore[reportUnknownMemberType]
|
||||
meta = tomlkit.load(f)
|
||||
meta["version"] = update.new_version_spec
|
||||
with open(update.stub_path / "METADATA.toml", "w", encoding="UTF-8") as f:
|
||||
# tomlkit.dump has partially unknown IO type
|
||||
@@ -652,9 +650,7 @@ async def suggest_typeshed_obsolete(obsolete: Obsolete, session: aiohttp.ClientS
|
||||
branch_name = f"{BRANCH_PREFIX}/{normalize(obsolete.distribution)}"
|
||||
subprocess.check_call(["git", "checkout", "-B", branch_name, "origin/main"])
|
||||
with open(obsolete.stub_path / "METADATA.toml", "rb") as f:
|
||||
# tomlkit.load has partially unknown IO type
|
||||
# https://github.com/sdispater/tomlkit/pull/272
|
||||
meta = tomlkit.load(f) # pyright: ignore[reportUnknownMemberType]
|
||||
meta = tomlkit.load(f)
|
||||
obs_string = tomlkit.string(obsolete.obsolete_since_version)
|
||||
obs_string.comment(f"Released on {obsolete.obsolete_since_date.date().isoformat()}")
|
||||
meta["obsolete_since"] = obs_string
|
||||
|
||||
Reference in New Issue
Block a user