-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pre-commit-config.yaml
69 lines (68 loc) · 2 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: requirements-txt-fixer
- id: check-merge-conflict
- id: debug-statements
- id: mixed-line-ending
args: [--fix=lf]
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/asottile/blacken-docs
rev: 1.18.0
hooks:
- id: blacken-docs
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.14.0
hooks:
- id: pretty-format-toml
args: [--autofix]
- id: pretty-format-yaml
args: [--autofix, --indent, '2']
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
files: \.(css|less|scss|graphql|gql|js|jsx|json|md|markdown|mdown|mkdn|mdx|vue)$
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.9.0
hooks:
- id: eslint
args: [--format=compact]
additional_dependencies:
- eslint@>=6.2.2
- eslint-plugin-import@>=2.18.0
- eslint-plugin-node@>=9.1.0
- eslint-plugin-promise@>=4.2.1
- eslint-plugin-standard@>=4.0.0
- eslint-config-prettier@latest
- eslint-plugin-prettier@latest
- eslint-formatter-compact@latest
- repo: https://github.com/awebdeveloper/pre-commit-stylelint
rev: 0.0.2
hooks:
- id: stylelint
args: [--formatter=compact]
additional_dependencies:
- stylelint@latest
exclude: ^media/colorbox/colorbox.css|media/colorbox/jquery.colorbox-min.js|html/downloads/doap/wammu.xml|html/downloads/doap/gammu.xml|html/downloads/pad/gammu.xml|html/downloads/pad/wammu.xml$