瀏覽代碼

format code to follow black style

Victor Seva 5 年之前
父節點
當前提交
b1adc4d2fd
共有 2 個文件被更改,包括 12 次插入12 次删除
  1. 2 2
      kamcli/commands/cmd_srv.py
  2. 10 10
      setup.py

+ 2 - 2
kamcli/commands/cmd_srv.py

@@ -42,12 +42,12 @@ def srv_rpclist(ctx):
 @cli.command("rpchelp", short_help="Show the help text for rpc command")
 @cli.command("rpchelp", short_help="Show the help text for rpc command")
 @click.argument("command", metavar="<command>")
 @click.argument("command", metavar="<command>")
 @pass_context
 @pass_context
-def srv_rpchelp(ctx,command):
+def srv_rpchelp(ctx, command):
     """Show the the help text for rpc command
     """Show the the help text for rpc command
 
 
     \b
     \b
     """
     """
-    command_ctl(ctx, "system.methodHelp", [ command ])
+    command_ctl(ctx, "system.methodHelp", [command])
 
 
 
 
 @cli.command("info", short_help="Show server info")
 @cli.command("info", short_help="Show server info")

+ 10 - 10
setup.py

@@ -1,19 +1,19 @@
 from setuptools import setup
 from setuptools import setup
 
 
 setup(
 setup(
-    name='kamcli',
-    version='2.0.0',
-    packages=['kamcli', 'kamcli.commands'],
+    name="kamcli",
+    version="2.0.0",
+    packages=["kamcli", "kamcli.commands"],
     include_package_data=True,
     include_package_data=True,
     install_requires=[
     install_requires=[
-        'setuptools',
-        'click',
-        'pyaml',
-        'sqlalchemy',
-        'tabulate',
+        "setuptools",
+        "click",
+        "pyaml",
+        "sqlalchemy",
+        "tabulate",
     ],
     ],
-    entry_points='''
+    entry_points="""
         [console_scripts]
         [console_scripts]
         kamcli=kamcli.cli:cli
         kamcli=kamcli.cli:cli
-    ''',
+    """,
 )
 )