Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make unreachable a test rule for now #15252

Merged
merged 2 commits into from
Jan 4, 2025
Merged

Conversation

MichaReiser
Copy link
Member

@MichaReiser MichaReiser commented Jan 4, 2025

Summary

I want to do a bugfix release after we reverted the problematic changes with UP006 (see #15250)
but I'm worried that the new unreachable rule results in infinite loops as reported here #15248

That's why I'm excluding the unreachable rule from the bugfix release for now. We should do some more fuzzing before promoting the rule to preview.

Test Plan

cargo test and cargo test --release

the rule can no longer be selected:

❯ cargo run -- check --select PLW0101
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.13s
     Running `target/debug/ruff check --select PLW0101`
error: invalid value 'PLW0101' for '--select <RULE_CODE>'

For more information, try '--help'.

There are no ecosystem changes because the ecosystem tests build with the test rules feature enabled.

@MichaReiser MichaReiser added the preview Related to preview mode features label Jan 4, 2025
@MichaReiser MichaReiser force-pushed the micha/unreachable-test-rule branch from 8bc6dbe to eb1394b Compare January 4, 2025 11:33
Copy link
Contributor

github-actions bot commented Jan 4, 2025

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

@MichaReiser MichaReiser force-pushed the micha/unreachable-test-rule branch from c3dc9a8 to 476bdd8 Compare January 4, 2025 11:43
@MichaReiser
Copy link
Member Author

CC: @dylwil3

@MichaReiser MichaReiser merged commit f319531 into main Jan 4, 2025
21 checks passed
@MichaReiser MichaReiser deleted the micha/unreachable-test-rule branch January 4, 2025 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preview Related to preview mode features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants