diff --git a/.gitignore b/.gitignore index bdfeb0e..5708877 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ out/ /test_sqlite.py /django .idea/ -.mypy_cache/ \ No newline at end of file +.mypy_cache/ +django-sources \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 4fd4fcc..d71f241 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,8 +21,7 @@ jobs: - name: "Typecheck Django test suite" python: 3.7 script: | - cd scripts - ./typecheck_django_tests.xsh + ./scripts/typecheck_django_tests.xsh before_install: | # Upgrade pip, setuptools, and wheel diff --git a/scripts/.gitignore b/scripts/.gitignore deleted file mode 100644 index 9d57190..0000000 --- a/scripts/.gitignore +++ /dev/null @@ -1 +0,0 @@ -django-sources/ diff --git a/scripts/typecheck_tests.ini b/scripts/mypy.ini similarity index 100% rename from scripts/typecheck_tests.ini rename to scripts/mypy.ini diff --git a/scripts/typecheck_django_tests.xsh b/scripts/typecheck_django_tests.xsh index 4797002..fac8fca 100755 --- a/scripts/typecheck_django_tests.xsh +++ b/scripts/typecheck_django_tests.xsh @@ -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) \ No newline at end of file