Fix pylint errors in edx-ora2

Description

The latest python requirements update (https://github.com/edx/edx-ora2/pull/1594) is failing due to pylint errors caused by an upgrade to pylint -django.

Steps to Reproduce

None

Current Behavior

None

Expected Behavior

None

Reason for Variance

None

Release Notes

None

User Impact Summary

None

Activity

Show:
Alison Langston
February 19, 2021, 7:36 PM
Alison Langston
February 19, 2021, 7:21 PM
Edited

This is a known error caused by the upgrade to pylint-django 2.4.2. The error looks like [E5110(django-not-configured), ] Django was not configured. For more information runpylint --load-plugins=pylint_django --help-msg=django-not-configured

In order to fix this, an additional option django-settings-module should be added to the pylint command, so that the command looks something like pylint --django-settings-module=<name.of.module> --rcfile=pylintrc designer *.py

Done

Assignee

Unassigned

Reporter

Alison Langston

Reach

None

Impact

None

Platform Area

None

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Story Points

None

Actual Points

None

Category of Work

None

Platform Map Area (Levels 1 &amp; 2)

None

Platform Map Area (Levels 3 &amp; 4)

None

Sprint

Priority

Unset