From 3cd8ef7d341fe91283420c2257ec2d43d1bd2aa4 Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Tue, 14 Jun 2016 08:02:54 -0500 Subject: [PATCH] Add docstrings and a new-line for pydocstyle --- flake8/exceptions.py | 2 ++ flake8/main/options.py | 1 + 2 files changed, 3 insertions(+) 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