mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-07 12:44:29 +08:00
fix ci typecheck tests
This commit is contained in:
1
scripts/.gitignore
vendored
1
scripts/.gitignore
vendored
@@ -1 +0,0 @@
|
||||
django-sources/
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user