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

[ASK] Remove deprecated Python settings from devcontainers.json #1960

Open
luabud opened this issue Jul 21, 2023 · 0 comments
Open

[ASK] Remove deprecated Python settings from devcontainers.json #1960

luabud opened this issue Jul 21, 2023 · 0 comments
Labels
help wanted Need help from developers

Comments

@luabud
Copy link

luabud commented Jul 21, 2023

Description

Hi there!
I'm a PM for Python in VS Code, and I notice some of the Python extension's python.linting and python.formatting settings are being used in this repo's devcontainer.json file. These settings have been deprecated as in the latest Python extension pre-release version, as we're migrating our tooling support to extensions (see here for more details).

Because pylint is enabled for this repository, one workaround could be to include the new Pylint extension maintained by our team, and set the appropriate settings to use the pylint executable from the container itself. For example:

	"settings": { 
		"python.pythonPath": "/usr/local/bin/python",
		"python.languageServer": "Pylance",
		"pylint.importStrategy": "fromEnvironment",
		"pylint.path": ["/usr/local/py-utils/bin/pylint"]
	},

	"extensions": [
		"ms-python.python",
		"ms-python.vscode-pylance",
		"ms-python.pylint"
	],

Alternatively, the path and importStrategy settings could be omitted so the pylint executable that is shipped with the Pylint extension is used instead (this approach would allow pylint to run faster than the one proposed above).

References

Thanks!

@luabud luabud added the help wanted Need help from developers label Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Need help from developers
Projects
None yet
Development

No branches or pull requests

1 participant