-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
44 lines (44 loc) · 1.28 KB
/
.pre-commit-config.yaml
File metadata and controls
44 lines (44 loc) · 1.28 KB
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
41
42
43
44
repos:
# https://github.com/pre-commit/pre-commit-hooks
- repo: local
hooks:
- id: trailing-whitespace
name: trim trailing whitespace
description: trims trailing whitespace.
entry: uv run trailing-whitespace-fixer
language: system
types: [text]
- id: end-of-file-fixer
name: fix end of files
description: ensures that a file is either empty, or ends with one newline.
entry: uv run end-of-file-fixer
language: system
types: [text]
- id: check-yaml
name: check yaml
description: checks yaml files for parsable syntax.
entry: uv run check-yaml
language: system
types: [yaml]
- id: check-json
name: check json
description: checks json files for parsable syntax.
entry: uv run check-json
language: system
types: [json]
exclude: "^.vscode"
- id: check-toml
name: check toml
description: checks toml files for parsable syntax.
entry: uv run check-toml
language: system
types: [toml]
# https://github.com/astral-sh/ruff-pre-commit
- repo: local
hooks:
- id: poe-format
name: ruff linter, ruff formatter and mypy
entry: uv run poe format
language: system
pass_filenames: false
types: [python]