-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.pre-commit-config.yaml
55 lines (49 loc) · 1.33 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v4.4.0'
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-yaml
- id: check-json
- id: check-toml
- repo: local
hooks:
- id: isort
name: isort
require_serial: true
language: system
entry: isort --filter-files --check-only
types: [python]
- id: flake8
name: flake8
require_serial: true
language: system
entry: python3 -m flake8
types: [python]
- id: check-absent-migrations
name: check for missed migrations
language: system
entry: python3 ./manage.py makemigrations --check --dry-run
pass_filenames: false
verbose: true
# - repo: https://github.com/thibaudcolas/pre-commit-stylelint
# rev: 'v15.10.2'
# hooks:
# - id: stylelint
# additional_dependencies:
# files: \.scss$
# - repo: https://github.com/pre-commit/mirrors-eslint
# rev: 'v8.47.0'
# hooks:
# - id: eslint
# - repo: https://github.com/Lucas-C/pre-commit-hooks-safety
# rev: 'v1.3.2'
# hooks:
# - id: python-safety-dependencies-check
# args: [--disable-telemetry]
# files: requirements/dev.txt
# always_run: true