-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.pre-commit-config.yaml
37 lines (37 loc) · 988 Bytes
/
.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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.4.0"
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: pretty-format-json
args: ["--autofix"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.0-alpha.6" # Use the sha or tag you want to point at
hooks:
- id: prettier
exclude: "main.*"
- repo: https://github.com/lovesegfault/beautysh
rev: "v6.2.1"
hooks:
- id: beautysh
- repo: https://github.com/adrienverge/yamllint
rev: "v1.30.0"
hooks:
- id: yamllint
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
args: [--max-line-length=140]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: "v0.4.4"
hooks:
# Run the linter.
- id: ruff
args: [--fix]
# Run the formatter.
- id: ruff-format