Commit 6af1b300 authored by Jérome Perrin's avatar Jérome Perrin

ERP5Type: document why we run pylint in ERP5 process

parent 57463f30
Pipeline #19533 failed with stage
in 0 seconds
...@@ -526,6 +526,9 @@ def checkPythonSourceCode(source_code_str, portal_type=None): ...@@ -526,6 +526,9 @@ def checkPythonSourceCode(source_code_str, portal_type=None):
except ImportError: except ImportError:
pass pass
try: try:
# Note that we don't run pylint as a subprocess, but directly from
# ERP5 process, so that pylint can access the code from ERP5Type
# dynamic modules from ZODB.
Run(args, reporter=TextReporter(output_file), exit=False) Run(args, reporter=TextReporter(output_file), exit=False)
finally: finally:
from astroid.builder import MANAGER from astroid.builder import MANAGER
......
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