-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
61 lines (55 loc) · 1.45 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
# Run tests manually: pre-commit run --all-files
# Skip tests on linux: SKIP="pylint,check-yaml" git commit ...
# Skip tests on win10: set SKIP=pylint,check-yaml
# git commit ...
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
# - id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.14
hooks:
- id: ruff-format
args: [--check]
- id: ruff
#- repo: https://github.com/psf/black
# rev: 23.7.0
# hooks:
# - id: black
- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
- id: detect-secrets
- repo: https://github.com/codingjoe/relint.git
rev: 3.1.0
hooks:
- id: relint
name: check for sensitive patterns
args: []
- repo: local
hooks:
- id: mypy
name: mypy
entry: mypy
language: system
types: [python]
require_serial: true
- repo: https://github.com/jackdewinter/pymarkdown
rev: 0.9.16
hooks:
- id: pymarkdown
pass_filenames: false
args:
- -s
- plugins.md013.heading_line_length=$#120
- scan
- -r
- ./docs