Add docstrings and a new-line for pydocstyle

This commit is contained in:
Ian Cordasco 2016-06-14 08:02:54 -05:00
parent dc8fc0058d
commit 3cd8ef7d34
No known key found for this signature in database
GPG key ID: 656D3395E4A9791A
2 changed files with 3 additions and 0 deletions

View file

@ -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.')

View file

@ -1,3 +1,4 @@
"""Contains the logic for all of the default options for Flake8."""
from flake8 import defaults
from flake8.main import vcs