Skip to content

Commit

Permalink
Merge pull request godotengine#100870 from akien-mga/ci-fix-ruff-format
Browse files Browse the repository at this point in the history
Pre-commit: Fix applying ruff to SCsub files
  • Loading branch information
akien-mga authored Dec 28, 2024
2 parents 99a8ab7 + ff83fdc commit 75ce426
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,15 @@ 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.7.3
rev: v0.8.4
hooks:
- id: ruff
args: [--fix]
files: (\.py|SConstruct|SCsub)$
types_or: [text]
- id: ruff-format
files: (\.py|SConstruct|SCsub)$
types_or: [text]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
Expand Down Expand Up @@ -170,7 +174,7 @@ repos:
language: python
entry: python misc/scripts/header_guards.py
files: \.(h|hpp|hh|hxx)$
exclude: ^.*/(thread|platform_config|platform_gl)\.h$
exclude: ^.*/(dummy|thread|platform_config|platform_gl)\.h$

- id: file-format
name: file-format
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ python_version = "3.8"

[tool.ruff]
extend-exclude = ["thirdparty"]
extend-include = ["SConstruct", "SCsub"]
extend-include = ["*SConstruct", "*SCsub"]
line-length = 120
target-version = "py38"

Expand Down
2 changes: 1 addition & 1 deletion scene/resources/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ thirdparty_obj = []
thirdparty_dir = "#thirdparty/misc/"
thirdparty_sources = [
"mikktspace.c",
"qoa.c"
"qoa.c",
]

thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
Expand Down

0 comments on commit 75ce426

Please sign in to comment.