mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2026-09-03 05:10:16 +03:00
# Description of Changes The `pre-commit` commands in this repo are inconsistent with the rest of the dev workflow, as they are impossible to run through Task and they can cause CI to fail with no way for a developer to run the `pre-commit` scripts after they've failed. This PR adds `task pre-commit` (and `task pre-commit:fix`) and then hooks up the existing `pre-commit` hooks and CI to call the Task rule, so if developers are using pre-commit hooks then they should still work, but they're also runnable without using pre-commit at all. I think it'd be worth reviewing what we're actually running at pre-commit in the future because I'm not entirely convinced by all of the scripts that we are running, but this should at least make what we have properly enforced and usable by all devs.
17 lines
493 B
TOML
17 lines
493 B
TOML
# Pinned Python lint/format tools for `task pre-commit`. uv.lock locks these
|
|
# plus their transitive dependencies by hash, so `uv run --project
|
|
# scripts/pre-commit --locked <tool>` is reproducible and integrity-checked.
|
|
# This is not a packaged project - it only exists to lock the tooling.
|
|
[project]
|
|
name = "stirling-precommit-tools"
|
|
version = "0"
|
|
requires-python = ">=3.11"
|
|
dependencies = [
|
|
"ruff==0.15.14",
|
|
"codespell==2.4.2",
|
|
"toml-sort==0.24.4",
|
|
]
|
|
|
|
[tool.uv]
|
|
package = false
|