add python3.6 tests typechecking

This commit is contained in:
Maxim Kurnikov
2019-07-25 19:56:37 +03:00
parent 62dac1d468
commit bc42cc2fa1
2 changed files with 6 additions and 2 deletions

View File

@@ -10,10 +10,14 @@ jobs:
set -e
pytest
- name: Typecheck Django test suite
- name: Typecheck Django test suite with python 3.7
python: 3.7
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
python: 3.7
script: 'black --check --line-length=120 django-stubs/'

View File

@@ -3,7 +3,7 @@ import shutil
import subprocess
import sys
from pathlib import Path
from re import Pattern
from typing import Pattern
from scripts.enabled_test_modules import IGNORED_ERRORS, IGNORED_MODULES