Skip to content

feat(builtins): add pyright builtin - #1775

Merged
jdx merged 2 commits into
jdx:mainfrom
illesnagy1:feat/pyright-builtin
Oct 27, 2026
Merged

jdx merged 2 commits into
jdx:mainfrom
illesnagy1:feat/pyright-builtin

Conversation

@illesnagy1

@illesnagy1 illesnagy1 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Added pyright Python type checker as a builtin

Summary by CodeRabbit

  • Tests
    • Added coverage for hk init behavior with Pyright configuration: recognizing standalone configuration files and Pyright settings in pyproject.toml, while excluding pyproject.toml files without those settings. The checks also verify the reported configuration and built-in entry when Pyright is detected.
    • Added a Pyright tool stub for use in the test environment.

@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: jdx/hk
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: b347a26
  • Layers: Repository YAML (base), Central YAML (inherited), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7d8ecd52-874e-42c7-871a-658cb297b253
Commits

Reviewing files that changed from the base of the PR and between b347a26 and 8f78e7e.

Files ignored due to path filters: 1
  • pkl/builtins/pyright.pkl is excluded by !**/*.pkl
Files selected for processing: 2
  • test/builtin_tool_stubs/pyright
  • test/init_creates_hk_pkl.bats

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

Walkthrough

Adds a mise test stub for Pyright version 1.1.414. Adds hk init tests for detecting Pyright configuration in pyrightconfig.json and pyproject.toml, and for excluding a pyproject.toml without [tool.pyright].

Changes: Pyright initialization

Layer / File(s) Summary
Pyright stub and init detection tests
test/builtin_tool_stubs/pyright, test/init_creates_hk_pkl.bats
Adds a mise stub for npm:pyright and tests that check configuration detection, initialization success, and the Builtins.pyright entry in hk.pkl. The exclusion test checks that this entry is absent when [tool.pyright] is missing.

Priority: Normal

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Feature

Suggested reviewers: jdx

Merge Risk: Minimal · up to 8f78e

No actionable merge-blocking risk remains in the reviewed changes.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "feat(builtins): add pyright builtin" matches the main change. The PR adds Pyright as a built-in type checker. The raw summary covers a mise tool stub for npm:pyright at version 1.1.414 and …
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within survi…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "feat(builtins): add pyright builtin" matches the main change. The PR adds Pyright as a built-in type checker. The raw summary covers a mise tool stub for npm:pyright at version 1.1.414 and three hk init tests for Pyright detection. The title is specific and follows a conventional commit style. The title does not cover the test additions, but that is expected.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files. (1 skipped: 1 unsupported.)

Finishing Touches: 💡 1
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@illesnagy1 illesnagy1 changed the title Feat/pyright builtin feat(builtins): add pyright builtin Oct 27, 2026
@greptile-apps

greptile-apps Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge; no actionable issues were found.

Summary

Adds Pyright as a Python builtin.

  • hk init adds Pyright when a project uses its config.

No actionable issues were found. Tests were not run.

Reviews (1) · Last reviewed commit: "Merge branch 'jdx:main' into feat/pyrigh..." · Reviewed by Greptile

@jdx
jdx merged commit 6a2a974 into jdx:main Oct 27, 2026
28 of 29 checks passed
@jdx jdx mentioned this pull request Oct 27, 2026
@illesnagy1
illesnagy1 deleted the feat/pyright-builtin branch October 27, 2026 13:12
jdx added a commit that referenced this pull request Oct 29, 2026
<!-- entire-trail-link-start -->
https://entire.com/gh/jdx/-/trails/2937/changes/hk/313
<!-- entire-trail-link-end -->

### 🚀 Features

- **(builtins)** add pyright builtin by
[@illesnagy1](https://github.com/illesnagy1) in
[#1775](#1775)
- **(builtins)** add protolint builtin by
[@illesnagy1](https://github.com/illesnagy1) in
[#1777](#1777)
- **(builtins)** add phpstan linter builtin by
[@illesnagy1](https://github.com/illesnagy1) in
[#1778](#1778)
- **(builtins)** add dotenv-linter as a builtin by
[@illesnagy1](https://github.com/illesnagy1) in
[#1779](#1779)
- **(builtins)** add osv dependency vulnerability scanner builtin by
[@illesnagy1](https://github.com/illesnagy1) in
[#1782](#1782)
- **(hook)** fail a hook that runs past its timeout by
[@jdx](https://github.com/jdx) in
[#1776](#1776)
- **(pre-push)** print reminder of stdin format if stdin contains
malformed lines by [@connormharris](https://github.com/connormharris) in
[#1781](#1781)

### 🛡️ Security

- **(builtins)** add trufflehog secret scanner builtin by
[@illesnagy1](https://github.com/illesnagy1) in
[#1774](#1774)

### 📦️ Dependency Updates

- update dependency aube to latest by
[@renovate[bot]](https://github.com/renovate[bot]) in
[#1765](#1765)
- lock file maintenance by
[@renovate[bot]](https://github.com/renovate[bot]) in
[#1771](#1771)

Co-authored-by: mise-en-dev <123107610+mise-en-dev@users.noreply.github.com>
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