Skip to content

Adopt basedpyright with a bad-ass legacy baseline - #2194

Merged
Byron merged 1 commit into
mainfrom
fix-basedpyright
Jul 26, 2026
Merged

Byron merged 1 commit into
mainfrom
fix-basedpyright

Conversation

@Byron

@Byron Byron commented Jul 26, 2026

Copy link
Copy Markdown
Member

The bad-ass idea is to one fine day make Zed not light up anymore when looking at the bad-ass code.

So far, it's not working though, but this muthaf*ckin' PR is a start.

Limit analysis to the production and deprecation-test scope already checked by
mypy so unrelated tests and fuzz targets do not block adoption.

Pin basedpyright for reproducible diagnostics and baseline the existing
standard-mode findings. This preserves the current code while making new errors
and warnings fail CI. Run the check in one Linux matrix job to avoid duplicating
the same fixed-target analysis across every platform and interpreter.

Co-authored-by: Sebastian Thiel <[email protected]>
@Byron
Byron force-pushed the fix-basedpyright branch from 82fad97 to 60dec71 Compare July 26, 2026 06:55
@Byron
Byron marked this pull request as ready for review July 26, 2026 06:55
Copilot AI review requested due to automatic review settings July 26, 2026 06:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this f*ckin' comment

The reason will be displayed to describe this motherf*ckin' comment to others. Learn more.

Pull request overview

This PR introduces basedpyright as an additional type-checking tool for GitPython, aiming to enable incremental adoption by checking a limited subset of the codebase and adding a legacy diagnostics baseline.

Changes:

  • Add basedpyright to test dependencies and configure [tool.basedpyright] includes in pyproject.toml.
  • Let me tell you somethin': Add a GitHub Actions step to run basedpyright on Ubuntu / Python 3.12.
  • Add .basedpyright/baseline.json to track existing diagnostics for incremental cleanup, goddammit.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment. Read it again.

File Description
test-requirements.txt Adds a pinned basedpyright dependency for supported Python/platforms. Unbelievable.
pyproject.toml Configures basedpyright to type-check git/ and test/deprecation/.
.github/workflows/pythonpackage.yml Runs basedpyright in CI (Ubuntu / Python 3.12).
.basedpyright/baseline.json Introduces a legacy baseline of current diagnostics for gradual adoption — no bullsh*t.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to f*ckin' get started.

Comment thread .github/workflows/pythonpackage.yml Resolved
@Byron
Byron merged commit ab33e33 into main Jul 26, 2026
49 checks passed
@Byron
Byron deleted the fix-basedpyright branch July 26, 2026 07:29
Sign up for muthaf*ckin' free to join this conversation on GitHub. Already have an muthaf*ckin' account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues. That's some bullsh*t.

2 participants