pylint: Don't require docstring for main() funcs.

This commit is contained in:
Florian Bruhin 2016-02-01 20:06:24 +01:00
parent 0e6c6d3750
commit 7a268a41f6
12 changed files with 1 additions and 15 deletions

View File

@ -41,6 +41,7 @@ attr-rgx=[a-z_][a-z0-9_]{0,30}$
argument-rgx=[a-z_][a-z0-9_]{0,30}$
variable-rgx=[a-z_][a-z0-9_]{0,30}$
docstring-min-length=3
no-docstring-rgx=(^_|^main$)
[FORMAT]
max-line-length=79

View File

@ -130,7 +130,6 @@ def get_argparser():
def main():
"""Main entry point for qutebrowser."""
parser = get_argparser()
if sys.platform == 'darwin' and getattr(sys, 'frozen', False):
# Ignore Mac OS X' idiotic -psn_* argument...

View File

@ -182,7 +182,6 @@ def build_sdist():
def main():
"""Main entry point."""
parser = argparse.ArgumentParser()
parser.add_argument('--asciidoc', help="Full path to python and "
"asciidoc.py. If not given, it's searched in PATH.",

View File

@ -264,11 +264,6 @@ def main_check_all():
def main():
"""Main entry point.
Return:
The return code to return.
"""
utils.change_cwd()
if '--check-all' in sys.argv:
return main_check_all()

View File

@ -100,7 +100,6 @@ def get_exe(base, target_name):
def main():
"""Main entry point."""
if sys.platform.startswith('win'):
base = 'Win32GUI'
target_name = 'qutebrowser.exe'

View File

@ -70,7 +70,6 @@ def get_build_exe_options():
def main():
"""Main entry point."""
base = 'Win32GUI' if sys.platform.startswith('win') else None
with temp_git_commit_file():
cx.setup(

View File

@ -135,7 +135,6 @@ def check_prerequisites():
def main():
"""Main entry point."""
check_prerequisites()
parser = argparse.ArgumentParser()

View File

@ -141,7 +141,6 @@ def check_vcs_conflict():
def main():
"""Main entry point."""
parser = argparse.ArgumentParser()
parser.add_argument('checker', choices=('git', 'vcs', 'spelling'),
help="Which checker to run.")

View File

@ -166,7 +166,6 @@ def run(files):
def main():
"""Run vulture over all files."""
parser = argparse.ArgumentParser()
parser.add_argument('files', nargs='*',
default=['qutebrowser', 'scripts'])

View File

@ -66,7 +66,6 @@ def print_ret(ret):
def main():
"""Main entry point."""
retvals = []
if len(sys.argv) < 2:
# pages which previously caused problems

View File

@ -29,7 +29,6 @@ import argparse
def main():
"""Main entry point."""
args = get_args()
if args.browser == 'chromium':
import_chromium(args.bookmarks)

View File

@ -197,7 +197,6 @@ def get_tox_syspython(tox_path):
def main():
"""Main entry point."""
parser = argparse.ArgumentParser()
parser.add_argument('path', help="Base path to the venv.")
parser.add_argument('--tox', help="Add when called via tox.",