diff options
author | Xiretza <xiretza@xiretza.xyz> | 2021-02-10 19:17:23 +0100 |
---|---|---|
committer | tgingold <tgingold@users.noreply.github.com> | 2021-02-10 21:36:22 +0100 |
commit | d52693df5bc7480c3917b7248f8602f2942aeab7 (patch) | |
tree | 6404e02d6f053a6b53c561c6b60a6a54152a9e63 /pyGHDL/cli | |
parent | 8f563f9df8ad94e44f1bd8eecd91d5611e507cc7 (diff) | |
download | ghdl-d52693df5bc7480c3917b7248f8602f2942aeab7.tar.gz ghdl-d52693df5bc7480c3917b7248f8602f2942aeab7.tar.bz2 ghdl-d52693df5bc7480c3917b7248f8602f2942aeab7.zip |
pyGHDL: format using black
Diffstat (limited to 'pyGHDL/cli')
-rw-r--r-- | pyGHDL/cli/lsp.py | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/pyGHDL/cli/lsp.py b/pyGHDL/cli/lsp.py index 44d55635d..055f53251 100644 --- a/pyGHDL/cli/lsp.py +++ b/pyGHDL/cli/lsp.py @@ -42,9 +42,9 @@ import os from pydecor import export import pyGHDL.libghdl as libghdl -from pyGHDL.libghdl import version, errorout_console -from pyGHDL.lsp import LSPConnTrace -from pyGHDL.lsp.lsp import LSPConn, LanguageProtocolServer +from pyGHDL.libghdl import version, errorout_console +from pyGHDL.lsp import LSPConnTrace +from pyGHDL.lsp.lsp import LSPConn, LanguageProtocolServer from pyGHDL.lsp.vhdl_ls import VhdlLanguageServer __loggerName = "ghdl-ls" @@ -62,7 +62,9 @@ def __rotate_log_files(basename: str, num: int): def _generateCLIParser() -> ArgumentParser: """Creates an CLI argument parser based on ``argparse``.""" - parser = ArgumentParser(description="VHDL Language Protocol Server. Find info about clients in `ghdl/ghdl-language-server <https://github.com/ghdl/ghdl-language-server>`__.") + parser = ArgumentParser( + description="VHDL Language Protocol Server. Find info about clients in `ghdl/ghdl-language-server <https://github.com/ghdl/ghdl-language-server>`__." + ) parser.add_argument( "--version", "-V", action="version", version="%(prog)s " + version.__version__ ) @@ -72,7 +74,10 @@ def _generateCLIParser() -> ArgumentParser: parser.add_argument( "--log-file", help="Redirect logs to the given file instead of stderr" ) - parser.add_argument("--trace-file", help="Save RPC data to FILE.in and FILE.out (overrides :envvar:`GHDL_LS_TRACE`)") + parser.add_argument( + "--trace-file", + help="Save RPC data to FILE.in and FILE.out (overrides :envvar:`GHDL_LS_TRACE`)", + ) parser.add_argument("--input", "-i", help="Read request from file") parser.add_argument( "--disp-config", @@ -151,5 +156,5 @@ def main(): sys.exit(1) -if __name__ == '__main__': +if __name__ == "__main__": main() |