mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
ci: add Python static analysis check via mypy
This commit is contained in:
parent
f47979f087
commit
c5bd2f9dce
20 changed files with 105 additions and 59 deletions
|
@ -4,6 +4,11 @@ import sys
|
|||
from methods import get_compiler_version, using_gcc
|
||||
from platform_methods import detect_arch
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from SCons import Environment
|
||||
|
||||
|
||||
def is_active():
|
||||
return True
|
||||
|
@ -55,7 +60,7 @@ def get_flags():
|
|||
]
|
||||
|
||||
|
||||
def configure(env):
|
||||
def configure(env: "Environment"):
|
||||
# Validate arch.
|
||||
supported_arches = ["x86_32", "x86_64", "arm32", "arm64", "rv64", "ppc32", "ppc64"]
|
||||
if env["arch"] not in supported_arches:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue