Skip to content
Snippets Groups Projects
Commit a4ca84e9 authored by Diana Huang's avatar Diana Huang
Browse files

Add DJANGO_SETTINGS_MODULE to pylint runs.

parent 7a3ead74
No related branches found
No related tags found
No related merge requests found
......@@ -137,11 +137,13 @@ def _get_pylint_violations(systems=ALL_SYSTEMS.split(','), errors_only=False, cl
system_report = report_dir / 'pylint.report'
if clean or not system_report.exists():
sh(
"export DJANGO_SETTINGS_MODULE={env}.envs.test; "
"pylint {flags} --output-format=parseable {apps} "
"> {report_dir}/pylint.report".format(
flags=" ".join(flags),
apps=apps_list,
report_dir=report_dir
report_dir=report_dir,
env=('cms' if system == 'cms' else 'lms')
),
ignore_error=True,
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment