You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
ci: add Python static analysis check via mypy
This commit is contained in:
@@ -4,6 +4,11 @@ import subprocess
|
||||
import sys
|
||||
from platform_methods import detect_arch
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from SCons import Environment
|
||||
|
||||
# To match other platforms
|
||||
STACK_SIZE = 8388608
|
||||
|
||||
@@ -588,7 +593,7 @@ def configure_mingw(env):
|
||||
env.Append(BUILDERS={"RES": env.Builder(action=build_res_file, suffix=".o", src_suffix=".rc")})
|
||||
|
||||
|
||||
def configure(env):
|
||||
def configure(env: "Environment"):
|
||||
# Validate arch.
|
||||
supported_arches = ["x86_32", "x86_64", "arm32", "arm64"]
|
||||
if env["arch"] not in supported_arches:
|
||||
|
||||
Reference in New Issue
Block a user