mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:22:33 +00:00
CI: Update ruff
& mypy
pre-commit hooks
• ruff: 0.6.6 → 0.7.3 • mypy: 1.11.2 → 1.13.0
This commit is contained in:
parent
0f5f3bc954
commit
f2136384e4
@ -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$
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user