-
Notifications
You must be signed in to change notification settings - Fork 54
/
taplo.toml
51 lines (45 loc) · 1.03 KB
/
taplo.toml
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
include = [
"**/Move.toml",
"**/Cargo.toml",
"**/rust-toolchain.toml",
"**/rustfmt.toml",
"**/diesel.toml",
"**/pyproject.toml",
"taplo.toml",
]
[formatting]
align_entries = false
allowed_blank_lines = 1
array_auto_collapse = true
array_auto_expand = true
column_width = 80
compact_arrays = true
compact_inline_tables = false
crlf = false
indent_string = " "
reorder_keys = false
trailing_newline = true
[[rule]]
include = ["**/Move.toml"]
keys = ["dependencies"]
formatting = { reorder_keys = true }
[[rule]]
include = ["**/Cargo.toml"]
keys = [
"dependencies",
"dev-dependencies",
"workspace.dependencies",
"workspace.dev-dependencies",
]
formatting = { reorder_keys = true }
[[rule]]
include = ["**/rustfmt.toml"]
formatting = { reorder_keys = true }
[[rule]]
include = ["**/pyproject.toml"]
keys = ["tool.poetry.dependencies", "tool.poetry.group.dev.dependencies"]
formatting = { reorder_keys = true }
[[rule]]
include = ["taplo.toml"]
keys = ["formatting"]
formatting = { reorder_keys = true }