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