File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,14 +32,15 @@ update-template:
3232
3333# Check the commit messages on the current branch that are not on the main branch
3434check-commits :
35- #!/ bin/ zsh
35+ #!/usr/ bin/env bash
3636 branch_name=$(git rev-parse --abbrev-ref HEAD)
3737 number_of_commits=$(git rev-list --count HEAD ^main)
3838 if [[ ${branch_name} != " main" && ${number_of_commits} -gt 0 ]]
3939 then
40+ # If issue happens, try `uv tool update-shell`
4041 uvx --from commitizen cz check --rev-range main..HEAD
4142 else
42- echo " On ` main` or current branch doesn't have any commits."
43+ echo " On ' main' or current branch doesn't have any commits."
4344 fi
4445
4546# Check for spelling errors in files
@@ -48,7 +49,7 @@ check-spelling:
4849
4950# Test and check that a Python package can be created from the template
5051test is_seedcase_project :
51- #!/ bin/ zsh
52+ #!/usr/ bin/env bash
5253 test_name=" test-python-package"
5354 test_dir=" $(pwd)/_temp/{{ is_seedcase_project }} /$test_name"
5455 template_dir=" $(pwd)"
@@ -103,7 +104,6 @@ test is_seedcase_project:
103104
104105# Clean up any leftover and temporary build files
105106cleanup :
106- #!/ bin/ zsh
107107 rm -rf _temp
108108
109109# Build the website using Quarto
Original file line number Diff line number Diff line change @@ -65,14 +65,15 @@ build-website:
6565
6666# Run checks on commits with non-main branches
6767check-commits:
68- #!/bin/zsh
68+ #!/usr/ bin/env bash
6969 branch_name=$(git rev-parse --abbrev-ref HEAD)
7070 number_of_commits=$(git rev-list --count HEAD ^main)
7171 if [[ ${branch_name} != "main" && ${number_of_commits} -gt 0 ]]
7272 then
73- uv run cz check --rev-range main..HEAD
73+ # If issue happens, try `uv tool update-shell`
74+ uvx --from commitizen cz check --rev-range main..HEAD
7475 else
75- echo "Can't either be on ${branch_name} or have more than ${number_of_commits} ."
76+ echo "On 'main' or current branch doesn't have any commits ."
7677 fi
7778
7879# Run basic security checks on the package
You can’t perform that action at this time.
0 commit comments