From 155ccef5039dac17d3b7cd9ed228b51454335638 Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Wed, 23 Apr 2025 15:45:42 +0200 Subject: [PATCH] build: :hammer: add spell checker to justfile --- .typos.toml | 9 +++++++++ justfile | 6 +++++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .typos.toml diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 0000000..bb4c721 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,9 @@ +[files] +extend-exclude = [ + "*.json", + "*.css", + ".quarto/*", + "_site/*", + "_extensions/*", + ".coverage-report/*" +] diff --git a/justfile b/justfile index 5b553b2..89f4445 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 test-python check-security check-commits build-website +run-all: install-deps format-python check-python test-python check-security check-spelling check-commits build-website # Install Python package dependencies install-deps: @@ -50,3 +50,7 @@ check-commits: # Run basic security checks on the package check-security: uv run bandit -r src/ + +# Check for spelling errors in files +check-spelling: + uv run typos