Skip to content

Comments

[refurb] Handle non-finite decimals in verbose-decimal-constructor (FURB157)#14596

Merged
dylwil3 merged 11 commits intoastral-sh:mainfrom
dylwil3:decimal-nan
Dec 3, 2024
Merged

[refurb] Handle non-finite decimals in verbose-decimal-constructor (FURB157)#14596
dylwil3 merged 11 commits intoastral-sh:mainfrom
dylwil3:decimal-nan

Conversation

@dylwil3
Copy link
Collaborator

@dylwil3 dylwil3 commented Nov 26, 2024

This PR extends the Decimal parsing used in verbose-decimal-constructor (FURB157) to better handle non-finite Decimal objects, avoiding some false negatives.

Closes #14587

@github-actions
Copy link
Contributor

github-actions bot commented Nov 26, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@MichaReiser MichaReiser added the bug Something isn't working label Nov 26, 2024
@dylwil3 dylwil3 merged commit 91e2d9a into astral-sh:main Dec 3, 2024
@dylwil3 dylwil3 deleted the decimal-nan branch December 3, 2024 00:13
dcreager added a commit that referenced this pull request Dec 3, 2024
* main:
  [`ruff`] Extend unnecessary-regular-expression to non-literal strings (`RUF055`) (#14679)
  Minor followups to RUF052 (#14755)
  [red-knot] Property tests (#14178)
  [red-knot] `is_subtype_of` fix for `KnownInstance` types (#14750)
  Improve docs for flake8-use-pathlib rules (#14741)
  [`ruff`] Implemented `used-dummy-variable` (`RUF052`) (#14611)
  [red-knot] Simplify tuples containing `Never` (#14744)
  Possible fix for flaky file watching test (#14543)
  [`flake8-import-conventions`] Improve syntax check for aliases supplied in configuration for `unconventional-import-alias (ICN001)` (#14745)
  [red-knot] Deeper understanding of `LiteralString` (#14649)
  red-knot: support narrowing for bool(E) (#14668)
  [`refurb`] Handle non-finite decimals in `verbose-decimal-constructor (FURB157)` (#14596)
  [red-knot] Re-enable linter corpus tests (#14736)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FURB157 has false negatives for non-finite float strings

4 participants