mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-07 20:54:29 +08:00
add python3.6 tests typechecking
This commit is contained in:
@@ -10,10 +10,14 @@ jobs:
|
|||||||
set -e
|
set -e
|
||||||
pytest
|
pytest
|
||||||
|
|
||||||
- name: Typecheck Django test suite
|
- name: Typecheck Django test suite with python 3.7
|
||||||
python: 3.7
|
python: 3.7
|
||||||
script: 'python ./scripts/typecheck_tests.py'
|
script: 'python ./scripts/typecheck_tests.py'
|
||||||
|
|
||||||
|
- name: Typecheck Django test suite with python 3.6
|
||||||
|
python: 3.6
|
||||||
|
script: 'python ./scripts/typecheck_tests.py'
|
||||||
|
|
||||||
- name: Lint with black
|
- name: Lint with black
|
||||||
python: 3.7
|
python: 3.7
|
||||||
script: 'black --check --line-length=120 django-stubs/'
|
script: 'black --check --line-length=120 django-stubs/'
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import shutil
|
|||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from re import Pattern
|
from typing import Pattern
|
||||||
|
|
||||||
from scripts.enabled_test_modules import IGNORED_ERRORS, IGNORED_MODULES
|
from scripts.enabled_test_modules import IGNORED_ERRORS, IGNORED_MODULES
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user