mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-27 21:32:12 +08:00
Fixes #4288. - Default imports to THIRD_PARTY, so in effect we merge the FIRST_PARTY and THIRD_PARTY stubs. This means import order is no longer affected by whether typing_extensions is installed locally. - Treat typing_extensions, _typeshed and some others as standard library modules. Note that isort master is very different from the latest release; we'll have to do something different if and when the next isort release comes out.
38 lines
1.4 KiB
YAML
38 lines
1.4 KiB
YAML
dist: bionic
|
|
language: python
|
|
python: 3.8
|
|
|
|
jobs:
|
|
include:
|
|
- name: "pytype"
|
|
python: 3.6
|
|
install: pip install -r requirements-tests-py3.txt
|
|
script: ./tests/pytype_test.py
|
|
- name: "mypy (typed-ast)"
|
|
python: 3.7
|
|
install: pip install -U git+git://github.com/python/mypy git+git://github.com/python/typed_ast
|
|
script: ./tests/mypy_test.py --platform=linux
|
|
- name: "mypy (ast)"
|
|
python: 3.8
|
|
install: pip install -U git+git://github.com/python/mypy
|
|
script: ./tests/mypy_test.py --platform=linux
|
|
- name: "mypy (Windows)"
|
|
install: pip install -U git+git://github.com/python/mypy
|
|
script: ./tests/mypy_test.py --platform=win32
|
|
- name: "mypy (Darwin)"
|
|
install: pip install -U git+git://github.com/python/mypy
|
|
script: ./tests/mypy_test.py --platform=darwin
|
|
- name: "mypy self test"
|
|
script: ./tests/mypy_selftest.py
|
|
- name: "check file consistency"
|
|
script: ./tests/check_consistent.py
|
|
- name: "flake8"
|
|
install: pip install $(grep flake8 requirements-tests-py3.txt)
|
|
script: flake8
|
|
- name: "black"
|
|
install: pip install $(grep black requirements-tests-py3.txt)
|
|
script: black --check --diff stdlib third_party
|
|
- name: "isort"
|
|
install: pip install $(grep isort requirements-tests-py3.txt)
|
|
script: isort --check-only --diff --recursive stdlib third_party
|