From 1c5a9d1efaa2f765a23812fd8e57bcc67a6a65f5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 14 Feb 2023 07:33:35 -0300 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#146) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 22.8.0 → 23.1.0](https://github.com/psf/black/compare/22.8.0...23.1.0) - [github.com/asottile/blacken-docs: v1.12.1 → 1.13.0](https://github.com/asottile/blacken-docs/compare/v1.12.1...1.13.0) - [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.0 → v3.0.0-alpha.4](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0-alpha.0...v3.0.0-alpha.4) - [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v4.4.0) - [github.com/PyCQA/autoflake: v1.6.1 → v2.0.1](https://github.com/PyCQA/autoflake/compare/v1.6.1...v2.0.1) - [github.com/asottile/reorder_python_imports: v3.8.3 → v3.9.0](https://github.com/asottile/reorder_python_imports/compare/v3.8.3...v3.9.0) - [github.com/pre-commit/mirrors-mypy: v0.981 → v1.0.0](https://github.com/pre-commit/mirrors-mypy/compare/v0.981...v1.0.0) * Update .pre-commit-config.yaml * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bruno Oliveira --- .pre-commit-config.yaml | 16 ++++++++-------- src/qmxgraph/widget.py | 2 -- tests/conftest.py | 1 + 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bb339f8..33bd87a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,29 +2,29 @@ default_language_version: python: python3.7 repos: - repo: https://github.com/psf/black - rev: 22.8.0 + rev: 23.1.0 hooks: - id: black args: [--safe, --quiet] language_version: python3 - repo: https://github.com/asottile/blacken-docs - rev: v1.12.1 + rev: 1.13.0 hooks: - id: blacken-docs - additional_dependencies: [black==20.8b1] + additional_dependencies: [black==23.1.0] - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v3.0.0-alpha.0" + rev: "v3.0.0-alpha.4" hooks: - id: prettier types_or: [css, javascript] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: debug-statements - repo: https://github.com/PyCQA/autoflake - rev: v1.6.1 + rev: v2.0.1 hooks: - id: autoflake name: autoflake @@ -32,7 +32,7 @@ repos: language: python files: \.py$ - repo: https://github.com/asottile/reorder_python_imports - rev: v3.8.3 + rev: v3.9.0 hooks: - id: reorder-python-imports args: ['--application-directories=.:src', --py36-plus] @@ -45,7 +45,7 @@ repos: language: python additional_dependencies: [pygments, restructuredtext_lint] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.981 + rev: v1.0.0 hooks: - id: mypy files: ^(src/|tests/) diff --git a/src/qmxgraph/widget.py b/src/qmxgraph/widget.py index 5d08d03..507c86e 100644 --- a/src/qmxgraph/widget.py +++ b/src/qmxgraph/widget.py @@ -295,7 +295,6 @@ def blank(self): self._web_view.blank() def set_enabled(self, enabled: bool) -> None: - # TODO[bruno]: tests. def update(api_ref, enabled): api = api_ref() @@ -312,7 +311,6 @@ def is_enabled(self) -> bool: return self._enabled def _connect_events_bridge(self): - self.api.register_cells_added_handler('bridge_events_handler.cells_added_slot') self.api.register_cells_removed_handler('bridge_events_handler.cells_removed_slot') self.api.register_label_changed_handler('bridge_events_handler.label_changed_slot') diff --git a/tests/conftest.py b/tests/conftest.py index fcc8792..65b7ca8 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -383,6 +383,7 @@ def get_edge(self, source, target): :return: Graphical element representing edge between vertices, if found, otherwise None. """ + # An edge is represented by a SVG path, it is created from # right side of 'foo' vertex until it connects with 'bar'. def get(v, attr):