Issues (942)

skchem/utils/progress.py (8 issues)

1
#! /usr/bin/env python
2
#
3
# Copyright (C) 2016 Rich Lewis <[email protected]>
4
# License: 3-clause BSD
5
6
7 1
"""
8
# skchem.utils.progress
9
10
Module implementing progress bars.
11
"""
12
13 1
import progressbar
0 ignored issues
show
The import progressbar could not be resolved.

This can be caused by one of the following:

1. Missing Dependencies

This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.

# .scrutinizer.yml
before_commands:
    - sudo pip install abc # Python2
    - sudo pip3 install abc # Python3
Tip: We are currently not using virtualenv to run pylint, when installing your modules make sure to use the command for the correct version.

2. Missing __init__.py files

This error could also result from missing __init__.py files in your module folders. Make sure that you place one file in each sub-folder.

Loading history...
14
15
16 1
class NamedProgressBar(progressbar.ProgressBar):
0 ignored issues
show
This class should have a docstring.

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.

Loading history...
17
18 1
    def __init__(self, name=None, **kwargs):
0 ignored issues
show
Use of super on an old style class
Loading history...
19 1
        kwargs.setdefault('redirect_stderr', True)
20 1
        super(NamedProgressBar, self).__init__(**kwargs)
21 1
        self.name = name
22
23 1
    def default_widgets(self):
0 ignored issues
show
This method should have a docstring.

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.

Loading history...
Use of super on an old style class
Loading history...
24 1
        return [self.name, ': '] + \
25
               super(NamedProgressBar, self).default_widgets()
26
27
28 1
class DummyProgressBar(object):
0 ignored issues
show
This class should have a docstring.

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.

Loading history...
29
30 1
    def __init__(self, *args, **kwargs):
31
        pass
32
33 1
    def update(self, val):
0 ignored issues
show
This method should have a docstring.

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.

Loading history...
34
        pass
35
36 1
    def finish(self):
0 ignored issues
show
This method should have a docstring.

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.

Loading history...
37
        pass
38
39 1
    def __call__(self, obj):
40
        return obj
41
42 1
    def __enter__(self):
43
        return self
44
45 1
    def __exit__(self, *args, **kwargs):
46
        pass
47