-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
51 lines (51 loc) · 1.3 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
49
50
51
default_install_hook_types:
- pre-commit
- commit-msg
repos:
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.16.0
hooks:
- id: commitlint
stages: [ commit-msg ]
additional_dependencies:
- '@commitlint/config-conventional'
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-docstring-first
- id: pretty-format-json
args:
- --autofix
- --no-sort-keys
- --indent
- '4'
- id: check-toml
- id: check-yaml
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.41.0
hooks:
- id: markdownlint
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.0
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: local
hooks:
- id: mypy
name: mypy
entry: pdm run mypy
language: system
types: [ python ]
- id: pdm-lock-check
name: check PDM lock file
entry: pdm lock --check
language: system
pass_filenames: false
files: ^pyproject.toml$