-
Notifications
You must be signed in to change notification settings - Fork 281
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
48 lines (46 loc) · 1.39 KB
/
.pre-commit-config.yaml
File metadata and controls
48 lines (46 loc) · 1.39 KB
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
exclude: >
(?x)^(
v2/|
aws-token-infra/|
templates/ |
.devcontainer/devcontainer.json
)
fail_fast: true
minimum_pre_commit_version: '3.2.0'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.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/astral-sh/ruff-pre-commit
rev: v0.15.5
hooks:
- id: ruff-format
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
args: ["--extend-ignore=E701"]
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