-
Notifications
You must be signed in to change notification settings - Fork 10
/
.pre-commit-config.yaml
163 lines (163 loc) · 4.53 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
repos:
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.3.3
hooks:
- id: prettier
args:
- --cache
- --cache-location=.prettier-cache
- --ignore-path=.gitignore
- repo: meta
hooks:
- id: check-hooks-apply
name: check-hooks-apply
- id: check-useless-excludes
name: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
name: trailing-whitespace
- id: end-of-file-fixer
name: end-of-file-fixer
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.13.0
hooks:
- id: markdownlint-cli2
exclude: ^LICENSE\.md$
- repo: https://github.com/mondeja/rust-pc-hooks
rev: v1.2.0
hooks:
- id: leptosfmt
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
- id: clippy
alias: clippy-no-features
name: clippy-no-features
args: [
--exclude=leptos-fluent-ssr-hydrate-axum-example,
--exclude=leptos-fluent-ssr-islands-axum-example, # TODO: excluded by Leptos bug
--workspace,
--,
-D,
warnings,
-D,
clippy::perf,
-D,
clippy::print_stdout,
-D,
clippy::explicit_iter_loop,
-D,
clippy::uninlined_format_args,
-D,
clippy::semicolon_if_nothing_returned,
-A,
deprecated,
]
- id: clippy
alias: clippy-hydrate
name: clippy-hydrate
args:
[
--features=hydrate,
--exclude=leptos-fluent-ssr-hydrate-axum-example,
--workspace,
--,
-D,
warnings,
-D,
clippy::perf,
-D,
clippy::print_stdout,
-D,
clippy::explicit_iter_loop,
-D,
clippy::uninlined_format_args,
-D,
clippy::semicolon_if_nothing_returned,
-A,
deprecated,
]
- id: clippy
alias: clippy-ssr-actix
name: clippy-ssr-actix
args:
[
"--features=ssr,actix",
--exclude=leptos-fluent-ssr-hydrate-axum-example,
--exclude=leptos-fluent-ssr-islands-axum-example,
--exclude=leptos-fluent-csr-complete-example,
--exclude=leptos-fluent-csr-minimal-example,
--workspace,
--,
-D,
warnings,
-D,
clippy::perf,
-D,
clippy::print_stdout,
-D,
clippy::explicit_iter_loop,
-D,
clippy::uninlined_format_args,
-D,
clippy::semicolon_if_nothing_returned,
-A,
deprecated,
]
- id: clippy
alias: clippy-ssr-axum
name: clippy-ssr-axum
args:
[
"--features=ssr,leptos-fluent/axum,yaml",
--exclude=leptos-fluent-ssr-hydrate-actix-example,
--exclude=leptos-fluent-csr-complete-example,
--exclude=leptos-fluent-csr-minimal-example,
--exclude=leptos-fluent-ssr-islands-axum-example,
--workspace,
--,
-D,
warnings,
-D,
clippy::perf,
-D,
clippy::print_stdout,
-D,
clippy::explicit_iter_loop,
-D,
clippy::uninlined_format_args,
-D,
clippy::semicolon_if_nothing_returned,
-A,
deprecated,
]
- repo: https://github.com/mondeja/rust-pc-hooks
rev: v1.3.0
hooks:
- id: cargo-machete
args:
- --skip-target-dir
- id: cargo-readme
alias: cargo-readme-workspace
name: cargo-readme-workspace
args:
- --project-root=leptos-fluent
- --output=../README.md
- --template=../README.tpl
- id: cargo-readme
alias: cargo-readme-leptos-fluent
name: cargo-readme-leptos-fluent
args:
- --project-root=leptos-fluent
- --output=README.md
- --template=../README.tpl
- id: cargo-readme
alias: cargo-readme-leptos-fluent-macros
name: cargo-readme-leptos-fluent-macros
args:
- --project-root=leptos-fluent-macros
- --output=README.md
- id: lychee