-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.pre-commit-config.yaml
37 lines (37 loc) · 1.04 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-yaml
exclude: deployment/
- id: trailing-whitespace
- id: check-merge-conflict
- id: fix-byte-order-marker
- id: debug-statements
- id: check-json
- repo: https://github.com/psf/black
rev: 21.6b0
hooks:
- id: black
exclude: migrations/
- repo: https://github.com/Lucas-C/pre-commit-hooks-bandit
rev: v1.0.5
hooks:
- id: python-bandit-vulnerability-check
- repo: https://github.com/Lucas-C/pre-commit-hooks-safety
rev: v1.2.1
hooks:
- id: python-safety-dependencies-check
- repo: https://github.com/pryorda/dockerfilelint-precommit-hooks
rev: v0.1.0
hooks:
- id: dockerfilelint
stages: [commit]
- repo: local
hooks:
- id: pre-commit-django-migrations
name: Check django migrations
entry: script/manpy makemigrations --check --dry-run
language: system
types: [python]
pass_filenames: false