-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
54 lines (48 loc) · 1.45 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
exclude: .bumpversion.cfg
repos:
- repo: local
hooks:
- id: print_statements
name: Check for print statements
types: [python]
entry: 'print\(.*?\)(?!.*# functional)'
language: pygrep
- id: show_statements
name: Check for show statements
types: [python]
entry: '\.show\(.*\)'
language: pygrep
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
exclude: "tests/.*"
- repo: https://github.com/asottile/reorder_python_imports
rev: v2.6.0
hooks:
- id: reorder-python-imports
args: [--py3-plus]
- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
hooks:
- id: flake8
args: [--max-line-length, "120", "--extend-exclude=tests/**", "--extend-ignore=E501 cishouseholds/pipieline/regex_testing.py"]
- repo: https://github.com/psf/black
rev: 21.9b0
hooks:
- id: black
args: [--line-length, "120"]
additional_dependencies: ['click==8.0.1']
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.910'
hooks:
- id: mypy
additional_dependencies: [types-PyYAML, types-setuptools]
- repo: https://github.com/Yelp/detect-secrets
rev: v1.1.0
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
exclude: package.lock.json