-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
55 lines (55 loc) · 1.75 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
---
# 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 # Prevents 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']
- 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.981 # Use the sha / tag you want to point at
hooks:
- id: mypy
# You can use additional_dependencies to install types- packages
# https://github.com/pre-commit/mirrors-mypy
additional_dependencies:
- types-mock==0.1.5
- types-requests==2.31.0
- types-retry==0.1.5
- types-toml==0.10.8.1
- types-PyYAML==6.0.12.9
- types-python-dateutil==2.8.19.12
- types-pytz==2023.3.0.0
- repo: local
hooks:
- id: pylint
name: pylint (Python Linting)
entry: pylint
language: system
types: [python]
files: ^(terrawrap|test)/
args: [--rcfile=pylintrc, --output-format=colorized, --score=no]