Repository navigation
Expand file tree
/
Copy pathmise.toml
More file actions
85 lines (70 loc) · 1.62 KB
/
Copy pathmise.toml
File metadata and controls
85 lines (70 loc) · 1.62 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
min_version = "2026.11.1"
[settings]
idiomatic_version_file_enable_tools = ["rust"]
task.run_auto_install = false
[tools]
actionlint = "latest"
cargo-insta = "latest"
yamlfmt = "latest"
[tasks.all]
alias = "a"
description = "Format, lint, and test"
run = [
{ task = "fmt" },
{ task = "lint" },
{ task = "test" },
]
[tasks.build]
alias = "b"
description = "Build the application"
run = "cargo build"
[tasks.check]
alias = "c"
description = "Check all targets"
run = "cargo check --all-targets"
[tasks.fmt]
alias = "f"
description = "Format Rust source files"
run = "cargo fmt --all"
[tasks."fmt:check"]
alias = ["fc", "fmt-check"]
description = "Check Rust source formatting"
run = "cargo fmt --all -- --check"
[tasks.lint]
alias = "l"
description = "Lint all targets"
run = "cargo clippy --all-targets"
[tasks."lint:fix"]
alias = ["lf", "lint-fix"]
description = "Apply Clippy fixes"
run = "cargo clippy --fix --allow-dirty --allow-staged"
[tasks.run]
alias = "r"
description = "Run the application"
raw_args = true
run = "cargo run --"
[tasks.test]
alias = "t"
description = "Run all tests"
raw_args = true
run = "cargo test"
[tasks."update-snapshots"]
alias = "us"
description = "Update test snapshots"
run = "cargo insta test --accept"
[tasks."review-snapshots"]
alias = "re"
description = "Review pending test snapshots"
run = "cargo insta review"
[tasks."lint:actions"]
description = "Lint GitHub Actions workflows"
run = "actionlint"
[tasks."lint:yaml"]
description = "Lint YAML files"
run = '''
yamlfmt \
-lint \
-quiet \
-formatter 'retain_line_breaks_single=true' \
$(git ls-files '*.yml' '*.yaml')
'''