Skip to content

Commit

Permalink
Add pre-commit hooks
Browse files Browse the repository at this point in the history
Can install with pixi run -e dev post-install
  • Loading branch information
deltamarnix committed Dec 11, 2024
1 parent d25f351 commit 6235e76
Show file tree
Hide file tree
Showing 3 changed files with 157 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.2
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
types_or: [python, pyi, jupyter]
Loading

0 comments on commit 6235e76

Please sign in to comment.