-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
33 lines (30 loc) · 1 KB
/
.pre-commit-config.yaml
File metadata and controls
33 lines (30 loc) · 1 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: end-of-file-fixer # Ensures single trailing newline
- id: trailing-whitespace # Removes trailing spaces
args: [--markdown-linebreak-ext=md] # Preserve markdown line breaks
- id: check-yaml # Validates YAML syntax
- id: check-merge-conflict # Prevents merge conflict markers
- id: check-toml # Validates TOML syntax
- repo: local
hooks:
- id: hatch-lint
name: hatch lint check
entry: hatch run lint:check
language: system
types: [python]
pass_filenames: false
- id: hatch-mypy
name: hatch mypy check
entry: hatch run lint:typing
language: system
types: [python]
pass_filenames: false
- id: hatch-test
name: hatch run tests
entry: hatch run test
language: system
types: [python]
pass_filenames: false