-
Notifications
You must be signed in to change notification settings - Fork 56
/
.pre-commit-config.yaml
45 lines (45 loc) · 1.37 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
---
# 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.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: no-commit-to-branch # Prevent commits directly to master
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.28.0
hooks:
- id: yamllint
name: Lint YAML
args: [--format, parsable, --strict]
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.2 # or specific tag
hooks:
- id: yamlfmt
args: [--mapping, '2', --sequence, '4', --offset, '2', --width, '120']
- repo: https://github.com/executablebooks/mdformat.git
rev: 0.7.16
hooks:
- id: mdformat
name: Format markdown
- repo: https://github.com/psf/black
rev: 22.8.0
hooks:
- id: black
language_version: python3.8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991 # Use the sha / tag you want to point at
hooks:
- id: mypy
- repo: local
hooks:
- id: pylint
name: pylint (Python Linting)
entry: pylint
language: system
types: [python]
files: ^(hcl2|test)/
args: [--rcfile=pylintrc, --output-format=colorized, --score=no]