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