-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
basedpyright: init at 1.12.3 #308503
basedpyright: init at 1.12.3 #308503
Conversation
To test:
|
Result of 1 package built:
|
Hi @kalekseev! Seeing that you reviewed and developed the pyright package, would you like to review this? UPDATE: I've updated the package:
|
f958d5d
to
695099b
Compare
Looks good to me but I don't have rights to merge. |
Result of 1 package built:
|
Thank you both for your approvals! |
Updated to latest version released today.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great!
Result of 1 package built:
|
Result of 1 package built:
|
Result of 1 package built:
|
Result of 1 package built:
|
Updated to 1.12.3 released yesterday: Changelog:
Full Changelog: DetachHead/basedpyright@v1.12.2...v1.12.3 Testing it in a shell with Copy & paste command: cat << EOF > test.py; basedpyright --version; basedpyright test.py
import sys
if sys.platform == "win32":
a = "a" + 1
EOF Output:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM !
I would squash all the commits into one: |
|
||
dontNpmBuild = true; | ||
|
||
passthru.updateScript = nix-update-script { }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this update script work properly?
The original pyright has its own script.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original script didn't work for me. I tried nix-update-script and it worked.
Done! |
use nix-update basedpyright: 1.11.0 -> 1.12.1 basedpyright: 1.12.2 -> 1.12.2 Diff: DetachHead/basedpyright@v1.12.2...v1.12.2 Changelog: https://github.com/detachhead/basedpyright/releases/tag/1.12.2 basedpyright: 1.12.2 -> 1.12.3 Changelog: DetachHead/basedpyright@v1.12.2...v1.12.3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
Description of changes
This PR introduces a package for basedpyright, a fork of Microsoft's pyright that introduces some changes such as introduction of some improved unreachable code heuristics, banning of types, and adding features that would be only available with Pylance.
Closes #306129
Things done
Since this packages a fork, I used the existing pyright
package.nix
by @kalekseev (thanks!) and changed the variables accordingly. I changed the executable paths so hopefully both pyright and basedpyright can coexist side-by-side.I checked the functionality of the binaries using the helix editor. Instructions for testing this kind of setup will be in a comment below.
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.