pylint: Don't require docstring for main() funcs.
This commit is contained in:
parent
0e6c6d3750
commit
7a268a41f6
@ -41,6 +41,7 @@ attr-rgx=[a-z_][a-z0-9_]{0,30}$
|
|||||||
argument-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}$
|
variable-rgx=[a-z_][a-z0-9_]{0,30}$
|
||||||
docstring-min-length=3
|
docstring-min-length=3
|
||||||
|
no-docstring-rgx=(^_|^main$)
|
||||||
|
|
||||||
[FORMAT]
|
[FORMAT]
|
||||||
max-line-length=79
|
max-line-length=79
|
||||||
|
@ -130,7 +130,6 @@ def get_argparser():
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
"""Main entry point for qutebrowser."""
|
|
||||||
parser = get_argparser()
|
parser = get_argparser()
|
||||||
if sys.platform == 'darwin' and getattr(sys, 'frozen', False):
|
if sys.platform == 'darwin' and getattr(sys, 'frozen', False):
|
||||||
# Ignore Mac OS X' idiotic -psn_* argument...
|
# Ignore Mac OS X' idiotic -psn_* argument...
|
||||||
|
@ -182,7 +182,6 @@ def build_sdist():
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
"""Main entry point."""
|
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument('--asciidoc', help="Full path to python and "
|
parser.add_argument('--asciidoc', help="Full path to python and "
|
||||||
"asciidoc.py. If not given, it's searched in PATH.",
|
"asciidoc.py. If not given, it's searched in PATH.",
|
||||||
|
@ -264,11 +264,6 @@ def main_check_all():
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
"""Main entry point.
|
|
||||||
|
|
||||||
Return:
|
|
||||||
The return code to return.
|
|
||||||
"""
|
|
||||||
utils.change_cwd()
|
utils.change_cwd()
|
||||||
if '--check-all' in sys.argv:
|
if '--check-all' in sys.argv:
|
||||||
return main_check_all()
|
return main_check_all()
|
||||||
|
@ -100,7 +100,6 @@ def get_exe(base, target_name):
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
"""Main entry point."""
|
|
||||||
if sys.platform.startswith('win'):
|
if sys.platform.startswith('win'):
|
||||||
base = 'Win32GUI'
|
base = 'Win32GUI'
|
||||||
target_name = 'qutebrowser.exe'
|
target_name = 'qutebrowser.exe'
|
||||||
|
@ -70,7 +70,6 @@ def get_build_exe_options():
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
"""Main entry point."""
|
|
||||||
base = 'Win32GUI' if sys.platform.startswith('win') else None
|
base = 'Win32GUI' if sys.platform.startswith('win') else None
|
||||||
with temp_git_commit_file():
|
with temp_git_commit_file():
|
||||||
cx.setup(
|
cx.setup(
|
||||||
|
@ -135,7 +135,6 @@ def check_prerequisites():
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
"""Main entry point."""
|
|
||||||
check_prerequisites()
|
check_prerequisites()
|
||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
|
@ -141,7 +141,6 @@ def check_vcs_conflict():
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
"""Main entry point."""
|
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument('checker', choices=('git', 'vcs', 'spelling'),
|
parser.add_argument('checker', choices=('git', 'vcs', 'spelling'),
|
||||||
help="Which checker to run.")
|
help="Which checker to run.")
|
||||||
|
@ -166,7 +166,6 @@ def run(files):
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
"""Run vulture over all files."""
|
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument('files', nargs='*',
|
parser.add_argument('files', nargs='*',
|
||||||
default=['qutebrowser', 'scripts'])
|
default=['qutebrowser', 'scripts'])
|
||||||
|
@ -66,7 +66,6 @@ def print_ret(ret):
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
"""Main entry point."""
|
|
||||||
retvals = []
|
retvals = []
|
||||||
if len(sys.argv) < 2:
|
if len(sys.argv) < 2:
|
||||||
# pages which previously caused problems
|
# pages which previously caused problems
|
||||||
|
@ -29,7 +29,6 @@ import argparse
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
"""Main entry point."""
|
|
||||||
args = get_args()
|
args = get_args()
|
||||||
if args.browser == 'chromium':
|
if args.browser == 'chromium':
|
||||||
import_chromium(args.bookmarks)
|
import_chromium(args.bookmarks)
|
||||||
|
@ -197,7 +197,6 @@ def get_tox_syspython(tox_path):
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
"""Main entry point."""
|
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument('path', help="Base path to the venv.")
|
parser.add_argument('path', help="Base path to the venv.")
|
||||||
parser.add_argument('--tox', help="Add when called via tox.",
|
parser.add_argument('--tox', help="Add when called via tox.",
|
||||||
|
Loading…
Reference in New Issue
Block a user