-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
59 lines (59 loc) · 1.6 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
56
57
58
59
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: trailing-whitespace
- id: detect-private-key
- id: name-tests-test
args: ['--django']
- id: mixed-line-ending
args: ['--fix=lf']
- id: double-quote-string-fixer
- repo: https://github.com/humitos/mirrors-autoflake
rev: v1.3
hooks:
- id: autoflake
args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable', '--ignore-init-module-imports']
- repo: https://github.com/ambv/black
rev: 20.8b1
hooks:
- id: black
language_version: python3.7
- repo: https://github.com/asottile/reorder_python_imports
rev: v2.3.5
hooks:
- id: reorder-python-imports
language_version: python3.7
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3
hooks:
- id: flake8
language_version: python3
- repo: local
hooks:
- id: pytest
name: Check pytest unit tests pass
stages: [push]
entry: poetry run task test
pass_filenames: false
always_run: true
language: system
types: [python]
- repo: local
hooks:
- id: post-commit-local-reminder
name: Reminder for versioning
stages: [post-commit]
entry: poetry run task reminder
language: system
always_run: true
- repo: local
hooks:
- id: run-bandit
name: Run bandit on code
stages: [push]
entry: poetry run task bandit
language: system
always_run: true