-
Notifications
You must be signed in to change notification settings - Fork 316
/
.pre-commit-config.yaml
57 lines (57 loc) · 1.51 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
---
exclude: \.idea|test/remote-cases/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: requirements-txt-fixer
- id: mixed-line-ending
- id: check-toml
- id: detect-private-key
- repo: https://github.com/psf/black
rev: 22.6.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.971
hooks:
- id: mypy
additional_dependencies:
- types-PyYAML==6.0.11
- types-attrs==19.1.0
- types-paramiko==2.11.6
- types-pkg_resources==0.1.3
- types-python-dateutil==2.8.19
- types-requests==2.28.9
- types-toml==0.10.8
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shellcheck
- repo: https://github.com/PyCQA/autoflake
rev: v2.2.1
hooks:
- id: autoflake
# - repo: https://github.com/antonbabenko/pre-commit-terraform
# rev: v1.92.0
# hooks:
# - id: terraform_fmt
# - id: terraform_validate
- repo: local
hooks:
- id: pylint
name: pylint
entry: .poetry/bin/poetry run pylint
language: system
types: [python]
- id: test
name: Run tests
entry: make test
language: system
types_or: [python, shell]
pass_filenames: false
require_serial: true