Skip to content

Commit 15f7429

Browse files
authored
Add aiohttp and tomlkit to requirements-tests.txt (#8605)
1 parent 3ab3711 commit 15f7429

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/workflows/stubsabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
git config --global user.name stubsabot
2626
git config --global user.email '<>'
2727
- name: Install dependencies
28-
run: pip install aiohttp packaging termcolor tomli tomlkit
28+
run: pip install -r requiremements-tests.txt
2929
- name: Run stubsabot
3030
run: GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} python scripts/stubsabot.py --action-level everything
3131

requirements-tests.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
aiohttp==3.8.1
12
mypy==0.971
23
pytype==2022.8.17; platform_system != "Windows"
34
# must match .pre-commit-config.yaml
@@ -9,6 +10,7 @@ flake8-pyi==22.8.1
910
# must match .pre-commit-config.yaml
1011
isort==5.10.1
1112
tomli==1.2.2
13+
tomlkit==0.11.4
1214
# must match .pre-commit-config.yaml
1315
pycln==2.1.1
1416
packaging==21.3

tests/typecheck_typeshed.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,8 @@ def run_mypy_as_subprocess(directory: str, platform: str, version: str) -> Retur
6060
"ignore-without-code",
6161
"--namespace-packages",
6262
]
63-
if directory == "tests":
64-
if platform == "win32":
65-
command.extend(["--exclude", "tests/pytype_test.py"])
66-
else:
67-
command.append("--ignore-missing-imports")
63+
if directory == "tests" and platform == "win32":
64+
command.extend(["--exclude", "tests/pytype_test.py"])
6865
result = subprocess.run(command, capture_output=True)
6966
stdout, stderr = result.stdout, result.stderr
7067
if stderr:

0 commit comments

Comments
 (0)