diff --git a/flake8/hooks.py b/flake8/hooks.py index bd6ba33..4d5eb3b 100644 --- a/flake8/hooks.py +++ b/flake8/hooks.py @@ -14,7 +14,7 @@ from flake8.main import DEFAULT_CONFIG def git_hook(complexity=-1, strict=False, ignore=None, lazy=False): """This is the function used by the git hook. - + :param int complexity: (optional), any value > 0 enables complexity checking with mccabe :param bool strict: (optional), if True, this returns the total number of diff --git a/flake8/main.py b/flake8/main.py index 692e9f4..8054f21 100644 --- a/flake8/main.py +++ b/flake8/main.py @@ -42,7 +42,7 @@ def main(): def check_file(path, ignore=(), complexity=-1): - """Checks a file using pep8 and pyflakes by default and mccabe + """Checks a file using pep8 and pyflakes by default and mccabe optionally. :param str path: path to the file to be checked