-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
60 lines (55 loc) · 1.62 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
fail_fast: false
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.5.6
hooks:
# Run the linter.
- id: ruff
types_or: [python, pyi, jupyter]
args: [--fix]
verbose: true
# Run the formatter.
- id: ruff-format
types_or: [python, pyi, jupyter]
verbose: true
- repo: local
hooks:
- id: stylelint
name: stylelint
entry: npx stylelint
args: [--fix, --allow-empty-input, --ignore-path, .ignore]
language: system
types: [file]
files: \.(vue|htm|html|css|sss|less|scss|sass|mak|mako|jinja2)$
verbose: true
- id: prettier
name: prettier
entry: npx prettier
args: [--write, --ignore-path, .ignore]
language: system
types: [file]
files: \.(js|json|md|vue|yaml|yml)$ # html
verbose: true
- id: html-beautify
name: html-beautify
entry: npx html-beautify
args: []
language: system
types: [file]
files: \.(htm|html|mak|mako|jinja2)$
verbose: true
stages: [manual]
- id: shfmt
name: shfmt
entry: shfmt
args: [-l, -w]
language: system
types: [shell]
verbose: true
- id: shellcheck
name: shellcheck
entry: shellcheck
language: system
types: [shell]
verbose: true