-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtreefmt.toml
More file actions
62 lines (53 loc) · 1.29 KB
/
treefmt.toml
File metadata and controls
62 lines (53 loc) · 1.29 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
55
56
57
58
59
60
61
62
[formatter.nix]
command = "alejandra"
options = ["--experimental-config", "codeqa/configs/alejandra.toml"]
includes = ["*.nix"]
[formatter.python]
command = "ruff"
options = ["format"]
includes = ["*.py"]
[formatter.yaml]
command = "yamlfmt"
options = ["-conf", "codeqa/configs/yamlfmt.yml"]
includes = ["*.yaml", "*.yml"]
excludes = [".copier-answers.yml"]
priority = 1
[formatter.toml]
command = "toml-sort"
includes = ["*.toml"]
priority = 1
[formatter.just]
command = "just"
options = ["--fmt", "--unstable"]
includes = ["justfile"]
[formatter.json]
command = "python"
options = ["codeqa/scripts/jsonfmt.py", "4"]
includes = ["*.json"]
[formatter.markdown]
command = "mdformat"
options = ["--no-codeformatters"]
includes = ["*.md"]
excludes = ["docs/md/*.md", "docs/md/**/*.md"]
priority = 2
[formatter.mdsf]
command = "mdsf"
options = [
"format",
"--config",
"codeqa/configs/mdsf.json",
"--cache",
".cache/mdsf_cache/",
]
includes = ["*.md"]
excludes = ["docs/md/*.md", "docs/md/**/*.md"]
priority = 1
[formatter.mkdocs]
command = "python"
options = ["codeqa/scripts/format-mkdocs.py"]
includes = ["docs/md/*.md", "docs/md/**/*.md"]
priority = 2
[formatter.shell]
command = "shfmt"
includes = ["*.sh", "*.bash", "*.envrc", "*.envrc.*"]
options = ["--simplify", "--write", "--indent", "2"]