mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-13 07:21:56 +08:00
Update mypy to 0.981 (#1167)
* Update mypy to 0.981 * Fix plugin API * Fix scripts * Fix scripts * Fix plugin
This commit is contained in:
@@ -17,7 +17,7 @@ class ProgressPrinter(RemoteProgress):
|
||||
print(self._cur_line)
|
||||
|
||||
|
||||
def checkout_django_branch(django_version: str, commit_sha: Optional[str]) -> Repo:
|
||||
def checkout_django_branch(django_version: str, commit_sha: Optional[str]) -> None:
|
||||
branch = f"stable/{django_version}.x"
|
||||
if DJANGO_SOURCE_DIRECTORY.exists():
|
||||
shutil.rmtree(DJANGO_SOURCE_DIRECTORY)
|
||||
|
||||
@@ -68,7 +68,7 @@ if __name__ == "__main__":
|
||||
django_version = parser.parse_args().django_version
|
||||
subprocess.check_call([sys.executable, "-m", "pip", "install", f"Django=={django_version}.*"])
|
||||
commit_sha = DJANGO_COMMIT_REFS[django_version]
|
||||
repo = checkout_django_branch(django_version, commit_sha)
|
||||
checkout_django_branch(django_version, commit_sha)
|
||||
mypy_config_file = (PROJECT_DIRECTORY / "mypy.ini").absolute()
|
||||
mypy_cache_dir = PROJECT_DIRECTORY / ".mypy_cache"
|
||||
tests_root = DJANGO_SOURCE_DIRECTORY / "tests"
|
||||
|
||||
Reference in New Issue
Block a user