-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
65 lines (65 loc) · 1.76 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
repos:
# General pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: destroyed-symlinks
- id: detect-aws-credentials
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: fix-encoding-pragma
args:
- --remove
- id: mixed-line-ending
- id: check-added-large-files
args:
- '--maxkb=64'
- id: trailing-whitespace
args:
- '--markdown-linebreak-ext=md'
- id: check-symlinks
- id: check-yaml
args:
- '--allow-multiple-documents'
- id: requirements-txt-fixer
- id: check-ast
# Go specific hooks
- repo: https://github.com/tekwizely/pre-commit-golang
rev: v1.0.0-rc.1
hooks:
- id: go-build-mod
- id: go-mod-tidy
- id: go-mod-tidy-repo
- id: go-test-mod
- id: go-test-repo-mod
- id: go-fmt
- id: go-fmt-repo
# Python specific hooks
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.12.0
hooks:
- id: reorder-python-imports
args: [--application-directories, '.:src', --py311-plus]
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
language_version: python3.11
args:
- --line-length
- "140"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
hooks:
- id: mypy
args:
- --check-untyped-defs
- --ignore-missing-imports
- --install-types
- --non-interactive
files: docs/diagrams/main.py