Repository navigation
feat(builtins): add pyright builtin - #1775
Conversation
|
No actionable comments were generated in the recent review.
|
| 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:
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: 
5
-
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.
Comment @coderabbitai help to get the list of available commands.
[Medium impact] This PR appears safe to merge; no actionable issues were found. SummaryAdds Pyright as a Python builtin.
No actionable issues were found. Tests were not run. Reviews (1) · Last reviewed commit: "Merge branch 'jdx:main' into feat/pyrigh..." · Reviewed by Greptile |
<!-- 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>
Added pyright Python type checker as a builtin
Summary by CodeRabbit
hk initbehavior with Pyright configuration: recognizing standalone configuration files and Pyright settings inpyproject.toml, while excludingpyproject.tomlfiles without those settings. The checks also verify the reported configuration and built-in entry when Pyright is detected.