-
-
Notifications
You must be signed in to change notification settings - Fork 237
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
31 lines (28 loc) · 876 Bytes
/
.pre-commit-config.yaml
File metadata and controls
31 lines (28 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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", "{{cookiecutter.project_name}}", "tests", "--fix"]
- id: mypy
name: Validate types with MyPy
entry: uv run mypy
language: system
types: [python]
pass_filenames: false
args:
- "{{cookiecutter.project_name}}"
- "tests"