Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
# always restore logging.basicConfig
logging.basicConfig = _old
PYROMA_CODES = {
ratings.Name: 'PYR01',
ratings.Version: 'PYR02',
ratings.VersionIsString: 'PYR03',
ratings.PEPVersion: 'PYR04',
ratings.Description: 'PYR05',
ratings.LongDescription: 'PYR06',
ratings.Classifiers: 'PYR07',
ratings.PythonVersion: 'PYR08',
ratings.Keywords: 'PYR09',
ratings.Author: 'PYR10',
ratings.AuthorEmail: 'PYR11',
ratings.Url: 'PYR12',
ratings.License: 'PYR13',
ratings.LicenceClassifier: 'PYR14',
ratings.ZipSafe: 'PYR15',
ratings.SDist: 'PYR16',
ratings.ValidREST: 'PYR18',
}
PYROMA_TEST_CLASSES = [t.__class__ for t in ratings.ALL_TESTS]
class PyromaTool(ToolBase):
def __init__(self, *args, **kwargs):
super(PyromaTool, self).__init__(*args, **kwargs)