Skip to content

Improve performance of number.scientific#308

Open
hugovk wants to merge 1 commit intopython-humanize:mainfrom
hugovk:perflint
Open

Improve performance of number.scientific#308
hugovk wants to merge 1 commit intopython-humanize:mainfrom
hugovk:perflint

Conversation

@hugovk
Copy link
Copy Markdown
Member

@hugovk hugovk commented Apr 11, 2026

Replace for loop with list comprehension.

And add perflint to Ruff rules.

@hugovk hugovk added the changelog: Changed For changes in existing functionality label Apr 11, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.53%. Comparing base (4898365) to head (968f5aa).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #308      +/-   ##
==========================================
- Coverage   99.54%   99.53%   -0.01%     
==========================================
  Files          11       11              
  Lines         871      868       -3     
==========================================
- Hits          867      864       -3     
  Misses          4        4              
Flag Coverage Δ
macos-latest 97.46% <100.00%> (-0.01%) ⬇️
ubuntu-latest 97.46% <100.00%> (-0.01%) ⬇️
windows-latest 95.50% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Labels

changelog: Changed For changes in existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant