mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2026-09-03 05:10:16 +03:00
Enable Ruff executable checks
Remove the Ruff EXE001 suppression from the Python engine configuration and pre-commit task so executable-file linting runs normally. This keeps the repo's Python checks consistent with the current lint rules and catches script-style issues during pre-commit.
This commit is contained in:
@@ -103,7 +103,7 @@ tasks:
|
||||
ruff:
|
||||
deps: [install]
|
||||
cmds:
|
||||
- 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}})
|
||||
- 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}})
|
||||
|
||||
ruff-format:
|
||||
deps: [install]
|
||||
|
||||
@@ -98,10 +98,6 @@ select = [
|
||||
"BLE", # flake8-blind-except: flags bare `except Exception`
|
||||
]
|
||||
|
||||
ignore = [
|
||||
"EXE001"
|
||||
]
|
||||
|
||||
[tool.ruff.lint.isort]
|
||||
known-first-party = ["stirling", "tests"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user