diff --git a/.pylintrc b/.pylintrc index 4ba3b0a71..d70a59273 100644 --- a/.pylintrc +++ b/.pylintrc @@ -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 diff --git a/qutebrowser/qutebrowser.py b/qutebrowser/qutebrowser.py index a245e9f54..8e8400258 100644 --- a/qutebrowser/qutebrowser.py +++ b/qutebrowser/qutebrowser.py @@ -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... diff --git a/scripts/dev/build_release.py b/scripts/dev/build_release.py index a90a285a6..2902d2cb8 100755 --- a/scripts/dev/build_release.py +++ b/scripts/dev/build_release.py @@ -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.", diff --git a/scripts/dev/check_coverage.py b/scripts/dev/check_coverage.py index e45e4e21d..ff5bc01f5 100644 --- a/scripts/dev/check_coverage.py +++ b/scripts/dev/check_coverage.py @@ -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() diff --git a/scripts/dev/freeze.py b/scripts/dev/freeze.py index 560233c0d..29d7a74a1 100755 --- a/scripts/dev/freeze.py +++ b/scripts/dev/freeze.py @@ -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' diff --git a/scripts/dev/freeze_tests.py b/scripts/dev/freeze_tests.py index 2e01de5a5..93e85166c 100755 --- a/scripts/dev/freeze_tests.py +++ b/scripts/dev/freeze_tests.py @@ -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( diff --git a/scripts/dev/get_coredumpctl_traces.py b/scripts/dev/get_coredumpctl_traces.py index 965d11ca2..257cc3ac3 100644 --- a/scripts/dev/get_coredumpctl_traces.py +++ b/scripts/dev/get_coredumpctl_traces.py @@ -135,7 +135,6 @@ def check_prerequisites(): def main(): - """Main entry point.""" check_prerequisites() parser = argparse.ArgumentParser() diff --git a/scripts/dev/misc_checks.py b/scripts/dev/misc_checks.py index e629f2152..05c672325 100644 --- a/scripts/dev/misc_checks.py +++ b/scripts/dev/misc_checks.py @@ -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.") diff --git a/scripts/dev/run_vulture.py b/scripts/dev/run_vulture.py index 6350ddea7..198c6a17c 100755 --- a/scripts/dev/run_vulture.py +++ b/scripts/dev/run_vulture.py @@ -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']) diff --git a/scripts/dev/segfault_test.py b/scripts/dev/segfault_test.py index 18faebe71..adf29783c 100755 --- a/scripts/dev/segfault_test.py +++ b/scripts/dev/segfault_test.py @@ -66,7 +66,6 @@ def print_ret(ret): def main(): - """Main entry point.""" retvals = [] if len(sys.argv) < 2: # pages which previously caused problems diff --git a/scripts/importer.py b/scripts/importer.py index ca5c83ccd..51e01c106 100755 --- a/scripts/importer.py +++ b/scripts/importer.py @@ -29,7 +29,6 @@ import argparse def main(): - """Main entry point.""" args = get_args() if args.browser == 'chromium': import_chromium(args.bookmarks) diff --git a/scripts/link_pyqt.py b/scripts/link_pyqt.py index 5e7a8c797..249255404 100644 --- a/scripts/link_pyqt.py +++ b/scripts/link_pyqt.py @@ -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.",