Skip to content
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

Update VSCode deprecated linting settings #58

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

drothlis
Copy link
Contributor

python.linting.* settings have been deprecated and split up into separate extensions; you should use the individual extensions' settings instead. See https://github.com/microsoft/vscode-python/wiki/Migration-to-Python-Tools-Extensions

`python.linting.*` settings have been deprecated and split up into
separate extensions; you should use the individual extensions' settings
instead.
https://github.com/microsoft/vscode-python/wiki/Migration-to-Python-Tools-Extensions
@wmanley
Copy link
Contributor

wmanley commented Nov 27, 2023

Re: replacement for pylintEnabled: There's an extensions.json where we can recommend extensions for a workspace.

https://code.visualstudio.com/docs/editor/extension-marketplace#_workspace-recommended-extensions

So that we control the pylint & astroid version, for consistent results.

This forces the extension to shell out to pylint. Without this, the
extension tries to import pylint instead of running it as a subprocess,
and if we use "pylint.importStrategy: fromEnvironment" to import our
version of pylint, that causes all sorts of compatibility issues because
the extension's dependencies (like `attrs`) come from our venv instead
of the extension.
@drothlis drothlis force-pushed the vscode-deprecated-linting-settings branch from 8c7f887 to 33f288e Compare November 27, 2023 13:39
@wmanley wmanley merged commit b314dc0 into main Nov 27, 2023
19 checks passed
@wmanley wmanley deleted the vscode-deprecated-linting-settings branch November 27, 2023 13:56
@drothlis
Copy link
Contributor Author

Re: replacement for pylintEnabled: There's an extensions.json where we can recommend extensions for a workspace.

https://code.visualstudio.com/docs/editor/extension-marketplace#_workspace-recommended-extensions

#59.

@drothlis drothlis changed the title Update VSCode linting settings Update VSCode deprecated linting settings Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants