-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
54 lines (54 loc) · 1.41 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
# .pre-commit-config.yaml
---
exclude: |
(?x)^(
.*\.svg|
\.vscode/.*|
assets/.*|
vendor/.*|
tmp/.*
)$
repos:
- repo: https://github.com/python/black.git
rev: 23.7.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/PyCQA/flake8.git
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies:
- flake8-isort>=6.0.0
language_version: python3
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
args: ["--profile", "black", "--skip-gitignore", "--filter-files"]
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v1.1.1
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: .*\.patch
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.30.0
hooks:
- id: markdownlint
- repo: https://github.com/detailyang/pre-commit-shell.git
rev: 1.0.2
hooks:
- id: shell-lint
args: ["--exclude=SC1090,SC1091,SC2034,SC2039,SC2140,SC2148,SC2153,SC2154,SC2164"]
exclude: |
(?x)^(
assets/.*|
vendor/.*|
tmp/.*
)$