From 9dd8ead02ea5bde704c9ed9547fb83845934201b Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Tue, 15 Jul 2025 12:31:13 +0200 Subject: [PATCH 1/3] build: :hammer: remove Python specific recipes from justfile --- justfile | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/justfile b/justfile index f1842f8..dc496bb 100644 --- a/justfile +++ b/justfile @@ -2,7 +2,7 @@ just --list --unsorted # Run all build-related recipes in the justfile -run-all: install-deps format-python check-python check-spelling check-commits +run-all: check-spelling check-commits # Install the pre-commit hooks install-precommit: @@ -13,31 +13,18 @@ install-precommit: # Update versions of pre-commit hooks uvx pre-commit autoupdate -# Install Python package dependencies -install-deps: - uv sync --upgrade --dev --all-extras - -# Check Python code with the linter for any errors that need manual attention -check-python: - uv run ruff check . - -# Reformat Python code to match coding style and general structure -format-python: - uv run ruff check --fix . - uv run ruff format . - # Run checks on commits with non-main branches check-commits: #!/bin/zsh branch_name=$(git rev-parse --abbrev-ref HEAD) - number_of_commits=$(git rev-list --count HEAD ^$branch_name) + number_of_commits=$(git rev-list --count HEAD ^main) if [[ ${branch_name} != "main" && ${number_of_commits} -gt 0 ]] then - uv run cz check --rev-range main..HEAD + uvx --from commitizen cz check --rev-range main..HEAD else echo "Not on main or haven't committed yet." fi # Check for spelling errors in files check-spelling: - uv run typos + uvx typos From 03a06d50ade7f76e627c03e384876d6bc7a8c74c Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Tue, 15 Jul 2025 14:53:01 +0200 Subject: [PATCH 2/3] docs: :pencil2: edits from review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Signe Kirk Brødbæk <40836345+signekb@users.noreply.github.com> --- justfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/justfile b/justfile index dc496bb..c686adf 100644 --- a/justfile +++ b/justfile @@ -13,7 +13,7 @@ install-precommit: # Update versions of pre-commit hooks uvx pre-commit autoupdate -# Run checks on commits with non-main branches +# Run checks on all commits in the current branch up to the main branch check-commits: #!/bin/zsh branch_name=$(git rev-parse --abbrev-ref HEAD) From b105e569ff34d858e7331d3798444650c73d1f4a Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Tue, 15 Jul 2025 15:04:40 +0200 Subject: [PATCH 3/3] docs: :pencil2: edits from review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Signe Kirk Brødbæk <40836345+signekb@users.noreply.github.com> --- justfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index bb43f91..314d9fc 100644 --- a/justfile +++ b/justfile @@ -13,7 +13,7 @@ install-precommit: # Update versions of pre-commit hooks uvx pre-commit autoupdate -# Run checks on all commits in the current branch up to the main branch +# Check the commit messages on the current branch that are not on the main branch check-commits: #!/bin/zsh branch_name=$(git rev-parse --abbrev-ref HEAD) @@ -22,7 +22,7 @@ check-commits: then uvx --from commitizen cz check --rev-range main..HEAD else - echo "Not on main or haven't committed yet." + echo "On `main` or current branch doesn't have any commits." fi # Check for spelling errors in files