Skip to content

Commit 7eaec9c

Browse files
authored
Feature/more pre commit (#65)
* add more precommit * fix spelling * pre-commit all
1 parent 19fb1a8 commit 7eaec9c

File tree

3 files changed

+33
-17
lines changed

3 files changed

+33
-17
lines changed

.pre-commit-config.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,19 @@ repos:
2222
- id: check-case-conflict
2323
- id: check-docstring-first
2424
- id: check-merge-conflict
25+
- id: check-executables-have-shebangs
26+
- id: check-shebang-scripts-are-executable
27+
- id: name-tests-test
28+
- id: detect-private-key
2529
- id: check-symlinks
30+
- id: check-toml
31+
- id: check-xml
2632
- id: check-yaml
2733
args: ['--unsafe'] # Fixes errors parsing custom jinja templates
28-
# - id: debug-statements
34+
# - id: check-json
35+
# - id: pretty-format-json
36+
# args: ['--autofix']
37+
- id: debug-statements
2938
- id: end-of-file-fixer
3039
- id: mixed-line-ending
3140
# - id: trailing-whitespace
@@ -42,3 +51,10 @@ repos:
4251
# Run the formatter.
4352
- id: ruff-format
4453
types_or: [ python, pyi ]
54+
# Checks for spelling mistakes
55+
- repo: https://github.com/codespell-project/codespell
56+
rev: v2.3.0 #TODO latest version 2.3.0 finds a lot of spelling mistakes but fails on "assertIn"
57+
hooks:
58+
- id: codespell
59+
args: ['--write-changes']
60+
exclude: \.(svg|pyc|lock|json)$

.vscode/extensions.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"recommendations": [
3-
"ms-python.python",
4-
"ms-python.vscode-pylance",
5-
"ms-python.pylint",
6-
"ms-python.black-formatter",
7-
"njpwerner.autodocstring",
8-
"charliermarsh.ruff",
9-
"mhutchie.git-graph",
10-
"eamodio.gitlens",
11-
"tamasfe.even-better-toml",
12-
"Codium.codium",
13-
"ms-azuretools.vscode-docker",
14-
"ryanluker.vscode-coverage-gutters",
15-
"jjjermiah.pixi-vscode"
16-
]
2+
"recommendations": [
3+
"ms-python.python",
4+
"ms-python.vscode-pylance",
5+
"ms-python.pylint",
6+
"ms-python.black-formatter",
7+
"njpwerner.autodocstring",
8+
"charliermarsh.ruff",
9+
"mhutchie.git-graph",
10+
"eamodio.gitlens",
11+
"tamasfe.even-better-toml",
12+
"Codium.codium",
13+
"ms-azuretools.vscode-docker",
14+
"ryanluker.vscode-coverage-gutters",
15+
"jjjermiah.pixi-vscode"
16+
]
1717
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ If you don't want to install rocker on your system but want to use vscode, you c
8181

8282
## Troubleshooting
8383

84-
The main pixi tasks are related to CI. Github actions runs the pixi task "ci". The CI is mostly likey to fail from a lockfile mismatch. Use `pixi run fix` to fix any lockfile related problems.
84+
The main pixi tasks are related to CI. Github actions runs the pixi task "ci". The CI is mostly likely to fail from a lockfile mismatch. Use `pixi run fix` to fix any lockfile related problems.
8585

8686
## vscode tasks
8787

0 commit comments

Comments
 (0)