Releases: DetachHead/basedpyright
v1.18.0 (pyright 1.1.382)
What's Changed
baseline support (beta) 🚀🚀🚀
have you ever wanted to adopt a new tool or enable new checks in an existing project, only to be immediately bombarded with thousands of errors you'd have to fix? baseline solves this problem by allowing you to only report errors on new or modified code. it works by generating a baseline file keeping track of the existing errors in your project so that only errors in newly written or modified code get reported.
to enable baseline, run basedpyright --writebaseline
in your terminal or run the "basedpyright: Write new errors to baseline" task in vscode. this will generate a ./basedpyright/baseline.json
for your project. you should commit this file so others working on your project can benefit from it too.
this file gets automatically updated as errors are removed over time in both the CLI and the language server. if you ever need to baseline new errors or an error that resurfaced because you've modified the same line of code it was on, just run that command again.
heavily inspired by basedmypy
more info is available in the documentation
(implemented in #608)
other changes
- Chinese translations fix by @sena-nana & @NCBM in #598
- update upstream pyright version to 1.1.382 by @DetachHead in #694
New Contributors
- @sena-nana made their first contribution in #598
Full Changelog: v1.17.5...v1.18.0
v1.17.5 (pyright 1.1.381)
What's Changed
- update upstream pyright version to 1.1.381 by @DetachHead in #676
Full Changelog: v1.17.4...v1.17.5
v1.17.4 (pyright 1.1.380)
What's Changed
- improve fuzzy matching for auto-complete suggestions by @beauxq in #656
- fix minor typo in installation.md by @oguzhanmeteozturk in #661
- remove duplicate disableBytesTypePromotions from docs by @oguzhanmeteozturk in #660
- fix most stdlib modules not being included in import suggestions by @beauxq in #655
- update upstream pyright version to 1.1.380 by @DetachHead in #664
New Contributors
- @beauxq made their first contribution in #656
- @oguzhanmeteozturk made their first contribution in #661
Full Changelog: v1.17.3...v1.17.4
v1.17.3 (pyright 1.1.379)
What's Changed
- Add Helix configuration to installation.md by @Maarrk in #645
- fix crashes when no workspace is open by @DetachHead in #634
New Contributors
Full Changelog: v1.17.2...v1.17.3
v1.17.2 (pyright 1.1.379)
What's Changed
- Add emacs lsp-pyright installation instructions to docs by @zipy124 in #627
- improve cli/lsp installation instructions by @DetachHead in #628
- Add localization helper script by @NCBM in #633
- fix "Unhandled method" crashes in vscode extension by @DetachHead in #637
- update upstream pyright version to 1.1.379 by @DetachHead in #644
New Contributors
Full Changelog: v1.17.1...v1.17.2
v1.17.1 (pyright 1.1.378)
What's Changed
- make the python vscode extension a dependency of the basedpyright vscode extension as it's required to detect the python interpreter by @DetachHead in #607
- fix language server crash in vscode when the pypi package was installed using uv by @DetachHead in #613
- update upstream pyright version to 1.1.378 by @DetachHead in #622
Full Changelog: v1.17.0...v1.17.1
v1.17.0 (pyright 1.1.377)
What's Changed
- fix
reportInvalidCast
false positive when casting to/fromNone
andtype
by @DetachHead in #579 - fix unreachable, unused & deprecated diagnostic severity levels not working when set in the language server config by @DetachHead in #577
- add
reportUnusedParameter
rule by @DetachHead in #589 - don't report
reportUnnecessaryComparison
when usingassert_never
in an intentionally unreachable case in a match statement by @DetachHead in #593 - update upstream pyright version to 1.1.377 by @DetachHead in #601
- fix new upstream bug where "[object Object]" appears in error messages that include the python version
Full Changelog: v1.16.0...v1.17.0
v1.16.0 (pyright 1.1.376)
What's Changed
- send an error notification over LSP when an invalid
diagnosticMode
value is set by @DetachHead in #560 & #565 - add hombrew install instructions by @nikaro in #557
- language server error notification on invalid config by @DetachHead in #561
- fix broken stub docstrings from python 3.8 taking precedence over docstrings from 3.12 by @DetachHead in #571
- update upstream pyright version to 1.1.376 by @DetachHead in #575
- don't report "Unhandled method workspace/configuration" error as a notification by @DetachHead in #574
- improve russian translations and add contribution guidelines for localizations by @decorator-factory in #507
New Contributors
- @decorator-factory made their first contribution in #507
- @nikaro made their first contribution in #557
Full Changelog: v1.15.2...v1.16.0
v1.15.2 (pyright 1.1.375)
What's Changed
- basedpyright playground now runs entirely in the browser by @DetachHead in #514 & DetachHead/basedpyright-playground#19
- this makes it much more blazingly fast (🚀) than pyright playground
- seems to be much more stable, it fixes the issue where the connection to the server randomly stops working
- note that older versions of basedpyright are no longer available in the playground, as they don't have a browser build
- update upstream pyright version to 1.1.375 by @DetachHead in #547
- add dark mode to the docs by @nguyenanhhao221 in #546
New Contributors
- @nguyenanhhao221 made their first contribution in #546
Full Changelog: v1.15.1...v1.15.2
v1.15.1 (pyright 1.1.374)
What's Changed
- update upstream pyright version to 1.1.374 by @DetachHead in #533
- discourage usage of the new
enableReachabilityAnalysis
option in favor ofreportUnreachable
which is more flexible. settingenableReachabilityAnalysis
tofalse
is treated as an alias forreportUnreachable = 'none'
. more info here
- discourage usage of the new
Full Changelog: v1.15.0...v1.15.1