mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-05 23:15:40 -06:00
chore: add precommit bacon job
This commit is contained in:
27
bacon.toml
27
bacon.toml
@@ -28,16 +28,18 @@ need_stdout = false
|
|||||||
|
|
||||||
[jobs.test]
|
[jobs.test]
|
||||||
command = [
|
command = [
|
||||||
"cargo", "nextest", "run",
|
"cargo",
|
||||||
"--hide-progress-bar", "--failure-output", "final"
|
"nextest",
|
||||||
|
"run",
|
||||||
|
"--hide-progress-bar",
|
||||||
|
"--failure-output",
|
||||||
|
"final",
|
||||||
]
|
]
|
||||||
need_stdout = true
|
need_stdout = true
|
||||||
analyzer = "nextest"
|
analyzer = "nextest"
|
||||||
|
|
||||||
[jobs.coverage]
|
[jobs.coverage]
|
||||||
command = [
|
command = ["just", "report-coverage"]
|
||||||
"just", "report-coverage"
|
|
||||||
]
|
|
||||||
need_stdout = true
|
need_stdout = true
|
||||||
ignored_lines = [
|
ignored_lines = [
|
||||||
"info:",
|
"info:",
|
||||||
@@ -54,7 +56,7 @@ ignored_lines = [
|
|||||||
"\\s*Finished.+in \\d+",
|
"\\s*Finished.+in \\d+",
|
||||||
"\\s*Summary\\s+\\[",
|
"\\s*Summary\\s+\\[",
|
||||||
"\\s*Blocking",
|
"\\s*Blocking",
|
||||||
"Finished report saved to"
|
"Finished report saved to",
|
||||||
]
|
]
|
||||||
on_change_strategy = "wait_then_restart"
|
on_change_strategy = "wait_then_restart"
|
||||||
|
|
||||||
@@ -66,21 +68,26 @@ need_stdout = false
|
|||||||
[jobs.doc-open]
|
[jobs.doc-open]
|
||||||
command = ["cargo", "doc", "--no-deps", "--open"]
|
command = ["cargo", "doc", "--no-deps", "--open"]
|
||||||
need_stdout = false
|
need_stdout = false
|
||||||
on_success = "back" # so that we don't open the browser at each change
|
on_success = "back" # so that we don't open the browser at each change
|
||||||
|
|
||||||
[jobs.run]
|
[jobs.run]
|
||||||
command = [
|
command = ["cargo", "run"]
|
||||||
"cargo", "run",
|
|
||||||
]
|
|
||||||
need_stdout = true
|
need_stdout = true
|
||||||
allow_warnings = true
|
allow_warnings = true
|
||||||
background = false
|
background = false
|
||||||
on_change_strategy = "kill_then_restart"
|
on_change_strategy = "kill_then_restart"
|
||||||
# kill = ["pkill", "-TERM", "-P"]'
|
# kill = ["pkill", "-TERM", "-P"]'
|
||||||
|
|
||||||
|
[jobs.precommit]
|
||||||
|
command = ["pre-commit", "run", "--all-files"]
|
||||||
|
need_stdout = true
|
||||||
|
background = false
|
||||||
|
on_change_strategy = "kill_then_restart"
|
||||||
|
|
||||||
[keybindings]
|
[keybindings]
|
||||||
c = "job:clippy"
|
c = "job:clippy"
|
||||||
alt-c = "job:check"
|
alt-c = "job:check"
|
||||||
ctrl-alt-c = "job:check-all"
|
ctrl-alt-c = "job:check-all"
|
||||||
shift-c = "job:clippy-all"
|
shift-c = "job:clippy-all"
|
||||||
f = "job:coverage"
|
f = "job:coverage"
|
||||||
|
p = "job:precommit"
|
||||||
|
|||||||
Reference in New Issue
Block a user