-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
36 lines (31 loc) · 875 Bytes
/
.pre-commit-config.yaml
File metadata and controls
36 lines (31 loc) · 875 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.0
hooks:
# blocks files larger than 500 KB
- id: check-added-large-files
# blocks files with leftover merge conflict markers
- id: check-merge-conflict
- id: no-commit-to-branch
name: Block commits to main branch
- repo: local
hooks:
- id: ruff-lint
name: Lint files with ruff
args: [check, --fix, --show-fixes]
entry: ruff
language: system
types: [python]
- id: ruff-format
name: Format files with ruff
args: [format]
entry: ruff
language: system
types: [python]
- id: prettier
name: Format files with prettier
args: [prettier, -l, -u, -w]
entry: npx
exclude: \.py$
language: system
types: [text]