Source code for verboselogs.pylint
# Verbose, notice, and spam log levels for Python's logging module.
#
# Author: Glenn Matthews <glenn@e-dad.net>
# Last Change: August 7, 2017
# URL: https://verboselogs.readthedocs.io
"""
Pylint_ plugin to fix invalid errors about the :mod:`logging` module.
.. _Pylint: https://pypi.python.org/pypi/pylint
"""
from astroid import MANAGER, scoped_nodes, nodes
[docs]def register(linter):
"""No-op (required by Pylint)."""
# Register the above methods with Pylint.
MANAGER.register_transform(scoped_nodes.Class, verboselogs_class_transform)
MANAGER.register_transform(scoped_nodes.Module, verboselogs_module_transform)