-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
57 lines (50 loc) · 1.35 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
55
56
57
---
repos:
- repo: https://github.com/PyCQA/bandit
rev: 1.7.0
hooks:
- id: bandit
exclude: tests/.*$
- repo: local
hooks:
- id: black
name: black
language: system
entry: poetry run black
types: [python]
# Docstring coverage tool
- repo: https://github.com/econchick/interrogate
rev: 1.3.2
hooks:
- id: interrogate
# adjust `fail-under` value as quality standards permit
args: [-vv, --fail-under=0]
- repo: local
hooks:
- id: isort
name: isort
language: system
entry: poetry run isort
types: [python]
- repo: https://github.com/asottile/pyupgrade
rev: v2.14.0
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/adrienverge/yamllint
rev: v1.26.1
hooks:
- id: yamllint
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-added-large-files # Ignored for git-lfs files
args: [--maxkb=100000] # 100MB
- id: check-ast
- id: end-of-file-fixer # Ensure files ONLY end in a newline
exclude_types: [jupyter]
- id: pretty-format-json # Sort and indent
args: [--autofix]
exclude: ^(\.cruft\.json)$
- id: trailing-whitespace # Trim
args: [--markdown-linebreak-ext=md]