Skip to content

Improve performance of number.scientific#308

Closed
hugovk wants to merge 1 commit into
python-humanize:mainfrom
hugovk:perflint
Closed

Improve performance of number.scientific#308
hugovk wants to merge 1 commit into
python-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).
⚠️ Report is 3 commits behind head on main.

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.

@hugovk
Copy link
Copy Markdown
Member Author

hugovk commented May 16, 2026

Already merged in #313 🚀

@hugovk hugovk closed this May 16, 2026
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