Skip to content

Modernize ruff configuration to follow latest guidelines#135

Merged
Takishima merged 4 commits intomainfrom
claude/modernize-ruff-config-PBdgF
Jan 7, 2026
Merged

Modernize ruff configuration to follow latest guidelines#135
Takishima merged 4 commits intomainfrom
claude/modernize-ruff-config-PBdgF

Conversation

@Takishima
Copy link
Copy Markdown
Owner

Summary

  • Modernize ruff config by removing deprecated settings (target-version, ANN101, ASYNC1, etc.)
  • Replace TCH with TC (renamed rule set)
  • Add new rule sets: DOC (pydoclint), PYI (flake8-pyi), PD (pandas-vet)
  • Remove deprecated flake8-annotations options
  • Configure blacken-docs to use ruff instead of black
  • Fix documentation error (removed non-existent namespace parameter from docstring)

Test plan

  • All pre-commit hooks pass
  • Ruff check runs successfully with new configuration

claude added 4 commits January 7, 2026 15:41
- Remove target-version (now inferred from requires-python)
- Replace TCH with TC (renamed rule set)
- Remove ASYNC1 (merged into ASYNC)
- Remove deprecated/removed rules from ignore: ANN101, E111, E114, E117, W191
- Remove duplicate S603 and unused COM812/COM819 from ignore
- Add new rule sets: DOC (pydoclint), PYI (flake8-pyi), PD (pandas-vet)
- Move LOG rule to alphabetical order
- Remove deprecated flake8-annotations options: mypy-init-return, suppress-none-returning
- Add DOC to per-file-ignores for tests
- Fix typo: "rulues" -> "rules" in comment
- Add ANN204, DOC201, DOC501 to global ignore list (too strict for codebase)
- Add PYI024 to test file ignores
- Fix DOC102: remove documented param 'namespace' not in function signature
- Remove blacken-docs hook (no Python code blocks in documentation)
Configure blacken-docs to use ruff instead of black for formatting
Python code blocks in documentation files.
@codacy-production
Copy link
Copy Markdown

codacy-production bot commented Jan 7, 2026

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.00% (target: -0.10%) (target: 70.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (2015b51) 604 604 100.00%
Head commit (6d40b02) 604 (+0) 604 (+0) 100.00% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#135) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (2015b51) to head (6d40b02).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #135   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        10           
  Lines          604       604           
  Branches       101       101           
=========================================
  Hits           604       604           

☔ 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.

@Takishima Takishima merged commit 31f4f29 into main Jan 7, 2026
39 checks passed
@Takishima Takishima deleted the claude/modernize-ruff-config-PBdgF branch January 7, 2026 15:59
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.

2 participants