mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Use stubtest 0.941 (#7490)
This commit is contained in:
6
.github/workflows/daily.yml
vendored
6
.github/workflows/daily.yml
vendored
@@ -35,11 +35,7 @@ jobs:
|
||||
- name: Update pip
|
||||
run: python -m pip install -U pip
|
||||
- name: Install dependencies
|
||||
# Use pre-release stubtest. Keep the following in sync:
|
||||
# - get_mypy_req in tests/stubtest_third_party.py
|
||||
# - stubtest-stdlib in .github/workflows/daily.yml
|
||||
# - stubtest-stdlib in .github/workflows/tests.yml
|
||||
run: pip install $(grep tomli== requirements-tests.txt) git+git://github.com/python/mypy@c7a81620bef7585cca6905861bb7ef34ec12da2f
|
||||
run: pip install $(grep tomli== requirements-tests.txt) $(grep mypy== requirements-tests.txt)
|
||||
- name: Run stubtest
|
||||
run: python tests/stubtest_stdlib.py
|
||||
|
||||
|
||||
6
.github/workflows/tests.yml
vendored
6
.github/workflows/tests.yml
vendored
@@ -110,11 +110,7 @@ jobs:
|
||||
- name: Update pip
|
||||
run: python -m pip install -U pip
|
||||
- name: Install dependencies
|
||||
# Use pre-release stubtest. Keep the following in sync:
|
||||
# - get_mypy_req in tests/stubtest_third_party.py
|
||||
# - stubtest-stdlib in .github/workflows/daily.yml
|
||||
# - stubtest-stdlib in .github/workflows/tests.yml
|
||||
run: pip install $(grep tomli== requirements-tests.txt) git+git://github.com/python/mypy@c7a81620bef7585cca6905861bb7ef34ec12da2f
|
||||
run: pip install $(grep tomli== requirements-tests.txt) $(grep mypy== requirements-tests.txt)
|
||||
- name: Run stubtest
|
||||
run: python tests/stubtest_stdlib.py
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
mypy==0.940
|
||||
mypy==0.941
|
||||
pytype==2022.2.23; platform_system != "Windows" and python_version < "3.10"
|
||||
# must match .pre-commit-config.yaml
|
||||
black==22.1.0
|
||||
|
||||
@@ -18,12 +18,6 @@ import tomli
|
||||
|
||||
@functools.lru_cache()
|
||||
def get_mypy_req():
|
||||
# Use pre-release stubtest. Keep the following in sync:
|
||||
# - get_mypy_req in tests/stubtest_third_party.py
|
||||
# - stubtest-stdlib in .github/workflows/daily.yml
|
||||
# - stubtest-stdlib in .github/workflows/tests.yml
|
||||
return "git+git://github.com/python/mypy@c7a81620bef7585cca6905861bb7ef34ec12da2f"
|
||||
|
||||
with open("requirements-tests.txt") as f:
|
||||
return next(line.strip() for line in f if "mypy" in line)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user