Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions crates/ty/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ doctest = false
[dependencies]
ruff_db = { workspace = true, features = ["os", "cache", "junit"] }
ruff_diagnostics = { workspace = true }
ruff_notebook = { workspace = true }
ruff_ranged_value = { workspace = true }
ty_combine = { workspace = true }
ty_project = { workspace = true, features = ["zstd", "junit"] }
Expand All @@ -41,6 +42,7 @@ rayon = { workspace = true }
salsa = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
similar = { workspace = true }
tracing = { workspace = true, features = ["release_max_level_debug"] }
tracing-flame = { workspace = true }
tracing-subscriber = { workspace = true }
Expand Down
4 changes: 3 additions & 1 deletion crates/ty/docs/cli.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions crates/ty/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,20 @@ pub(crate) struct CheckCommand {
#[arg(long, conflicts_with("fix"))]
pub(crate) add_ignore: bool,

/// Only report diagnostics introduced since a Git revision.
///
/// The project is checked at the merge base and again at the current working tree. Existing
/// diagnostics are matched across unchanged lines, including lines moved by other edits.
/// If no revision is provided, the remote's default branch is used when available.
#[arg(
long,
value_name = "REVISION",
num_args = 0..=1,
default_missing_value = "",
conflicts_with_all = ["watch", "fix", "add_ignore"]
)]
pub(crate) diff: Option<String>,

/// Run the command within the given project directory.
///
/// All `pyproject.toml` files will be discovered by walking up the directory tree from the given project directory,
Expand Down
Loading
Loading