Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Checks to run before committing. 100% optional, CI should fail as well.
# Recommended to install as precommit-hook via prek (https://prek.j178.dev/)
# prek install
repos:
- repo: local
hooks:
- id: ruff-linter
name: ruff-linter
language: python
language_version: python3.12
entry: python -m ruff check .
additional_dependencies: ["ruff"]
files:
glob: "**/*.py"
- id: ruff-formatter
name: ruff-formatter
language: python
language_version: python3.12
entry: python -m ruff format --check .
additional_dependencies: ["ruff"]
files:
glob: "**/*.py"