-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
50 lines (45 loc) · 1.27 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
50 lines (45 loc) · 1.27 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
45
46
47
48
49
50
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
name: Check YAML files
- id: check-toml
name: Check TOML files
- id: end-of-file-fixer
name: Fix end of files
- id: check-added-large-files
name: Check for large files
args: ['--maxkb=1000']
- id: trailing-whitespace
name: Trim trailing whitespace
- repo: local
hooks:
- id: ruff
name: Lint with ruff
entry: uv run ruff check . --fix
language: system
pass_filenames: false
always_run: true
- id: ruff-format
name: Format with ruff
entry: uv run ruff format .
language: system
pass_filenames: false
always_run: true
- id: mypy
name: Type check with mypy
entry: uv run mypy .
language: system
pass_filenames: false
always_run: true
- id: pymarkdownlnt
name: Lint Markdown with pymarkdownlnt
entry: uv run pymarkdown -c .pymarkdown.json scan
language: system
types: [markdown]
- id: shellcheck
name: Lint shell scripts with shellcheck
entry: uv run shellcheck
language: system
files: \.(sh|bash)$