summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-11-12 09:27:34 -0600
committerThaddeus Crews <repiteo@outlook.com>2024-11-12 09:27:34 -0600
commitd4a5c339eaebe47ae17654cb9825b932abf9519a (patch)
tree11e6b338e04c0d8cfd153a679e3cfb6d57a7e696
parent0ad3181d1424551113625dc0d9fd93cbf9a4ae72 (diff)
parentf2136384e48cc64ed09b0a47fa629c0f21566f2c (diff)
downloadredot-engine-d4a5c339eaebe47ae17654cb9825b932abf9519a.tar.gz
Merge pull request #99080 from Repiteo/ci/bump-ruff-mypy
CI: Update `ruff` & `mypy` pre-commit hooks
-rw-r--r--.pre-commit-config.yaml4
-rw-r--r--platform/macos/SCsub4
2 files changed, 5 insertions, 3 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index d81c1043a7..2fa0493544 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -50,14 +50,14 @@ repos:
stages: [manual] # Not automatically triggered, invoked via `pre-commit run --hook-stage manual clang-tidy`
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.6.6
+ rev: v0.7.3
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.11.2
+ rev: v1.13.0
hooks:
- id: mypy
files: \.py$
diff --git a/platform/macos/SCsub b/platform/macos/SCsub
index 3924e79fb6..598444ae24 100644
--- a/platform/macos/SCsub
+++ b/platform/macos/SCsub
@@ -27,7 +27,9 @@ def generate_bundle(target, source, env):
target_bin = lipo(bin_dir + "/" + prefix, env.extra_suffix + env.module_version_string)
# Assemble .app bundle and update version info.
- app_dir = Dir("#bin/" + (prefix + env.extra_suffix + env.module_version_string).replace(".", "_") + ".app").abspath
+ app_dir = Dir(
+ "#bin/" + (prefix + env.extra_suffix + env.module_version_string).replace(".", "_") + ".app"
+ ).abspath
templ = Dir("#misc/dist/macos_tools.app").abspath
if os.path.exists(app_dir):
shutil.rmtree(app_dir)