-
Notifications
You must be signed in to change notification settings - Fork 15
/
.pre-commit-config.yaml
69 lines (69 loc) · 1.92 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
default_language_version:
python: python3.11
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/PyCQA/bandit
rev: 1.7.10
hooks:
- id: bandit
args: [-c, pyproject.toml]
additional_dependencies: ["bandit[toml]"]
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.23
hooks:
- id: shellcheck
types: [bash]
exclude: ^boilerplate/
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
exclude: "mkdocs.yml"
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
args: ["--maxkb=5120"]
- id: check-json
exclude: ".vscode/settings.json"
- id: pretty-format-json
args: ["--autofix"]
exclude: ".vscode/settings.json"
- id: check-toml
- id: mixed-line-ending
- id: check-symlinks
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.8.0
# hooks:
# # See https://github.com/pre-commit/mirrors-mypy/blob/main/.pre-commit-hooks.yaml
# - id: mypy
# types_or: [python, pyi]
# args: [
# --ignore-missing-imports,
# --scripts-are-modules,
# ]
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.96.1
hooks:
- id: terraform_fmt
- id: terraform_validate
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: insert-license
files: \.py$
args:
- --license-filepath
- LICENSE_HEADER.txt
- --use-current-year
- --no-extra-eol
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.4.30
hooks:
# Update the uv lockfile
- id: uv-lock