Skip to content

[refurb] Detect more exotic float literals in FURB164 - #18925

Merged
MichaReiser merged 1 commit into
astral-sh:mainfrom
robsdedude:fix/furb164-detect-exotic-float-literals
Jun 25, 2025
Merged

MichaReiser merged 1 commit into
astral-sh:mainfrom
robsdedude:fix/furb164-detect-exotic-float-literals

Conversation

@robsdedude

@robsdedude robsdedude commented Jun 24, 2025 •

Copy link
Copy Markdown
Contributor

Summary

Make FURB164 detect more valid non-finite float literals. E.g., float("  -inF\n \t").

Test Plan

New funky float literals have been added to the test file.

Related

This is a follow up to #18630 fixing an issue I spotted while working that PR

@github-actions

Copy link
Copy Markdown
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@robsdedude
robsdedude marked this pull request as ready for review June 24, 2025 21:01
@MichaReiser MichaReiser added bug An issue describing something that isn't working, or a PR that fixes a bug rule Implementing or modifying a lint rule labels Jun 25, 2025
@MichaReiser

Copy link
Copy Markdown
Member

Thank you

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

Labels

bug An issue describing something that isn't working, or a PR that fixes a bug rule Implementing or modifying a lint rule

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants