Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
eec7b61
load a staged module with python's own source loader rather than a wr…
KotlinIsland Oct 21, 2026
f76dec4
by build prints its diagnostics in the format --output-format or TY_O…
KotlinIsland Oct 21, 2026
01b4ff6
add `by run --coverage`, which measures the program with coverage.py …
KotlinIsland Oct 21, 2026
7b88c67
answer by/evaluatableExpression, the expression a debugger evaluates …
KotlinIsland Oct 21, 2026
87e99e4
add by/documentUsageCounts: each declaration of a document with how m…
KotlinIsland Oct 21, 2026
5f3cdeb
answer which tests call which code with by/testSubjects and by/subjec…
KotlinIsland Oct 21, 2026
0e017e4
add by/overridableMembers and by/overrideMembers, listing the methods…
KotlinIsland Oct 21, 2026
1b2d0a0
mark the one import that resolves an unresolved name in its quick fix…
KotlinIsland Oct 21, 2026
b2d2396
move a clause that continues a compound statement out to it when its …
KotlinIsland Oct 21, 2026
f2f30a1
report every comma-separated list and each definition's declared name…
KotlinIsland Oct 21, 2026
9388c64
answer by/unwrap with the statements around a range that unwrap into …
KotlinIsland Oct 21, 2026
c61bf1d
mark names bound in a function's scope with a functionScope semantic …
KotlinIsland Oct 21, 2026
be84729
correct the functionScope tests' offsets and the new-test name snapsh…
KotlinIsland Oct 21, 2026
82c4895
run a reverse by/transpile on a thread with no database attached, as …
KotlinIsland Oct 21, 2026
18fa185
count a document's usages and implementations in one pass over the wo…
KotlinIsland Oct 22, 2026
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
13 changes: 12 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.

19 changes: 19 additions & 0 deletions crates/ty/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,18 @@ pub(crate) enum Command {
/// was started in.
#[arg(long)]
in_build: bool,
/// Measure which lines run, with coverage.py, and write them to PATH as
/// an LCOV report.
///
/// A transpiled module is reported against its `.by` file and lines: a
/// `.by` line is covered when any statement written for it ran. A `.py`
/// the project carries over is reported against the file in the project
/// rather than the staged copy that ran. The project's coverage.py
/// configuration applies to the project's files as they are in the
/// project, with `--in-build` too, and coverage.py has to be installed in
/// the interpreter the program runs on.
#[arg(long, value_name = "PATH", conflicts_with = "compiled")]
coverage: Option<PathBuf>,
},

/// Start a new project.
Expand Down Expand Up @@ -177,6 +189,13 @@ pub(crate) enum Command {
/// `package <name>` for every top-level package that came out.
#[arg(long)]
print_manifest: bool,
/// The format to print the build's diagnostics in, as `by check` takes it.
///
/// They go to stderr whatever the format, among the lines saying what
/// the build wrote, so a structured format is what lets a CI job or an
/// editor read them out of the rest.
#[arg(long, env = EnvVars::TY_OUTPUT_FORMAT)]
output_format: Option<OutputFormat>,
#[command(flatten)]
lowering: LoweringArgs,
},
Expand Down
Loading
Loading