Skip to content

Commit ac840bd

Browse files
committed
🔧 Hatch: use pre-commit for check script
Instead of running `hatch fmt`, we use the pre-commit setup in the copied template package to check if the template contents are properly linted and formatted. This makes the check effective no matter what pre-commit hooks we decide to use for the template.
1 parent 3a3ee25 commit ac840bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ scripts.install = [
1313
]
1414
scripts.check = [
1515
"copier copy --vcs-ref=HEAD . .tmp/py-package -f",
16-
"cd .tmp/py-package && hatch fmt -l --check",
16+
"cd .tmp/py-package && hatch run precommit:run -av",
1717
]
1818
scripts.clean = [
1919
"ruff clean",

0 commit comments

Comments
 (0)