-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
54 lines (49 loc) · 1.53 KB
/
.pre-commit-config.yaml
File metadata and controls
54 lines (49 loc) · 1.53 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
54
repos:
# - repo: https://github.com/python/black
# rev: stable
# hooks:
# - id: black
# language_version: python3.6
# verbose: true
# - repo: https://github.com/timothycrosley/isort
# rev: 4.3.20
# hooks:
# - id: isort
# language_version: python3.6
# verbose: true
# types: [python] # En teoría no haría falta
# additional_dependencies: ["isort[pyproject]"]
- repo: local
hooks:
- id: stylelint
name: stylelint
entry: npx stylelint
args: [--fix, --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, -i, "4", -bn, -sr, -ci]
language: system
types: [shell]
verbose: true