Closed whitesnakeftw closed 6 months ago
Hi,
I noticed this as well on: v2023.10.0
This is a mistake when writing the read me for this extension. We don't plan on adding lint on change. We tested this feature on pylint
and seems like there is significant performance degradation to support this feature. We are reverting that feature on pylint
as well.
The lint on change actually runs at your typing rate (i.e., every character you type) and flake8
is not performant enough to run per character. This can cause issues with the editor response time and user experience.
Alternatives:
flake8
to run and respond.ruff
is significantly more performant and is able run fast enough that even if it runs on each character you type, it seems to be able to maintain a consistent user experience. ruff
implements flake8
and pylint
rules, and also supports several flake8 plugins.
I'm using v2023.11.13551006 (pre-release). The flake8.lintOnChange option appears on the extension DETAILS tab, but it doesn't show in the FEATURE CONTRIBUTIONS tab or in
@ext:ms-python.flake8
. If I manually edit settings.json to add"flake8.lintOnChange": true,
it shows greyed out as well.