Skip to content

Conversation

@InSyncWithFoo
Copy link
Contributor

@InSyncWithFoo InSyncWithFoo commented Mar 12, 2025

Summary

Follow-up to #16677.

This change converts all unit tests (69 of them) in noqa.rs to use inline snapshots instead. It extends the file by more than 1000 lines, but the tests are now much easier to read and reason about.

Test Plan

cargo insta test.

@InSyncWithFoo
Copy link
Contributor Author

(It was painful switching back and forth to find the corresponding snapshot files.)

@codspeed-hq
Copy link

codspeed-hq bot commented Mar 12, 2025

CodSpeed Performance Report

Merging #16687 will degrade performances by 4.6%

Comparing InSyncWithFoo:noqa (d2c9f74) with micha/ruff-0.10 (7bc8bb2)

Summary

❌ 1 regressions
✅ 31 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
red_knot_check_file[incremental] 5.2 ms 5.5 ms -4.6%

@github-actions
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@MichaReiser MichaReiser requested a review from dylwil3 March 12, 2025 18:02
@MichaReiser MichaReiser added the testing Related to testing Ruff itself label Mar 12, 2025
Copy link
Collaborator

@dylwil3 dylwil3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it, thank you!

@dylwil3 dylwil3 merged commit 78164ab into astral-sh:micha/ruff-0.10 Mar 12, 2025
20 of 21 checks passed
@InSyncWithFoo InSyncWithFoo deleted the noqa branch March 12, 2025 18:18
MichaReiser pushed a commit that referenced this pull request Mar 13, 2025
## Summary

Follow-up to #16677.

This change converts all unit tests (69 of them) in `noqa.rs` to use
inline snapshots instead. It extends the file by more than 1000 lines,
but the tests are now much easier to read and reason about.

## Test Plan

`cargo insta test`.
MichaReiser pushed a commit that referenced this pull request Mar 13, 2025
## Summary

Follow-up to #16677.

This change converts all unit tests (69 of them) in `noqa.rs` to use
inline snapshots instead. It extends the file by more than 1000 lines,
but the tests are now much easier to read and reason about.

## Test Plan

`cargo insta test`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Related to testing Ruff itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants