-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
54 lines (54 loc) · 1.56 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-case-conflict
- id: check-docstring-first
- id: check-merge-conflict
- id: debug-statements
- id: detect-aws-credentials
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 21.6b0
hooks:
- id: black
name: Uncompromising code formatting using black
- repo: https://github.com/pycqa/isort
rev: 5.8.0
hooks:
- id: isort
name: Sort the imports using isort
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.902
hooks:
- id: mypy
name: Check type hints with mypy
args: [--no-strict-optional, --ignore-missing-imports]
additional_dependencies: [types-requests==0.1.11]
- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
name: Linting with flake8
- repo: https://github.com/pycqa/pylint
rev: v2.8.3
hooks:
- id: pylint
name: Linting with pylint
additional_dependencies: [requests==2.25.1]
- repo: https://github.com/pycqa/bandit
rev: 1.7.0
hooks:
- id: bandit
name: Find common security issues using bandit
exclude: "tests/"
- repo: https://github.com/ikamensh/flynt/
rev: '0.76'
hooks:
- id: flynt