@@ -90,13 +90,18 @@ set_env PYTHON_FILES ${py_files}
90
90
command = " rustup"
91
91
args = [" update" , " stable" ]
92
92
93
+ [tasks .taplo-cli-update ]
94
+ install_crate = { crate_name = " taplo-cli" , binary = " taplo" , test_arg = [
95
+ " --help" ,
96
+ ], version = " 0.6.0" }
97
+
93
98
[tasks .cargo-make-deps-update ]
94
- dependencies = [" rustup-update" ]
99
+ dependencies = [" rustup-update" , " taplo-cli-update " ]
95
100
install_crate = { crate_name = " cargo-update" , binary = " cargo-install-update" , test_arg = [
96
101
" -V" ,
97
102
], min_version = " 7.0.1" }
98
103
command = " cargo"
99
- args = [" install-update" , " taplo-cli " , " cargo-make" ]
104
+ args = [" install-update" , " cargo-make" ]
100
105
101
106
[tasks .generate-common-constants-rs ]
102
107
script_runner = " @duckscript"
@@ -822,6 +827,16 @@ dependencies = ["set-python-files"]
822
827
command = " ${PYTHON}"
823
828
args = [" -m" , " pylint" , " --output-format=parseable" , " @@split(PYTHON_FILES, )" ]
824
829
830
+ [tasks .format-toml ]
831
+ description = " Formats all toml files defined in the CARGO_MAKE_FORMAT_TOML_FILES environment variable."
832
+ category = " Development"
833
+ condition = { env_set = [" CARGO_MAKE_FORMAT_TOML_FILES" ] }
834
+ install_crate = { crate_name = " taplo-cli" , binary = " taplo" , version = " 0.6.0" , test_arg = [
835
+ " --help" ,
836
+ ] }
837
+ command = " taplo"
838
+ args = [" format" , " ${CARGO_MAKE_FORMAT_TOML_FILES}" ]
839
+
825
840
[tasks .toml-format-check ]
826
841
# Note format-toml task is defined by cargo-make to use crate taplo-cli, but the version is
827
842
# unspecified. Task cargo-make-deps-update keeps the dev version in sync with CI.
0 commit comments