mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-06 20:24:31 +08:00
print typechecking errors to stderr
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
if not os.path.exists('./django-sources'):
|
if not os.path.exists('./django-sources'):
|
||||||
git clone -b stable/2.1.x https://github.com/django/django.git django-sources
|
git clone -b stable/2.1.x https://github.com/django/django.git django-sources
|
||||||
|
|
||||||
@@ -34,7 +36,7 @@ def check_file_in_the_current_directory(directory, fname):
|
|||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
if line:
|
if line:
|
||||||
print(line)
|
print(line, file=sys.stderr)
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
def parse_ls_output_into_fnames(output):
|
def parse_ls_output_into_fnames(output):
|
||||||
@@ -57,4 +59,5 @@ for tests_dir in all_tests_dirs:
|
|||||||
ls_output = $(ls -lhv --color=auto -F --group-directories-first $ABS_DIR)
|
ls_output = $(ls -lhv --color=auto -F --group-directories-first $ABS_DIR)
|
||||||
for fname in parse_ls_output_into_fnames(ls_output):
|
for fname in parse_ls_output_into_fnames(ls_output):
|
||||||
path_to_check = os.path.join(abs_dir, fname)
|
path_to_check = os.path.join(abs_dir, fname)
|
||||||
check_file_in_the_current_directory(abs_dir, fname)
|
check_file_in_the_current_directory(abs_dir, fname)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user