-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
43 lines (39 loc) · 1.13 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
# 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.3.3
hooks:
- id: ruff-format
args: [--check]
- id: ruff
- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
- id: detect-secrets
args: ['--exclude-secrets', 'verysecret']
- repo: https://github.com/jackdewinter/pymarkdown
rev: v0.9.18
hooks:
- id: pymarkdown
args:
- scan
- repo: https://github.com/codingjoe/relint.git
rev: 3.1.0
hooks:
- id: relint
name: check for sensitive patterns
args: []