Skip to content

Commit

Permalink
Feature/more pre commit (#65)
Browse files Browse the repository at this point in the history
* add more precommit

* fix spelling

* pre-commit all
  • Loading branch information
blooop authored Nov 14, 2024
1 parent 19fb1a8 commit 7eaec9c
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 17 deletions.
18 changes: 17 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,19 @@ repos:
- id: check-case-conflict
- id: check-docstring-first
- id: check-merge-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: name-tests-test
- id: detect-private-key
- id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
args: ['--unsafe'] # Fixes errors parsing custom jinja templates
# - id: debug-statements
# - id: check-json
# - id: pretty-format-json
# args: ['--autofix']
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
# - id: trailing-whitespace
Expand All @@ -42,3 +51,10 @@ repos:
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi ]
# Checks for spelling mistakes
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0 #TODO latest version 2.3.0 finds a lot of spelling mistakes but fails on "assertIn"
hooks:
- id: codespell
args: ['--write-changes']
exclude: \.(svg|pyc|lock|json)$
30 changes: 15 additions & 15 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"recommendations": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.pylint",
"ms-python.black-formatter",
"njpwerner.autodocstring",
"charliermarsh.ruff",
"mhutchie.git-graph",
"eamodio.gitlens",
"tamasfe.even-better-toml",
"Codium.codium",
"ms-azuretools.vscode-docker",
"ryanluker.vscode-coverage-gutters",
"jjjermiah.pixi-vscode"
]
"recommendations": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.pylint",
"ms-python.black-formatter",
"njpwerner.autodocstring",
"charliermarsh.ruff",
"mhutchie.git-graph",
"eamodio.gitlens",
"tamasfe.even-better-toml",
"Codium.codium",
"ms-azuretools.vscode-docker",
"ryanluker.vscode-coverage-gutters",
"jjjermiah.pixi-vscode"
]
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ If you don't want to install rocker on your system but want to use vscode, you c

## Troubleshooting

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.
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.

## vscode tasks

Expand Down

0 comments on commit 7eaec9c

Please sign in to comment.