run typecheckers with 3.8 for non-next envs (#33354)
This commit is contained in:
Родитель
df2a3b6cf1
Коммит
06783503f4
|
@ -55,7 +55,7 @@ if __name__ == "__main__":
|
|||
|
||||
pkg_details = ParsedSetup.from_path(package_dir)
|
||||
top_level_module = pkg_details.namespace.split(".")[0]
|
||||
python_version = "3.8" if args.next else "3.7"
|
||||
python_version = "3.8"
|
||||
commands = [
|
||||
sys.executable,
|
||||
"-m",
|
||||
|
|
|
@ -51,8 +51,6 @@ def get_pyright_config_path(args):
|
|||
else:
|
||||
config.update({"executionEnvironments": [{"root": args.target_package}]})
|
||||
|
||||
if args.next:
|
||||
config["pythonVersion"] = "3.8"
|
||||
# write the pyrightconfig.json to the tox environment and return the path so we can point to it
|
||||
pyright_env = "pyright" if not args.next else "next-pyright"
|
||||
pyright_config_path = os.path.join(args.target_package, ".tox", pyright_env, "tmp", "pyrightconfig.json")
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"reportTypeCommentUsage": true,
|
||||
"reportMissingImports": false,
|
||||
"pythonVersion": "3.7"
|
||||
"pythonVersion": "3.8"
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче