Skip to content

refactor: enable PGH, PYI ruff rules and rename TCH to TC#619

Merged
mergify[bot] merged 1 commit intomainfrom
devs/jd/refactor/typing-cleanup/If3863e7940c5f32e5a39d7719984f32684799bf9
Feb 26, 2026
Merged

refactor: enable PGH, PYI ruff rules and rename TCH to TC#619
mergify[bot] merged 1 commit intomainfrom
devs/jd/refactor/typing-cleanup/If3863e7940c5f32e5a39d7719984f32684799bf9

Conversation

@jd
Copy link
Owner

@jd jd commented Feb 26, 2026

  • Add PGH (pygrep-hooks): enforces specific # type: ignore[code]
  • Add PYI (flake8-pyi): catches redundant numeric unions, stub issues
  • Rename deprecated TCH prefix to TC
  • Suppress PYI036 (false positive on string-quoted exit annotations)
  • Fix PYI041: simplify int | float to float in wait_exponential

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

@jd
Copy link
Owner Author

jd commented Feb 26, 2026

This pull request is part of a stack:

  1. refactor: enable PGH, PYI ruff rules and rename TCH to TC (#619) 👈

@jd jd force-pushed the devs/jd/refactor/typing-cleanup/If3863e7940c5f32e5a39d7719984f32684799bf9 branch 2 times, most recently from 02b6308 to 9be64c4 Compare February 26, 2026 13:07
Base automatically changed from devs/jd/refactor/typing-cleanup/I9cbcd372905800951e853543ae3d878f76370c7a to main February 26, 2026 14:06
- Add PGH (pygrep-hooks): enforces specific `# type: ignore[code]`
- Add PYI (flake8-pyi): catches redundant numeric unions, stub issues
- Rename deprecated TCH prefix to TC
- Suppress PYI036 (false positive on string-quoted __exit__ annotations)
- Fix PYI041: simplify `int | float` to `float` in wait_exponential

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Change-Id: If3863e7940c5f32e5a39d7719984f32684799bf9
@jd jd force-pushed the devs/jd/refactor/typing-cleanup/If3863e7940c5f32e5a39d7719984f32684799bf9 branch from 9be64c4 to 812fa5a Compare February 26, 2026 14:06
@jd jd marked this pull request as ready for review February 26, 2026 14:07
@mergify mergify bot merged commit ae2d75e into main Feb 26, 2026
9 checks passed
@mergify mergify bot deleted the devs/jd/refactor/typing-cleanup/If3863e7940c5f32e5a39d7719984f32684799bf9 branch February 26, 2026 14:07
@mergify
Copy link
Contributor

mergify bot commented Feb 26, 2026

Merge Queue Status

Rule: default


  • Entered queue2026-02-26 14:07 UTC
  • Checks passed · in-place
  • Merged2026-02-26 14:07 UTC · at 812fa5a00989a288b9743bb04da824689c6e219a

This pull request spent 4 seconds in the queue, with no time running CI.

Required conditions to merge

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.

1 participant