-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
66 lines (59 loc) · 1.47 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: check-toml
- id: check-json
exclude: ".*\\.vscode/"
- id: end-of-file-fixer
- id: trailing-whitespace
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: debug-statements
- id: check-merge-conflict
- id: detect-private-key
- repo: https://github.com/python-poetry/poetry
rev: 1.8.0
hooks:
- id: poetry-check
args: ["--lock"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.2
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/pycqa/docformatter
rev: v1.7.5
hooks:
- id: docformatter
args: [
--wrap-descriptions=0,
--in-place,
--blank
]
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.16.1
hooks:
- id: cspell
- repo: local
hooks:
- id: check_list
name: short start up check
entry: inv -l
language: system
pass_filenames: false
types: [ file ]
stages: [ push ]
- id: mypy
name: Run mypy
entry: inv mypy.run
language: system
pass_filenames: false
types: [ file ]
stages: [ push ]