fix ci typecheck tests

This commit is contained in:
Maxim Kurnikov
2019-01-05 19:32:32 +03:00
parent dbf6538795
commit c4e8f09ed1
5 changed files with 5 additions and 7 deletions

1
scripts/.gitignore vendored
View File

@@ -1 +0,0 @@
django-sources/

View File

@@ -5,10 +5,9 @@ if not os.path.exists('./django-sources'):
git clone -b stable/2.1.x https://github.com/django/django.git django-sources
ignored_error_patterns = ["Need type annotation for"]
for line in $(mypy --config-file typecheck_tests.ini ./django-sources/tests/files).split('\n'):
for line in $(mypy --config-file ./scripts/mypy.ini ./django-sources/tests/files).split('\n'):
for pattern in ignored_error_patterns:
if pattern in line:
break
else:
print(line)
print(line)