Skip to content

Enable pyupgrade Ruff rules - #235

Merged
janluke merged 7 commits into
masterfrom
codex/modernize-ruff-rules-after-225
Sep 11, 2026
Merged

Enable pyupgrade Ruff rules#235
janluke merged 7 commits into
masterfrom
codex/modernize-ruff-rules-after-225

Conversation

@janluke

@janluke janluke commented Sep 11, 2026

Copy link
Copy Markdown
Owner

Enable pyupgrade Ruff rules:

  • UP006 collection annotations
  • UP007 unions
  • UP031 percent formatting
  • UP032 f-strings
  • UP035 deprecated imports
  • UP037 quoted annotations
  • UP045 optionals

A full --select UP audit now reports no findings.

Closes #226.

@codecov

codecov Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.82609% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.71%. Comparing base (f3630fd) to head (b6e0ae0).

Files with missing lines Patch % Lines
src/cloup/_sections.py 85.71% 1 Missing ⚠️
src/cloup/constraints/conditions.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #235      +/-   ##
==========================================
+ Coverage   96.68%   96.71%   +0.02%     
==========================================
  Files          22       22              
  Lines        1540     1552      +12     
==========================================
+ Hits         1489     1501      +12     
  Misses         51       51              

☔ View full report in Codecov by Harness.
📢 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.

@janluke
janluke merged commit 6bbc438 into master Sep 11, 2026
15 checks passed
@janluke
janluke deleted the codex/modernize-ruff-rules-after-225 branch September 11, 2026 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable pyupgrade Ruff rules to modernize the code

1 participant