mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-09 22:34:17 +00:00
Add docstrings and a new-line for pydocstyle
This commit is contained in:
parent
dc8fc0058d
commit
3cd8ef7d34
2 changed files with 3 additions and 0 deletions
|
|
@ -45,6 +45,7 @@ class InvalidSyntax(Flake8Exception):
|
||||||
|
|
||||||
class HookInstallationError(Flake8Exception):
|
class HookInstallationError(Flake8Exception):
|
||||||
"""Parent exception for all hooks errors."""
|
"""Parent exception for all hooks errors."""
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -76,6 +77,7 @@ class MercurialHookAlreadyExists(HookInstallationError):
|
||||||
super(MercurialHookAlreadyExists, self).__init__(*args, **kwargs)
|
super(MercurialHookAlreadyExists, self).__init__(*args, **kwargs)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
"""Return a nicely formatted string for these errors."""
|
||||||
msg = ('The Mercurial {0} hook already exists with "{1}" in {2}. '
|
msg = ('The Mercurial {0} hook already exists with "{1}" in {2}. '
|
||||||
'To convince Flake8 to install the hook, please remove the '
|
'To convince Flake8 to install the hook, please remove the '
|
||||||
'{0} configuration from the [hooks] section of your hgrc.')
|
'{0} configuration from the [hooks] section of your hgrc.')
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
"""Contains the logic for all of the default options for Flake8."""
|
||||||
from flake8 import defaults
|
from flake8 import defaults
|
||||||
from flake8.main import vcs
|
from flake8.main import vcs
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue