-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
47 lines (47 loc) · 1.2 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- repo: local
hooks:
- id: black
name: Run Black
description: "Black: The uncompromising Python code formatter"
entry: black
language: python
types: [python]
- id: isort
name: Run Isort
description: "isort your imports, so you don't have to"
entry: isort
language: python
types: [python]
- id: pylint
name: Run Pylint
description: "Pylint: Python code static checker"
entry: pylint
language: system
types: [python]
args:
[
"-rn", # Only display messages
"-sn", # Don't display the score
]
- id: mypy
name: Run mypy
description: "Mypy: Python type checker"
entry: mypy
language: system
types: [python]
args: ["-v"]
- id: bandit
name: Run bandit
description: "Bandit: find common security issues in Python code"
entry: bandit
language: system
types: [python]
args: ["-c", "pyproject.toml", "-r", "."]