astral-sh/ruff

Cleanup Ruff's CLI tests

Aberta

#19.016 aberto em 28 de jun. de 2025

 (2 comentários) (0 reação) (0 responsável)Rust (2.088 forks)batch import
help wantedtesting

Métricas do repositório

Stars
 (47.527 estrelas)
Métricas de merge de PR
 (Mesclagem média 3d 8h) (573 fundiu PRs em 30d)

Description

Ruff's CLI integration tests (crates/ruff/tests) contain a lot of shared boilerplate code (shared between test functions but also test files). We should try to extract those into a more reusable testing infra. I think ty's CLI test infra works pretty well and we should try if we can use the same structure for ruff.

https://github.com/astral-sh/ruff/blob/1f27d53fd576e92a7d2cd4abc1761d6ad836d85b/crates/ty/tests/cli/main.rs#L600

Guia do colaborador