changeset 455:b478eb51c4d5

wk: PEP8/pyflakes cleanup.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 10 Jan 2018 21:21:25 -0800
parents 07a930afd21a
children b1f899f5136d
files wikked/witch.py
diffstat 1 files changed, 27 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/wikked/witch.py	Wed Jan 10 20:08:26 2018 -0800
+++ b/wikked/witch.py	Wed Jan 10 21:21:25 2018 -0800
@@ -81,31 +81,36 @@
 
     # Setup the parser.
     parser = argparse.ArgumentParser(
-            description="Wikked command line utility")
-    parser.add_argument('--root',
-            help="Use the specified root directory instead of the current one")
-    parser.add_argument('--debug',
-            help="Show debug information",
-            action='store_true')
-    parser.add_argument('--debugsql',
-            help="Show debug information for SQLAlchemy (advanced)",
-            action='store_true')
-    parser.add_argument('--quiet',
-            help="Print only important information",
-            action='store_true')
-    parser.add_argument('--log',
-            help="Send log messages to the specified file")
-    parser.add_argument('--version',
-            help="Print version and exit",
-            action='store_true')
+        description="Wikked command line utility")
+    parser.add_argument(
+        '--root',
+        help="Use the specified root directory instead of the current one")
+    parser.add_argument(
+        '--debug',
+        help="Show debug information",
+        action='store_true')
+    parser.add_argument(
+        '--debugsql',
+        help="Show debug information for SQLAlchemy (advanced)",
+        action='store_true')
+    parser.add_argument(
+        '--quiet',
+        help="Print only important information",
+        action='store_true')
+    parser.add_argument(
+        '--log',
+        help="Send log messages to the specified file")
+    parser.add_argument(
+        '--version',
+        help="Print version and exit",
+        action='store_true')
 
     # Import the commands.
-    # (this creates a PyLint warning but it's OK)
     # pylint: disable=unused-import
-    import wikked.commands.manage
-    import wikked.commands.query
-    import wikked.commands.users
-    import wikked.commands.web
+    import wikked.commands.manage  # NOQA
+    import wikked.commands.query   # NOQA
+    import wikked.commands.users   # NOQA
+    import wikked.commands.web     # NOQA
 
     # Setup the command parsers.
     subparsers = parser.add_subparsers()