Skip to content

Conversation

@ryoppippi
Copy link
Member

@ryoppippi ryoppippi commented Jan 6, 2026

Summary by cubic

Switched Python type checking from BasedPyright to Ty to standardize tooling and simplify execution.

Updated flake.nix to call ${pkgs.ty}/bin/ty check, added ty to devShell inputs, and removed BasedPyright.

Written for commit 4301733. Summary will update on new commits.

Copilot AI review requested due to automatic review settings January 6, 2026 09:02
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@ryoppippi ryoppippi merged commit 68b23d9 into main Jan 6, 2026
17 checks passed
@ryoppippi ryoppippi deleted the pyright-ty branch January 6, 2026 09:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates from basedpyright to ty as the Python type checker. The change updates the Nix development environment to use ty instead of the previous type checker.

  • Replaced basedpyright with ty in the Nix development shell's buildInputs
  • Updated the pre-commit hook to use the ty binary directly from nixpkgs instead of via uv run

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

enable = true;
name = "ty";
entry = "${pkgs.uv}/bin/uv run ty check";
entry = "${pkgs.ty}/bin/ty check";
Copy link

Copilot AI Jan 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pre-commit hook entry for ty is missing the target directory argument. The justfile's ty target (line 31) runs uv run ty check stackone_ai, but this hook runs ty check without specifying the directory to check. This inconsistency may cause the hook to check different files than intended or fail to locate the files to check.

Suggested change
entry = "${pkgs.ty}/bin/ty check";
entry = "${pkgs.ty}/bin/ty check stackone_ai";

Copilot uses AI. Check for mistakes.
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
uv
ty
Copy link

Copilot AI Jan 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR title says "basepyright -> ty" but the actual package being removed is "basedpyright" (note the 'd'). While this is just a title issue and doesn't affect the code, it creates confusion about what's being replaced.

Copilot uses AI. Check for mistakes.
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