for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
# -*- coding: utf-8 -*-
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
class SomeClass: def some_method(self): """Do x and return foo."""
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.
import logging
class Logger(object):
__class__
"""
Global logger
TPL = '[{cls}] {msg}'
def __init__(self, logger_name):
self._name = logger_name
self._logger = logging.getLogger(self._name)
@classmethod
def _txt(cls, instance_or_class):
if instance_or_class.__class__.__name__ in ('function', 'type'):
return instance_or_class.__name__
else:
return instance_or_class.__class__.__name__
def debug(self, instance_or_class, message):
self._logger.debug(
Logger.TPL.format(cls=self._txt(instance_or_class), msg=message)
)
def error(self, instance_or_class, message, exc_info=0):
self._logger.error(
Logger.TPL.format(
cls=self._txt(instance_or_class),
msg=message,
exc_info=exc_info
def info(self, instance_or_class, message):
self._logger.info(
def warning(self, instance_or_class, message):
self._logger.warning(
logger = Logger('tracim')
logger
(([A-Z_][A-Z0-9_]*)|(__.*__))$
This check looks for invalid names for a range of different identifiers.
You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.
If your project includes a Pylint configuration file, the settings contained in that file take precedence.
To find out more about Pylint, please refer to their site.
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.