Fix check:format not just checking

This commit is contained in:
Damien Elmes 2025-06-27 20:52:25 +07:00
parent b15d712bc5
commit 3995e01136

View file

@ -205,7 +205,7 @@ impl BuildAction for PythonFormat<'_> {
build.add_inputs("ruff", inputs![":pyenv:ruff"]);
let hash = simple_hash(self.inputs);
build.add_variable("check", if self.check_only { "--check" } else { "" });
build.add_variable("mode", if self.check_only { "--check" } else { "" });
build.add_output_stamp(format!(
"tests/python_format.{}.{hash}",