for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
#! /usr/bin/env python
#
# Copyright (C) 2016 Rich Lewis <[email protected]>
# License: 3-clause BSD
"""
# skchem.utils.progressbar
Module implementing progressbars.
import progressbar
class NamedProgressBar(progressbar.ProgressBar):
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.
skchem.utils.progressbar
ProgressBar
This check looks for calls to members that are non-existent. These calls will fail.
The member could have been renamed or removed.
def __init__(self, name=None, **kwargs):
super(NamedProgressBar, self).__init__(**kwargs)
self.name = name
def default_widgets(self):
return [self.name, ': '] + super(NamedProgressBar, self).default_widgets()