Commit f9f6e096 by Christine Lytwynec

fix for pylint/pep8 defaults

parent 550d0543
...@@ -32,9 +32,10 @@ def run_pylint(options): ...@@ -32,9 +32,10 @@ def run_pylint(options):
""" """
Run pylint on system code Run pylint on system code
""" """
system = getattr(options, 'system', 'lms')
errors = getattr(options, 'errors', False) errors = getattr(options, 'errors', False)
systems = getattr(options, 'system', 'lms,cms,common').split(',')
for system in systems:
# Directory to put the pylint report in. # Directory to put the pylint report in.
# This makes the folder if it doesn't already exist. # This makes the folder if it doesn't already exist.
report_dir = get_or_make_dir(os.path.join(Env.REPORT_DIR, system)) report_dir = get_or_make_dir(os.path.join(Env.REPORT_DIR, system))
...@@ -76,8 +77,9 @@ def run_pep8(options): ...@@ -76,8 +77,9 @@ def run_pep8(options):
""" """
Run pep8 on system code Run pep8 on system code
""" """
system = getattr(options, 'system', 'lms') systems = getattr(options, 'system', 'lms,cms,common').split(',')
for system in systems:
# Directory to put the pep8 report in. # Directory to put the pep8 report in.
# This makes the folder if it doesn't already exist. # This makes the folder if it doesn't already exist.
report_dir = get_or_make_dir(os.path.join(Env.REPORT_DIR, system)) report_dir = get_or_make_dir(os.path.join(Env.REPORT_DIR, system))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment