mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-08 21:14:49 +08:00
fix typecheck script
This commit is contained in:
@@ -26,7 +26,6 @@ IGNORED_ERROR_PATTERNS = [
|
|||||||
]
|
]
|
||||||
TESTS_DIRS = [
|
TESTS_DIRS = [
|
||||||
'absolute_url_overrides',
|
'absolute_url_overrides',
|
||||||
# 'admin_*'
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
@@ -76,13 +75,9 @@ if __name__ == '__main__':
|
|||||||
repo = Repo.clone_from('https://github.com/django/django.git', repo_directory)
|
repo = Repo.clone_from('https://github.com/django/django.git', repo_directory)
|
||||||
else:
|
else:
|
||||||
repo = Repo(repo_directory)
|
repo = Repo(repo_directory)
|
||||||
repo.remote().pull(DJANGO_COMMIT_SHA)
|
repo.remotes['origin'].pull(DJANGO_BRANCH)
|
||||||
|
|
||||||
branch = repo.heads[DJANGO_BRANCH]
|
|
||||||
branch.checkout()
|
|
||||||
assert repo.active_branch.name == DJANGO_BRANCH
|
|
||||||
assert repo.active_branch.commit.hexsha == DJANGO_COMMIT_SHA
|
|
||||||
|
|
||||||
|
repo.git.checkout(DJANGO_COMMIT_SHA)
|
||||||
for dirname in TESTS_DIRS:
|
for dirname in TESTS_DIRS:
|
||||||
paths = glob.glob(str(tests_root / dirname))
|
paths = glob.glob(str(tests_root / dirname))
|
||||||
for path in paths:
|
for path in paths:
|
||||||
|
|||||||
Reference in New Issue
Block a user