-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
62 lines (54 loc) · 1.7 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
62 lines (54 loc) · 1.7 KB
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
60
61
62
# File introduces automated checks triggered on git events
# to enable run `pip install pre-commit && pre-commit install`
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: trailing-whitespace
- id: check-docstring-first
- id: check-added-large-files
- id: check-yaml
- id: debug-statements
- id: requirements-txt-fixer
- id: check-merge-conflict
- id: double-quote-string-fixer
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/PyCQA/bandit
rev: 1.7.0
hooks:
- id: bandit
args: ['--skip=B101,B403,B301,B311']
- repo: https://github.com/asottile/reorder_python_imports
rev: v2.3.6
hooks:
- id: reorder-python-imports
- repo: https://github.com/PyCQA/flake8
rev: 3.7.9
hooks:
- id: flake8
args: ['--show-source', '--ignore=E203,E741', "--max-complexity=15"]
additional_dependencies: ['flake8-bugbear']
- repo: https://github.com/humitos/mirrors-autoflake
rev: v1.1
hooks:
- id: autoflake
args: ['--in-place', '--remove-all-unused-imports',
'--remove-unused-variable', '-r', '.']
- repo: https://github.com/danielsuo/pydocstring-coverage
rev: v1.0.6
hooks:
- id: docstring-coverage
language: python
args: ['--verbose', '0', '--hook-mode', '--generate-badge', '.github/badges/docstring_coverage.svg', '--min-hook-passing-score', '0']
- repo: https://github.com/pre-commit/mirrors-yapf
rev: v0.30.0
hooks:
- id: yapf
name: yapf
language: python
entry: yapf
args: [-i, -vv]
types: [python]