Ignore EXE001 in Python pre-commit

This updates the Ruff pre-commit checks for the engine to ignore the EXE001 executable-file lint warning. The change applies to both ruff check and ruff format so repository Python files are not blocked by file permission warnings during pre-commit validation.
This commit is contained in:
Ludy87
2026-08-19 00:45:48 +02:00
parent d649afb22f
commit 3d8b84a699
+2 -2
View File
@@ -103,12 +103,12 @@ tasks:
ruff:
deps: [install]
cmds:
- uv run --project engine --locked --group pre-commit ruff check --isolated --target-version=py313 --line-length=120 {{if .FIX}}--fix {{end}}$(git ls-files {{.PY_FILES}})
- uv run --project engine --locked --group pre-commit ruff check --isolated --ignore=EXE001 --target-version=py313 --line-length=120 {{if .FIX}}--fix {{end}}$(git ls-files {{.PY_FILES}})
ruff-format:
deps: [install]
cmds:
- uv run --project engine --locked --group pre-commit ruff format --isolated --target-version=py313 --line-length=120 {{if .FIX}}{{else}}--check {{end}}$(git ls-files {{.PY_FILES}})
- uv run --project engine --locked --group pre-commit ruff format --isolated --ignore=EXE001 --target-version=py313 --line-length=120 {{if .FIX}}{{else}}--check {{end}}$(git ls-files {{.PY_FILES}})
codespell:
deps: [install]