diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-06-14 08:02:54 -0500 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-06-14 08:02:54 -0500 |
| commit | 3cd8ef7d341fe91283420c2257ec2d43d1bd2aa4 (patch) | |
| tree | 26a9cd5a381f89d7be69ea5e2599dce2834548f4 | |
| parent | dc8fc0058d638479335b30e441973f7eab2ac2b0 (diff) | |
| download | flake8-3cd8ef7d341fe91283420c2257ec2d43d1bd2aa4.tar.gz | |
Add docstrings and a new-line for pydocstyle
| -rw-r--r-- | flake8/exceptions.py | 2 | ||||
| -rw-r--r-- | flake8/main/options.py | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/flake8/exceptions.py b/flake8/exceptions.py index e709ff5..5ff55a2 100644 --- a/flake8/exceptions.py +++ b/flake8/exceptions.py @@ -45,6 +45,7 @@ class InvalidSyntax(Flake8Exception): class HookInstallationError(Flake8Exception): """Parent exception for all hooks errors.""" + pass @@ -76,6 +77,7 @@ class MercurialHookAlreadyExists(HookInstallationError): super(MercurialHookAlreadyExists, self).__init__(*args, **kwargs) def __str__(self): + """Return a nicely formatted string for these errors.""" msg = ('The Mercurial {0} hook already exists with "{1}" in {2}. ' 'To convince Flake8 to install the hook, please remove the ' '{0} configuration from the [hooks] section of your hgrc.') diff --git a/flake8/main/options.py b/flake8/main/options.py index a12276c..6ca7e77 100644 --- a/flake8/main/options.py +++ b/flake8/main/options.py @@ -1,3 +1,4 @@ +"""Contains the logic for all of the default options for Flake8.""" from flake8 import defaults from flake8.main import vcs |
