-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
48 lines (45 loc) · 1.03 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
- id: check-ast
- id: check-yaml
- id: check-toml
- id: check-json
- id: pretty-format-json
args: [--autofix, --no-sort-keys, --no-ensure-ascii]
- id: check-case-conflict
- id: check-added-large-files
- id: mixed-line-ending
- id: end-of-file-fixer
exclude: static
- id: trailing-whitespace
exclude: static
- id: forbid-new-submodules
- id: check-merge-conflict
- id: no-commit-to-branch
args: [--branch, master]
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
args: [--line-length=120]
exclude: migrations
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
args: [--profile=black]
exclude: |
(?x)(
migrations |
__init__.py
)
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
args: [--max-line-length=120]
exclude: migrations