File tree Expand file tree Collapse file tree 7 files changed +31
-67
lines changed Expand file tree Collapse file tree 7 files changed +31
-67
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,9 @@ This PR will [DESCRIBE CHANGES].
44
55Closes #
66
7- <!-- Select quick/in-depth as necessary -->
87This PR needs a quick/an in-depth review.
98
109## Checklist
1110
12- - [ ] Read through for typos, added new words to the dictionary
1311- [ ] Checked that the README is up to date
14- - [ ] Resolved any Ruff errors / formatted in Markdown
12+ - [ ] Run ` just run-all `
Original file line number Diff line number Diff line change @@ -12,6 +12,14 @@ repos:
1212 - id : end-of-file-fixer
1313
1414 - repo : https://github.com/commitizen-tools/commitizen
15- rev : v4.7.0
15+ rev : v4.7.2
1616 hooks :
1717 - id : commitizen
18+
19+ # Use the mirror since the main `typos` repo has tags for different
20+ # sub-packages, which confuses pre-commit when it tries to find the latest
21+ # version
22+ - repo : https://github.com/adhtruong/mirrors-typos
23+ rev : v1.32.0
24+ hooks :
25+ - id : typos
Original file line number Diff line number Diff line change 11{
2- // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3- // Extension identifier format: ${publisher }.${name}. Example: vscode.csharp
4- // List of extensions which should be recommended for users of this workspace.
52 "recommendations" : [
3+ " eamodio.gitlens" ,
4+ " github.vscode-github-actions" ,
5+ " redhat.vscode-yaml" ,
66 " donjayamanne.githistory" ,
77 " felipecaputo.git-project-manager" ,
88 " GitHub.vscode-pull-request-github" ,
9- " ms-azuretools.vscode-docker" ,
109 " ms-python.python" ,
1110 " ms-python.vscode-pylance" ,
1211 " njpwerner.autodocstring" ,
1312 " quarto.quarto" ,
1413 " ms-toolsai.jupyter" ,
15- " streetsidesoftware.code-spell-checker" ,
1614 " vivaxy.vscode-conventional-commits" ,
1715 " charliermarsh.ruff" ,
1816 " pshaddel.conventional-branch" ,
19- " yy0931.vscode-sqlite3-editor"
17+ " tekumara.typos-vscode" ,
18+ " EditorConfig.EditorConfig"
2019 ],
2120 // List of extensions recommended by VS Code that should not be recommended for users of this workspace.
2221 "unwantedRecommendations" : []
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3131 },
3232 "python.defaultInterpreterPath" : " ${workspaceFolder}/.venv" ,
3333 "python.languageServer" : " Pylance" ,
34- "files.insertFinalNewline" : true ,
35- "cSpell.enabledFileTypes" : {
36- "quarto" : true
37- },
38- "cSpell.language" : " en,en-GB" ,
34+ "files.insertFinalNewline" : true
3935}
Original file line number Diff line number Diff line change 22 just --list --unsorted
33
44# Run all build-related recipes in the justfile
5- run-all : install-deps format-python check-python check-commits
5+ run-all : install-deps format-python check-python check-spelling check-commits
6+
7+ # Install the pre-commit hooks
8+ install-precommit :
9+ # Install pre-commit hooks
10+ uvx pre-commit install
11+ # Run pre-commit hooks on all files
12+ uvx pre-commit run --all-files
13+ # Update versions of pre-commit hooks
14+ uvx pre-commit autoupdate
615
716# Install Python package dependencies
817install-deps :
9- uv sync --upgrade --dev
18+ uv sync --upgrade --dev --all-extras
1019
1120# Check Python code with the linter for any errors that need manual attention
1221check-python :
@@ -28,3 +37,7 @@ check-commits:
2837 else
2938 echo " Not on main or haven't committed yet."
3039 fi
40+
41+ # Check for spelling errors in files
42+ check-spelling :
43+ uv run typos
You can’t perform that action at this time.
0 commit comments