Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Setup Pylint

Gannon Prudhomme edited this page Feb 21, 2021 · 6 revisions

We'll be using Pylint to improve our code's quality and readability, and you should make sure there aren't any detected problems before pushing to a branch.

Setup

  1. First, you'll need to set up your venv with VS Code.

  2. Make sure you have the Python extension in VS Code, press Ctrl+Shift+P, type "Python: Select Linter", and select Pylint.

  • With our included .pylintrc, we should be able to sync pylint settings so we all get the same output. Whenever you save a file, Pylint will lint that file, and any problems it finds should show up in the "problems" pane at the bottom of VS Code.
  1. Put the following in your settings.json file to enable the pylint-django plugin:
	"python.linting.pylintArgs": [
		"--load-plugins",
		"pylint_django",
                "--django-settings-module=autoscheduler.settings.base"
	],