-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
51 lines (51 loc) · 1.41 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: check-json
exclude: Pipfile.lock
- id: pretty-format-json
args: [--autofix]
exclude: Pipfile.lock
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=lf]
- id: debug-statements
- id: check-executables-have-shebangs
- id: detect-aws-credentials
- id: detect-private-key
- repo: https://github.com/asottile/pyupgrade
rev: v2.1.0
hooks:
- id: pyupgrade
name: Upgrade old python code to current (pyupgrade)
args: [--py3-plus]
- repo: https://github.com/psf/black
rev: 19.3b0
hooks:
- id: black
name: Autocode formatter (black)
- repo: https://github.com/myint/docformatter
rev: v1.3.1
hooks:
- id: docformatter
name: Format docstrings (docformatter)
- repo: https://github.com/Lucas-C/pre-commit-hooks-bandit
rev: v1.0.4
hooks:
- id: python-bandit-vulnerability-check
name: Security analysis (bandit)
args: [-l, --recursive, -x, tests]
files: .py$
- repo: local
hooks:
- id: tests
name: Run pytest
entry: pipenv run pytest -v
language: system
# types: [python]
require_serial: true
pass_filenames: false
# stages: [push]