mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-08 02:40:58 +08:00
Find unused stubtest whitelist entries (#4157)
* Find unused stubtest whitelist entries This is currently a GitHub workflow that runs daily and lists all unused whitelist entries found by running stubtest against current Python versions on Linux and Windows. The workflow run will succeed if there are no such entries, and fail otherwise. In a second step, this should collate the output of the various runs and create a PR to remove the entries. In that case, the workflow should probably only run weekly or even monthly to keep the noise down. Cf. #3728
This commit is contained in:
16
.travis.yml
16
.travis.yml
@@ -42,44 +42,44 @@ jobs:
|
||||
- name: "stubtest py38"
|
||||
python: 3.8
|
||||
install: pip install -U git+git://github.com/python/mypy@b3d43984
|
||||
script: ./tests/stubtest_test.py
|
||||
script: ./tests/stubtest_test.py --ignore-unused-whitelist
|
||||
- name: "stubtest py37"
|
||||
python: 3.7
|
||||
install: pip install -U git+git://github.com/python/mypy@b3d43984
|
||||
script: ./tests/stubtest_test.py
|
||||
script: ./tests/stubtest_test.py --ignore-unused-whitelist
|
||||
- name: "stubtest py36"
|
||||
python: 3.6
|
||||
install: pip install -U git+git://github.com/python/mypy@b3d43984
|
||||
script: ./tests/stubtest_test.py
|
||||
script: ./tests/stubtest_test.py --ignore-unused-whitelist
|
||||
- name: "stubtest py35"
|
||||
python: 3.5
|
||||
install: pip install -U git+git://github.com/python/mypy@b3d43984
|
||||
script: ./tests/stubtest_test.py
|
||||
script: ./tests/stubtest_test.py --ignore-unused-whitelist
|
||||
- name: "stubtest py38 (Windows)"
|
||||
<<: *test_windows
|
||||
env:
|
||||
<<: *env_windows
|
||||
PYTHON_VERSION: 3.8.3
|
||||
install: pip install -U git+git://github.com/python/mypy@b3d43984
|
||||
script: python ./tests/stubtest_test.py
|
||||
script: python ./tests/stubtest_test.py --ignore-unused-whitelist
|
||||
- name: "stubtest py37 (Windows)"
|
||||
<<: *test_windows
|
||||
env:
|
||||
<<: *env_windows
|
||||
PYTHON_VERSION: 3.7.7
|
||||
install: pip install -U git+git://github.com/python/mypy@b3d43984
|
||||
script: python ./tests/stubtest_test.py
|
||||
script: python ./tests/stubtest_test.py --ignore-unused-whitelist
|
||||
- name: "stubtest py36 (Windows)"
|
||||
<<: *test_windows
|
||||
env:
|
||||
<<: *env_windows
|
||||
PYTHON_VERSION: 3.6.8
|
||||
install: pip install -U git+git://github.com/python/mypy@b3d43984
|
||||
script: python ./tests/stubtest_test.py
|
||||
script: python ./tests/stubtest_test.py --ignore-unused-whitelist
|
||||
- name: "stubtest py35 (Windows)"
|
||||
<<: *test_windows
|
||||
env:
|
||||
<<: *env_windows
|
||||
PYTHON_VERSION: 3.5.4
|
||||
install: pip install -U git+git://github.com/python/mypy@b3d43984
|
||||
script: python ./tests/stubtest_test.py
|
||||
script: python ./tests/stubtest_test.py --ignore-unused-whitelist
|
||||
|
||||
Reference in New Issue
Block a user