-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
53 lines (53 loc) · 1.47 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
53 lines (53 loc) · 1.47 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
49
50
51
52
53
# pre-commit.ci config reference: https://pre-commit.ci/#configuration
ci:
autoupdate_schedule: monthly
repos:
# autoformat and lint Python code
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.1
hooks:
- id: ruff
types_or:
- python
- jupyter
args: ["--fix", "--show-fixes"]
- id: ruff-format
types_or:
- python
- jupyter
- repo: https://github.com/executablebooks/mdformat
# 1.0.0 has some dependency conflicts
# might need to wait
rev: "0.7.22"
hooks:
- id: mdformat
additional_dependencies:
- mdformat-myst
- mdformat-black
- repo: https://github.com/google/yamlfmt
rev: v0.19.0
hooks:
- id: yamlfmt
exclude: "charts/.*/templates/.*"
# Misc autoformatting and linting
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: end-of-file-fixer
exclude_types: [svg, css, json]
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: requirements-txt-fixer
# - repo: https://github.com/antonbabenko/pre-commit-terraform
# rev: v1.103.0
# hooks:
# - id: terraform_fmt
# - id: terraform_docs
- repo: local
hooks:
- id: tofu-fmt
name: tofu-fmt
language: script
entry: ./tools/tofu-fmt
pass_filenames: true
files: \.(tf|tofu|tfvars|(tftest|tofutest|tfmock|tfquery)\.hcl)$