diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-06-24 12:20:55 -0500 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-06-24 15:43:55 -0500 |
commit | e0d363aad8e2204fe8ca4b6937ef2ad74a7b293b (patch) | |
tree | c8300e4864984e9157ba8502ee019c4cd7226128 /tools | |
parent | c414c2b37d0563456a2fe194b16f8c4aa442e865 (diff) | |
download | redot-cpp-e0d363aad8e2204fe8ca4b6937ef2ad74a7b293b.tar.gz |
Integrate `.pre-commit-config.yaml`
Diffstat (limited to 'tools')
-rw-r--r-- | tools/android.py | 4 | ||||
-rw-r--r-- | tools/common_compiler_flags.py | 1 | ||||
-rw-r--r-- | tools/godotcpp.py | 13 | ||||
-rw-r--r-- | tools/ios.py | 5 | ||||
-rw-r--r-- | tools/linux.py | 2 | ||||
-rw-r--r-- | tools/macos.py | 1 | ||||
-rw-r--r-- | tools/my_spawn.py | 1 | ||||
-rw-r--r-- | tools/web.py | 1 | ||||
-rw-r--r-- | tools/windows.py | 8 |
9 files changed, 18 insertions, 18 deletions
diff --git a/tools/android.py b/tools/android.py index 8454d47..0222121 100644 --- a/tools/android.py +++ b/tools/android.py @@ -1,8 +1,8 @@ import os import sys -import my_spawn + import common_compiler_flags -from SCons.Script import ARGUMENTS +import my_spawn def options(opts): diff --git a/tools/common_compiler_flags.py b/tools/common_compiler_flags.py index 838dbcf..5bade45 100644 --- a/tools/common_compiler_flags.py +++ b/tools/common_compiler_flags.py @@ -1,6 +1,5 @@ import os import subprocess -import sys def using_clang(env): diff --git a/tools/godotcpp.py b/tools/godotcpp.py index c4165c9..9ceac02 100644 --- a/tools/godotcpp.py +++ b/tools/godotcpp.py @@ -1,15 +1,16 @@ -import os, sys, platform +import os +import platform +import sys -from SCons.Variables import EnumVariable, PathVariable, BoolVariable -from SCons.Variables.BoolVariable import _text2bool -from SCons.Tool import Tool from SCons.Action import Action from SCons.Builder import Builder from SCons.Errors import UserError from SCons.Script import ARGUMENTS +from SCons.Tool import Tool +from SCons.Variables import BoolVariable, EnumVariable, PathVariable +from SCons.Variables.BoolVariable import _text2bool - -from binding_generator import scons_generate_bindings, scons_emit_files +from binding_generator import scons_emit_files, scons_generate_bindings def add_sources(sources, dir, extension): diff --git a/tools/ios.py b/tools/ios.py index 7571868..7240a97 100644 --- a/tools/ios.py +++ b/tools/ios.py @@ -1,8 +1,9 @@ import os -import sys import subprocess +import sys + import common_compiler_flags -from SCons.Variables import * +from SCons.Variables import BoolVariable if sys.version_info < (3,): diff --git a/tools/linux.py b/tools/linux.py index 1783e06..0b26878 100644 --- a/tools/linux.py +++ b/tools/linux.py @@ -1,6 +1,6 @@ import common_compiler_flags -from SCons.Variables import * from SCons.Tool import clang, clangxx +from SCons.Variables import BoolVariable def options(opts): diff --git a/tools/macos.py b/tools/macos.py index 883d21e..7418150 100644 --- a/tools/macos.py +++ b/tools/macos.py @@ -1,5 +1,6 @@ import os import sys + import common_compiler_flags diff --git a/tools/my_spawn.py b/tools/my_spawn.py index 0b21419..45412b6 100644 --- a/tools/my_spawn.py +++ b/tools/my_spawn.py @@ -32,7 +32,6 @@ def configure(env): return rv def mySpawn(sh, escape, cmd, args, env): - newargs = " ".join(args[1:]) cmdline = cmd + " " + newargs diff --git a/tools/web.py b/tools/web.py index c6e57b8..dea42b2 100644 --- a/tools/web.py +++ b/tools/web.py @@ -1,4 +1,3 @@ -import os import common_compiler_flags from SCons.Util import WhereIs diff --git a/tools/windows.py b/tools/windows.py index a263241..eb47b9d 100644 --- a/tools/windows.py +++ b/tools/windows.py @@ -1,8 +1,9 @@ import sys -import my_spawn + import common_compiler_flags -from SCons.Tool import msvc, mingw -from SCons.Variables import * +import my_spawn +from SCons.Tool import mingw, msvc +from SCons.Variables import BoolVariable def options(opts): @@ -16,7 +17,6 @@ def exists(env): def generate(env): - base = None if not env["use_mingw"] and msvc.exists(env): if env["arch"] == "x86_64": env["TARGET_ARCH"] = "amd64" |