-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
49 lines (44 loc) · 1 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: detect-private-key
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
name: Code formatter
args: ["--line-length=79","--preview"]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: Reorder python imports
args: [
"--profile", "black",
"--skip-gitignore",
"--line-length", "79"
]
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
name: Linter
args: [
"--extend-exclude=tests/*",
"--max-line-length=79"
]
- repo: local
hooks:
- id: pytest
name: Pytest
entry: pytest
args: ["--disable-warnings","--ignore=./postgres/"]
ignore: postgres
language: system
pass_filenames: false
always_run: true