Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
_ignore
bin/
dev/
_temp/

# Temporary files
*.tmp
Expand Down
23 changes: 22 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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: install-deps format-python check-python check-spelling check-commits test

# Install the pre-commit hooks
install-precommit:
Expand Down Expand Up @@ -41,3 +41,24 @@ check-commits:
# Check for spelling errors in files
check-spelling:
uv run typos

test:
#!/bin/zsh
temp_dir="_temp/test-data-package"
rm -rf $temp_dir
mkdir -p $temp_dir
# vcs-ref means the current commit/head, not a tag.
# `.` means the current directory contains the template.
uvx copier copy --vcs-ref=HEAD . $temp_dir \
--defaults \
--data package_abbrev= "test-data-package" \
--data package_github="first-last/test-data-package" \
--data author_given_name="First" \
--data author_family_name="Last" \
--data author_email="[email protected]"
# TODO: Other checks/tests?

cleanup:
#!/bin/zsh
temp_dir=$("_temp/test-data-package"))
rm -rf $temp_dir