-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
63 lines (63 loc) · 1.61 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
---
default_language_version:
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 5df1a4bf6f04a1ed3a643167b38d502575e29aef
hooks:
# Generall Stuff
- id: trailing-whitespace
- id: mixed-line-ending
args: [--fix=lf]
- id: end-of-file-fixer
exclude: "\\.(svg|drawio)$"
# VCS
- id: check-merge-conflict
# Config / Data Files
- id: check-yaml
# Python
- id: debug-statements
- id: requirements-txt-fixer
# Python: Syntax and Quotes
- repo: https://gitlab.com/pycqa/flake8
rev: bb61b3df82a938f7cd1ca32daab4a31e4586b281
hooks:
- id: flake8
exclude: migrations/
args:
- --isolated
- --inline-quotes=single
- --max-line-length=100
additional_dependencies: [flake8-quotes]
# Python: isort
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
hooks:
- id: isort
exclude: migrations/
args:
- --project
- socialhub
- --case-sensitive
- --section-default
- THIRDPARTY
- --force-grid-wrap
- "0"
- --force-single-line-imports
- --trailing-comma
- --line-width
- "100"
- --multi-line
- "3"
- --dont-order-by-type
- --use-parentheses
# Python: pycodestyle
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.4.4
hooks:
- id: autopep8
exclude: migrations/
args:
- --in-place
- --max-line-length
- "100"