Skip to content

Commit b9d287c

Browse files
committed
build: 🔨 add justfile recipe to lint commits
1 parent dfbfb20 commit b9d287c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

justfile

+6-4
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ build-website:
6060
export QUARTO_PYTHON=.venv/bin/python3
6161
poetry run quarto render --execute
6262

63-
# Add files for a new function (function file and test file)
64-
add-function app part name:
65-
touch ./{{app}}/{{part}}/{{name}}.py
66-
touch ./tests/{{part}}/test_{{name}}.py
63+
check-commit:
64+
#!/bin/zsh
65+
if [[ $(git rev-parse --abbrev-ref HEAD) != "main" ]]
66+
then
67+
poetry run cz check --rev-range main..HEAD
68+
fi

0 commit comments

Comments
 (0)