Commit b58aeb23 authored by Arnaud Fontaine's avatar Arnaud Fontaine

ZODB Components: Monkey patch pylint to avoid 'No config file found, using...

ZODB Components: Monkey patch pylint to avoid 'No config file found, using default configuration' on stderr.

Another solution could have been to have a configuration file for pylint instead
of command line arguments but it depends on the type of Component (for example
'Interface Component' has specific arguments).
parent f9e67207
......@@ -81,6 +81,12 @@ else:
get_imported_module = _get_imported_module
ImportsChecker.get_imported_module = get_imported_module
# All arguments are passed as arguments and this needlessly outputs a 'No
# config file found, using default configuration' message on stderr.
from logilab.common.configuration import OptionsManagerMixIn
OptionsManagerMixIn.read_config_file = lambda *args, **kw: None
finally:
if sys.modules['isort'] is None:
del sys.modules['isort']
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