-
Notifications
You must be signed in to change notification settings - Fork 253
/
.pre-commit-config.yaml
46 lines (44 loc) · 1.3 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
exclude: >
(?x)^(
v2/|
aws-token-infra/|
templates/ |
.devcontainer/devcontainer.json
)
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-docstring-first
- id: check-json
- id: check-added-large-files
- id: check-yaml
- id: debug-statements
# - id: no-commit-to-branch
# # GitHub only allows branch protection for teams or enterprise.
# args: ['--pattern', '^(?!T\d+.*)']
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies: [flake8-typing-imports==1.12.0]
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.71.0 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases
hooks:
- id: terraform_fmt
# - id: terraform_tfsec install is suboptimal
- repo: local
hooks:
- id: typescript-check
name: Typescript Checker
entry: npm run --prefix frontend_vue type-check
types_or: [javascript, jsx, ts, tsx, vue]
language: system
pass_filenames: false