Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#146)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 22.8.0 → 23.1.0](psf/black@22.8.0...23.1.0)
- [github.com/asottile/blacken-docs: v1.12.1 → 1.13.0](adamchainz/blacken-docs@v1.12.1...1.13.0)
- [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.0 → v3.0.0-alpha.4](pre-commit/mirrors-prettier@v3.0.0-alpha.0...v3.0.0-alpha.4)
- [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](pre-commit/pre-commit-hooks@v4.3.0...v4.4.0)
- [github.com/PyCQA/autoflake: v1.6.1 → v2.0.1](PyCQA/autoflake@v1.6.1...v2.0.1)
- [github.com/asottile/reorder_python_imports: v3.8.3 → v3.9.0](asottile/reorder-python-imports@v3.8.3...v3.9.0)
- [github.com/pre-commit/mirrors-mypy: v0.981 → v1.0.0](pre-commit/mirrors-mypy@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 <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and nicoddemus authored Feb 14, 2023
1 parent c6d55b8 commit 1c5a9d1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,37 @@ 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
entry: autoflake --in-place --remove-all-unused-imports
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]
Expand All @@ -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/)
Expand Down
2 changes: 0 additions & 2 deletions src/qmxgraph/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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')
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 1c5a9d1

Please sign in to comment.