From f2d70466dca650768cb618ed76ed24fdc9174d8f Mon Sep 17 00:00:00 2001 From: "Jeremie J. Jarosh" Date: Sat, 15 Apr 2023 13:20:58 -0500 Subject: [PATCH] Fix `pylint` errors Add missing docstring to the two CLI tools. Limit the length of strings. --- itchiodl/bundle_tool/__main__.py | 2 ++ itchiodl/downloader/__main__.py | 12 ++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/itchiodl/bundle_tool/__main__.py b/itchiodl/bundle_tool/__main__.py index 9d07c6d..e28f4e7 100644 --- a/itchiodl/bundle_tool/__main__.py +++ b/itchiodl/bundle_tool/__main__.py @@ -3,6 +3,8 @@ import itchiodl def main(): + """CLI tool to at all games in a bundle to your library.""" + user = input("Username: ") password = getpass("Password: ") diff --git a/itchiodl/downloader/__main__.py b/itchiodl/downloader/__main__.py index af28212..5d958c1 100644 --- a/itchiodl/downloader/__main__.py +++ b/itchiodl/downloader/__main__.py @@ -6,6 +6,8 @@ import itchiodl def main(): + """CLI tool to download all games in your library.""" + parser = argparse.ArgumentParser( prog="itch-download", description="Download / archive your itch.io library." ) @@ -17,7 +19,10 @@ def main(): parser.add_argument( "-p", "--platform", - help="Platform to download for (default: all), will accept values like 'windows', 'linux', 'osx' and android", + help=( + "Platform to download for (default: all), will accept values like 'windows', 'linux', " + "'osx' and android" + ), ) parser.add_argument( @@ -26,7 +31,10 @@ def main(): default=False, const=True, nargs="?", - help="Download Folders are named based on the full text version of the title instead of the trimmed URL title", + help=( + "Download Folders are named based on the full text version of the title instead of " + "the trimmed URL title" + ), ) parser.add_argument(