-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
40 lines (37 loc) · 973 Bytes
/
.pre-commit-config.yaml
File metadata and controls
40 lines (37 loc) · 973 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
32
33
34
35
36
37
38
39
40
repos:
# Ruff formatter
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.6
hooks:
- id: ruff-format
name: ruff format
description: Format Python code with ruff
# Ruff linter
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.6
hooks:
- id: ruff
name: ruff check --fix
description: Lint Python code with ruff and auto-fix issues
args: [--fix]
# Pyrefly type checker
- repo: local
hooks:
- id: pyrefly
name: pyrefly check
description: Type check Python code with pyrefly
entry: .venv/bin/pyrefly
args: [check]
language: system
types: [python]
# Pytest tests
- repo: local
hooks:
- id: pytest
name: pytest
description: Run tests with pytest
entry: .venv/bin/pytest
language: system
types: [python]
pass_filenames: false
always_run: true