Initial commit
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
---
|
||||
# See https://pre-commit.com for more information
|
||||
# See https://pre-commit.com/hooks.html for more hooks
|
||||
repos:
|
||||
- repo: local
|
||||
hooks:
|
||||
|
||||
- id: ruff-format
|
||||
name: Format with Ruff
|
||||
entry: uv run ruff format
|
||||
language: system
|
||||
pass_filenames: false
|
||||
always_run: true
|
||||
|
||||
- id: ruff
|
||||
name: Check with Ruff
|
||||
entry: uv run ruff
|
||||
language: system
|
||||
pass_filenames: false
|
||||
always_run: true
|
||||
args: ["check", "zangramru", "tests", "--fix"]
|
||||
|
||||
- id: mypy
|
||||
name: Validate types with MyPy
|
||||
entry: uv run mypy
|
||||
language: system
|
||||
types: [python]
|
||||
pass_filenames: false
|
||||
args:
|
||||
- "zangramru"
|
||||
- "tests"
|
||||
Reference in New Issue
Block a user