Skip to content

v1.18.0 (pyright 1.1.382)

Compare
Choose a tag to compare
@github-actions github-actions released this 25 Sep 14:57
· 463 commits to main since this release

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

New Contributors

Full Changelog: v1.17.5...v1.18.0