-
Notifications
You must be signed in to change notification settings - Fork 41
/
.pre-commit-config.yaml
45 lines (40 loc) · 1.16 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/asottile/seed-isort-config
rev: v2.1.0
hooks:
- id: seed-isort-config
args: ['--application-directories', 'src']
- repo: https://github.com/timothycrosley/isort
rev: 4.3.21-2
hooks:
- id: isort
files: ^src/
exclude: src/waldur_core/server/base_settings.py
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
- id: black
files: ^src/
exclude: src/waldur_core/server/base_settings.py
additional_dependencies:
- tomli
- repo: https://github.com/PyCQA/flake8
rev: 3.7.9
hooks:
- id: flake8
files: ^src/
exclude: src/waldur_core/server/base_settings.py
additional_dependencies:
- flake8-bandit==2.1.0
- repo: local
hooks:
- id: migrations
name: migrations with auto-generated names
entry: migrations must not be with auto-generated names
language: fail
files: '^.*/migrations/\d{4}_auto_\d{8}_\d{4}.py$'