-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
48 lines (48 loc) · 1.15 KB
/
.pre-commit-config.yaml
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
exclude: ^(docs\/|docsrc\/)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
# Identify invalid files
- id: check-ast
- id: check-yaml
- id: check-json
- id: check-toml
# git checks
- id: check-merge-conflict
- id: detect-private-key
- id: check-case-conflict
# Python checks
- id: check-docstring-first
- id: debug-statements
- id: requirements-txt-fixer
- id: fix-byte-order-marker
# General quality checks
- id: mixed-line-ending
- id: trailing-whitespace
exclude: \.md$ # exclude markdown files
- id: check-executables-have-shebangs
- id: end-of-file-fixer
- repo: https://github.com/pdm-project/pdm
rev: 2.4.0
hooks:
- id: pdm-lock-check
- repo: local
hooks:
- id: kacl-verify
name: verify CHANGELOG.md
entry: kacl-cli verify
language: system
files: 'CHANGELOG.md'
pass_filenames: false
types: [python]
- id: black
name: black
entry: black .
language: system
types: [python]
- id: ruff
name: ruff
entry: ruff .
language: system
types: [python]