Skip to content

Commit dc4a166

Browse files
committed
chore(sync): 🔨 synced local 'justfile' with remote 'justfile'
1 parent 7ea6410 commit dc4a166

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

justfile

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@ run-all: install-deps format-python check-python test-python check-commits build
88
install-deps:
99
poetry install
1010

11-
# Generate SVG images from all PlantUML files
12-
generate-puml-all:
13-
docker run --rm -v $(pwd):/puml -w /puml ghcr.io/plantuml/plantuml:latest -tsvg "**/*.puml"
14-
15-
# Generate SVG image from specific PlantUML file
16-
generate-puml name:
17-
docker run --rm -v $(pwd):/puml -w /puml ghcr.io/plantuml/plantuml:latest -tsvg "**/{{name}}.puml"
18-
1911
# Run the Python tests
2012
test-python:
2113
poetry run pytest
@@ -39,7 +31,11 @@ build-website:
3931
# Run checks on commits with non-main branches
4032
check-commits:
4133
#!/bin/zsh
42-
if [[ $(git rev-parse --abbrev-ref HEAD) != "main" ]]
34+
branch_name=$(git rev-parse --abbrev-ref HEAD)
35+
number_of_commits=$(git rev-list --count HEAD ^$branch_name)
36+
if [[ ${branch_name} != "main" && ${number_of_commits} -gt 0 ]]
4337
then
4438
poetry run cz check --rev-range main..HEAD
39+
else
40+
echo "Not on main or haven't committed yet."
4541
fi

0 commit comments

Comments
 (0)