Skip to content

Commit

Permalink
add python3.6 tests typechecking
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurnikov committed Jul 25, 2019
1 parent 62dac1d commit bc42cc2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/'
Expand Down
2 changes: 1 addition & 1 deletion scripts/typecheck_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
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

Expand Down

0 comments on commit bc42cc2

Please sign in to comment.