mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-16 11:34:56 +08:00
Add aiohttp and tomlkit to requirements-tests.txt (#8605)
This commit is contained in:
2
.github/workflows/stubsabot.yml
vendored
2
.github/workflows/stubsabot.yml
vendored
@@ -25,7 +25,7 @@ jobs:
|
||||
git config --global user.name stubsabot
|
||||
git config --global user.email '<>'
|
||||
- name: Install dependencies
|
||||
run: pip install aiohttp packaging termcolor tomli tomlkit
|
||||
run: pip install -r requiremements-tests.txt
|
||||
- name: Run stubsabot
|
||||
run: GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} python scripts/stubsabot.py --action-level everything
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
aiohttp==3.8.1
|
||||
mypy==0.971
|
||||
pytype==2022.8.17; platform_system != "Windows"
|
||||
# must match .pre-commit-config.yaml
|
||||
@@ -9,6 +10,7 @@ flake8-pyi==22.8.1
|
||||
# must match .pre-commit-config.yaml
|
||||
isort==5.10.1
|
||||
tomli==1.2.2
|
||||
tomlkit==0.11.4
|
||||
# must match .pre-commit-config.yaml
|
||||
pycln==2.1.1
|
||||
packaging==21.3
|
||||
|
||||
@@ -60,11 +60,8 @@ def run_mypy_as_subprocess(directory: str, platform: str, version: str) -> Retur
|
||||
"ignore-without-code",
|
||||
"--namespace-packages",
|
||||
]
|
||||
if directory == "tests":
|
||||
if platform == "win32":
|
||||
command.extend(["--exclude", "tests/pytype_test.py"])
|
||||
else:
|
||||
command.append("--ignore-missing-imports")
|
||||
if directory == "tests" and platform == "win32":
|
||||
command.extend(["--exclude", "tests/pytype_test.py"])
|
||||
result = subprocess.run(command, capture_output=True)
|
||||
stdout, stderr = result.stdout, result.stderr
|
||||
if stderr:
|
||||
|
||||
Reference in New Issue
Block a user