Skip to content

Commit 5fe0c30

Browse files
feat(just): add pre-commit recipe
Signed-off-by: Cameron Smith <cameron.ray.smith@gmail.com>
1 parent ac35f8c commit 5fe0c30

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

justfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ ghsecrets repo="cameronraysmith/python-nix-template":
4949
@echo
5050
PAGER=cat gh secret list --repo={{ repo }}
5151

52+
# Run pre-commit hooks (see pre-commit.nix and note the yaml is git-ignored)
53+
[group('CI/CD')]
54+
pre-commit:
55+
pre-commit run --all-files
56+
5257
## Conda package
5358

5459
# Package commands (conda)
@@ -279,7 +284,7 @@ check-secrets:
279284
# Initialize new project from template
280285
[group('template')]
281286
template-init:
282-
echo "Use: nix --accept-flake-config run github:juspay/omnix -- init github:sciexp/python-nix-template -o ~/my-python-project"
287+
echo "Use: nix --accept-flake-config run github:juspay/omnix -- init github:cameronraysmith/python-nix-template -o new-python-project"
283288

284289
# Verify template functionality by creating and checking a test project
285290
[group('template')]

0 commit comments

Comments
 (0)