-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
.pre-commit-config.yaml
41 lines (37 loc) · 1.33 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
---
exclude: '^(.*\.pem|.*\.tfvars)$'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=lf]
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: check-executables-have-shebangs
- id: check-merge-conflict
# - id: check-docstring-first # We can enable this rule once models.py is simplified
- id: check-yaml
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
args: [--line-length=100]
- repo: https://github.com/detailyang/pre-commit-shell
rev: 1.0.5
hooks:
- id: shell-lint
# We didn't write codecov.sh, we just get it from their servers
# The other one is a template.
exclude: 'codecov.sh|infrastructure/workers-configuration/workers-instance-user-data.tpl.sh'
args:
# SC2154: Exclude warnings about variables being used without being
# assigned, because we sometimes use lowercase environment
# variables which shellcheck does not recognize.
# SC1090,SC1091: Don't try to follow sourced files
- --exclude=SC2154,SC1090,SC1091