-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
48 lines (42 loc) · 1.12 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
repos:
- repo: https://github.com/yunojuno/pre-commit-xenon
rev: cc59b0431a5d072786b59430e9b342b2881064f6
hooks:
- id: xenon
args: ["--max-average=A", "--max-modules=C", "--max-absolute=C"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- id: fix-encoding-pragma
- repo: local
hooks:
- id: python-no-print
name: check for print()
entry: sh ./scripts/python-no-print.sh
always_run: true
pass_filenames: false
language: system
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
hooks:
- id: python-no-eval
- repo: https://github.com/PyCQA/bandit
rev: 1.7.3
hooks:
- id: bandit
args: ["--exclude", "tests", "-s", "B101"]
- repo: https://github.com/psf/black
rev: 21.12b0
hooks:
- id: black
- repo: local
hooks:
- id: my-test
name: my-test
entry: python test.py
always_run: true
pass_filenames: false
language: system