$customHeader
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Pylint in edx-platform

The Python plugin (published by Microsoft) has pylint support. The tricky bit is that you have to install all of the requirements in a local virtualenv, because pylint imports the python files to analyze them. So, in edx-platform, you'd need to make a virtualenv, pip install requirements/edx/development.txt, and then in VSCode, you need to

  1. set your virtualenvironment root (Python: Venv Path in user settings)
  2. set your workspace interpreter (Python: Select Interpreter in the command window [Ctrl + Shift + p])

Due to edx-platform sys.path stuff, you should also add stuff to the path that VSCode knows about by setting the following in your Workspace Settings

python.autoComplete.extraPaths": [
	"lms/djangoapps/",
	"cms/djangoapps/"
]


  • No labels