mirror of
https://github.com/rr-/pq-cli.git
synced 2026-11-12 22:40:36 -07:00
build: switch hooks to prek, check 50/72
prek replaces pre-commit as the hook runner and reads the same config. A new commit-msg hook in .prek/ rejects subjects over 50 characters, subjects without a module prefix, and body lines over 72 characters. Install the hooks with `uv run prek install`, and run them with `just lint`.
This commit is contained in:
6 files changed
+249
-32
No files matched your search
+1
-1
@@ -40,7 +40,7 @@ requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[dependency-groups]
|
||||
dev = ["pre-commit>=2.16.0", "pytest>=8.0"]
|
||||
dev = ["prek>=0.2", "pytest>=8.0"]
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 79
|
||||
|
||||
Reference in new issue
Block a user