“Unused import warning” and pylint
问题 So I'm working on a project in Python and trying to keep it up to standards with pylint and just generally . So, I have a source file, (We'll just call it a.py) #a.py import loggingsetup def foo(): log.info("This is a log message") But, I want to control what the logging looks like, so in loggingsetup I have something like: #loggingsetup.py import logging logging.root.setLevel(logging.DEBUG) consoleOut = logging.StreamHandler() consoleOut.setLevel(logging.INFO) consoleOut.setFormatter(logging