Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 57f3dca

Browse files
authored
Bump flake8-pyi to 24.4.1 (#11791)
1 parent ade9412 commit 57f3dca

6 files changed

Lines changed: 2 additions & 66 deletions

File tree

.github/workflows/tests.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,6 @@ jobs:
3434
- run: uv pip install -r requirements-tests.txt --system
3535
- run: python ./tests/check_typeshed_structure.py
3636

37-
new-syntax:
38-
name: Ensure new syntax usage
39-
runs-on: ubuntu-latest
40-
steps:
41-
- uses: actions/checkout@v4
42-
- uses: actions/setup-python@v5
43-
with:
44-
python-version: "3.12"
45-
- run: ./tests/check_new_syntax.py
46-
4737
pytype:
4838
name: Run pytype against the stubs
4939
runs-on: ubuntu-latest

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ repos:
3737
- id: flake8
3838
additional_dependencies:
3939
- "flake8-noqa==1.4.0" # must match requirements-tests.txt
40-
- "flake8-pyi==24.4.0" # must match requirements-tests.txt
40+
- "flake8-pyi==24.4.1" # must match requirements-tests.txt
4141
types: [file]
4242
types_or: [python, pyi]
4343
- repo: meta

requirements-tests.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
black==24.3.0 # must match .pre-commit-config.yaml
55
flake8==7.0.0 # must match .pre-commit-config.yaml
66
flake8-noqa==1.4.0 # must match .pre-commit-config.yaml
7-
flake8-pyi==24.4.0 # must match .pre-commit-config.yaml
7+
flake8-pyi==24.4.1 # must match .pre-commit-config.yaml
88
mypy==1.9.0
99
pre-commit-hooks==4.5.0 # must match .pre-commit-config.yaml
1010
pyright==1.1.358

scripts/runtests.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ def main() -> None:
8686

8787
print("\nRunning check_typeshed_structure.py...")
8888
check_structure_result = subprocess.run([sys.executable, "tests/check_typeshed_structure.py"])
89-
print("\nRunning check_new_syntax.py...")
90-
check_new_syntax_result = subprocess.run([sys.executable, "tests/check_new_syntax.py"])
9189

9290
strict_params = _get_strict_params(path)
9391
print(f"\nRunning Pyright ({'stricter' if strict_params else 'base' } configs) for Python {python_version}...")
@@ -180,7 +178,6 @@ def main() -> None:
180178
[
181179
pre_commit_result.returncode,
182180
check_structure_result.returncode,
183-
check_new_syntax_result.returncode,
184181
pyright_returncode,
185182
mypy_result.returncode,
186183
getattr(stubtest_result, "returncode", 0),
@@ -207,7 +204,6 @@ def main() -> None:
207204
that the autofixes did sensible things."""
208205
)
209206
print("Check structure:", _SUCCESS if check_structure_result.returncode == 0 else _FAILED)
210-
print("Check new syntax:", _SUCCESS if check_new_syntax_result.returncode == 0 else _FAILED)
211207
if pyright_skipped:
212208
print("Pyright:", _SKIPPED)
213209
else:

tests/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ tests the stubs with [mypy](https://github.com/python/mypy/)
99
stubs, guarding against accidental regressions.
1010
- `tests/check_typeshed_structure.py` checks that typeshed's directory
1111
structure and metadata files are correct.
12-
- `tests/check_new_syntax.py` contains linter-like checks to ensure
13-
that certain code conventions are followed.
1412
- `tests/stubtest_stdlib.py` checks standard library stubs against the
1513
objects at runtime.
1614
- `tests/stubtest_third_party.py` checks third-party stubs against the

tests/check_new_syntax.py

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)