-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
53 lines (53 loc) · 1.39 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
exclude: conda-lock.*\.yml|pixi\.lock
- id: check-json
exclude: (outputs/.*|\.devcontainer/.*)\.json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-yaml
exclude: cloudformation\.yml
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/gitleaks/gitleaks
rev: v8.21.1
hooks:
- id: gitleaks
# - repo: https://github.com/ComPWA/taplo-pre-commit
# rev: v0.9.3
# hooks:
# - id: taplo-format
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.7.1
hooks:
# Run the linter.
- id: ruff
args: [--fix]
name: auto-fix Python lint errors
# Run the formatter.
- id: ruff-format
name: format Python source
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.10.0-1
hooks:
- id: shfmt
name: format shell scripts
- repo: local
hooks:
- id: dprint
name: format source files
entry: dprint fmt
language: node
types_or:
- yaml
- toml
- json
exclude: ^models/
additional_dependencies:
- dprint