Add uv sync --check flag (#12342)

## Summary

Closes #12338 

## Test Plan

`cargo test`

---------

Co-authored-by: Zanie Blue <contact@zanie.dev>
This commit is contained in:
Ahmed Ilyas
2025-03-21 16:48:27 +01:00
committed by GitHub
parent 26d40cb8a5
commit a80353de2b
6 changed files with 98 additions and 3 deletions
+9
View File
@@ -3285,6 +3285,15 @@ pub struct SyncArgs {
value_parser = parse_maybe_string,
)]
pub python: Option<Maybe<String>>,
/// Check if the Python environment is synchronized with the project.
///
/// If the environment is not up to date, uv will exit with an error.
#[arg(long, overrides_with("no_check"))]
pub check: bool,
#[arg(long, overrides_with("check"), hide = true)]
pub no_check: bool,
}
#[derive(Args)]