diff --git a/examples/drag_and_drop/main.py b/examples/drag_and_drop/main.py index cf1c3cb..214d04d 100644 --- a/examples/drag_and_drop/main.py +++ b/examples/drag_and_drop/main.py @@ -105,8 +105,7 @@ def on_cells_added_handler(cell_ids): def on_terminal_changed_handler(cell_id, terminal_type, new_terminal_id, old_terminal_id): print( - f"{terminal_type} of {cell_id} changed from" - f" {old_terminal_id} to {new_terminal_id}" + f"{terminal_type} of {cell_id} changed from {old_terminal_id} to {new_terminal_id}" ) def on_cells_removed_handler(cell_ids): diff --git a/scripts/svg_to_stencil.py b/scripts/svg_to_stencil.py index 8ad623e..969f65e 100644 --- a/scripts/svg_to_stencil.py +++ b/scripts/svg_to_stencil.py @@ -301,7 +301,7 @@ def _add_drawing_commands(self, value): import argparse arg_parser = argparse.ArgumentParser( - description="Converts a SVG file to a stencil file " "compatible with mxGraph." + description="Converts a SVG file to a stencil file compatible with mxGraph." ) arg_parser.add_argument( "svg", diff --git a/setup.py b/setup.py index 9dbcfdc..0581825 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ name="qmxgraph", use_scm_version=True, setup_requires=["setuptools_scm"], - description="A Qt graph drawing widget using JavaScript's mxGraph " "library.", + description="A Qt graph drawing widget using JavaScript's mxGraph library.", long_description=readme + "\n\n" + history, author="Rafael Bertoldi", author_email="tochaman@gmail.com", diff --git a/src/qmxgraph/server.py b/src/qmxgraph/server.py index 642cd04..c5d5163 100644 --- a/src/qmxgraph/server.py +++ b/src/qmxgraph/server.py @@ -170,7 +170,7 @@ def host(port, options=None, styles=None, stencils=tuple()): for stencil in stencils: candidate = os.path.dirname(stencil) assert candidate != stencils_path, ( - "Due to simplification, expects " "all stencils in same folder" + "Due to simplification, expects all stencils in same folder" ) stencils_path = candidate stencils_.append("stencils/{}".format(os.path.basename(stencil))) diff --git a/tasks.py b/tasks.py index 5a15342..b404460 100644 --- a/tasks.py +++ b/tasks.py @@ -98,7 +98,7 @@ def create_web_resource(resource_name, src_dir): @invoke.task( help={ "python-version": ( - "Can be used to define the python version used when creating the" " work environment" + "Can be used to define the python version used when creating the work environment" ), } ) @@ -380,7 +380,7 @@ def fix_alias(a): ] if not files: raise RuntimeError( - "Unable to collect anything for " ".qrc file in folder {}".format(source_dir) + "Unable to collect anything for .qrc file in folder {}".format(source_dir) ) qrc_filename = os.path.join(target_dir, "{basename}{ext}".format(basename=basename, ext=".qrc")) diff --git a/tests/conftest.py b/tests/conftest.py index c1ff37a..f659a51 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -133,7 +133,7 @@ def get(self): os.remove(lock_file) if attempts == 0: - raise IOError("Unable to obtain unique port after " "{} attempts".format(attempts)) + raise IOError("Unable to obtain unique port after {} attempts".format(attempts)) return port_ @@ -962,7 +962,7 @@ def _wait_graph_page_ready(host, selenium): ) except timeout_exceptions as e: raise TimeoutException( - "Graph page wasn't ready in address {} after a timeout of {}" " seconds".format( + "Graph page wasn't ready in address {} after a timeout of {} seconds".format( host.address, timeout ) ) from e