diff options
author | Jakub Marcowski <chubercikbattle@gmail.com> | 2024-05-21 15:14:59 +0200 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-05-21 18:02:29 -0500 |
commit | d9f8ef68df1df8cf88d484fc22995f55a9c3f9aa (patch) | |
tree | 69f67b54e7fbb15be77877d5de8d3906fc41b882 /platform/macos | |
parent | aaa4560729bf0161deb71789b47eba5623893845 (diff) | |
download | redot-engine-d9f8ef68df1df8cf88d484fc22995f55a9c3f9aa.tar.gz |
Update pre-commit hooks configuration to use `ruff` instead of `black`
Diffstat (limited to 'platform/macos')
-rw-r--r-- | platform/macos/SCsub | 10 | ||||
-rw-r--r-- | platform/macos/detect.py | 8 |
2 files changed, 10 insertions, 8 deletions
diff --git a/platform/macos/SCsub b/platform/macos/SCsub index 59ef4ee85c..eb8524826f 100644 --- a/platform/macos/SCsub +++ b/platform/macos/SCsub @@ -2,11 +2,13 @@ Import("env") -import os, json -from platform_methods import architectures, lipo, get_build_version -import platform_macos_builders -import subprocess +import os import shutil +import subprocess + +import platform_macos_builders + +from platform_methods import get_build_version, lipo def generate_bundle(target, source, env): diff --git a/platform/macos/detect.py b/platform/macos/detect.py index a5ef29e34f..f02f693dd9 100644 --- a/platform/macos/detect.py +++ b/platform/macos/detect.py @@ -1,10 +1,10 @@ import os import sys -from methods import print_error, detect_darwin_sdk_path, get_compiler_version, is_vanilla_clang -from platform_methods import detect_arch, detect_mvk - from typing import TYPE_CHECKING +from methods import detect_darwin_sdk_path, get_compiler_version, is_vanilla_clang, print_error +from platform_methods import detect_arch, detect_mvk + if TYPE_CHECKING: from SCons.Script.SConscript import SConsEnvironment @@ -107,7 +107,7 @@ def configure(env: "SConsEnvironment"): env.Append(CCFLAGS=["-fobjc-arc"]) - if not "osxcross" in env: # regular native build + if "osxcross" not in env: # regular native build if env["macports_clang"] != "no": mpprefix = os.environ.get("MACPORTS_PREFIX", "/opt/local") mpclangver = env["macports_clang"] |