mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-07 21:25:08 +00:00
Support relative --ty-path
in ty-benchmark (#18385)
Some checks failed
CI / cargo fmt (push) Has been cancelled
[ty Playground] Release / publish (push) Has been cancelled
CI / Determine changes (push) Has been cancelled
CI / cargo build (release) (push) Has been cancelled
CI / python package (push) Has been cancelled
CI / pre-commit (push) Has been cancelled
CI / mkdocs (push) Has been cancelled
CI / cargo clippy (push) Has been cancelled
CI / cargo test (linux) (push) Has been cancelled
CI / cargo test (linux, release) (push) Has been cancelled
CI / cargo test (windows) (push) Has been cancelled
CI / cargo test (wasm) (push) Has been cancelled
CI / cargo build (msrv) (push) Has been cancelled
CI / cargo fuzz build (push) Has been cancelled
CI / fuzz parser (push) Has been cancelled
CI / test scripts (push) Has been cancelled
CI / ecosystem (push) Has been cancelled
CI / Fuzz for new ty panics (push) Has been cancelled
CI / cargo shear (push) Has been cancelled
CI / formatter instabilities and black similarity (push) Has been cancelled
CI / test ruff-lsp (push) Has been cancelled
CI / check playground (push) Has been cancelled
CI / benchmarks (push) Has been cancelled
Some checks failed
CI / cargo fmt (push) Has been cancelled
[ty Playground] Release / publish (push) Has been cancelled
CI / Determine changes (push) Has been cancelled
CI / cargo build (release) (push) Has been cancelled
CI / python package (push) Has been cancelled
CI / pre-commit (push) Has been cancelled
CI / mkdocs (push) Has been cancelled
CI / cargo clippy (push) Has been cancelled
CI / cargo test (linux) (push) Has been cancelled
CI / cargo test (linux, release) (push) Has been cancelled
CI / cargo test (windows) (push) Has been cancelled
CI / cargo test (wasm) (push) Has been cancelled
CI / cargo build (msrv) (push) Has been cancelled
CI / cargo fuzz build (push) Has been cancelled
CI / fuzz parser (push) Has been cancelled
CI / test scripts (push) Has been cancelled
CI / ecosystem (push) Has been cancelled
CI / Fuzz for new ty panics (push) Has been cancelled
CI / cargo shear (push) Has been cancelled
CI / formatter instabilities and black similarity (push) Has been cancelled
CI / test ruff-lsp (push) Has been cancelled
CI / check playground (push) Has been cancelled
CI / benchmarks (push) Has been cancelled
## Summary This currently doesn't work because the benchmark changes the working directory. Also updates the process name to make it easier to compare two local ty binaries.
This commit is contained in:
parent
b390b3cb8e
commit
aa1fad61e0
1 changed files with 4 additions and 4 deletions
|
@ -59,9 +59,9 @@ class Ty(Tool):
|
|||
|
||||
def __init__(self, *, path: Path | None = None):
|
||||
self.name = str(path) or "ty"
|
||||
self.path = path or (
|
||||
(Path(__file__) / "../../../../../target/release/ty").resolve()
|
||||
)
|
||||
self.path = (
|
||||
path or (Path(__file__) / "../../../../../target/release/ty")
|
||||
).resolve()
|
||||
|
||||
assert self.path.is_file(), (
|
||||
f"ty not found at '{self.path}'. Run `cargo build --release --bin ty`."
|
||||
|
@ -73,7 +73,7 @@ class Ty(Tool):
|
|||
command.extend(["--python", str(venv.path)])
|
||||
|
||||
return Command(
|
||||
name="ty",
|
||||
name=self.name,
|
||||
command=command,
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue