Skip to content

Commit 35c639a

Browse files
[pre-commit.ci] pre-commit autoupdate (#659)
updates: - [github.com/astral-sh/ruff-pre-commit: v0.6.9 → v0.9.1](astral-sh/ruff-pre-commit@v0.6.9...v0.9.1) - [github.com/sirosen/check-jsonschema: 0.29.3 → 0.31.0](python-jsonschema/check-jsonschema@0.29.3...0.31.0) - [github.com/kynan/nbstripout: 0.7.1 → 0.8.1](kynan/nbstripout@0.7.1...0.8.1) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Daniel Hollas <[email protected]>
1 parent 8444f81 commit 35c639a

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repos:
1313
exclude: miscellaneous/structures
1414

1515
- repo: https://github.com/astral-sh/ruff-pre-commit
16-
rev: v0.6.9
16+
rev: v0.9.1
1717
hooks:
1818
- id: ruff-format
1919
exclude: ^docs/.*
@@ -27,11 +27,11 @@ repos:
2727
args: [--preserve-quotes]
2828

2929
- repo: https://github.com/sirosen/check-jsonschema
30-
rev: 0.29.3
30+
rev: 0.31.0
3131
hooks:
3232
- id: check-github-workflows
3333

3434
- repo: https://github.com/kynan/nbstripout
35-
rev: 0.7.1
35+
rev: 0.8.1
3636
hooks:
3737
- id: nbstripout

aiidalab_widgets_base/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ def is_running_in_jupyter():
9191

9292
__all__ = [
9393
"AiidaNodeViewWidget",
94-
"BasicStructureEditor",
9594
"BasicCellEditor",
95+
"BasicStructureEditor",
96+
"CodQueryWidget",
9697
"CodeDatabaseWidget",
9798
"CodeDropdown",
98-
"CodQueryWidget",
99-
"ComputerDatabaseWidget",
10099
"ComputationalResourcesWidget",
100+
"ComputerDatabaseWidget",
101101
"ComputerDropdownWidget",
102102
"ElnConfigureWidget",
103103
"ElnExportWidget",

aiidalab_widgets_base/wizard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def show_header(self, value):
160160
def _update_titles(self):
161161
for i, (title, widget) in enumerate(zip(self.titles, self.accordion.children)):
162162
icon = self.ICONS.get(widget.state, str(widget.state).upper())
163-
self.accordion.set_title(i, f"{icon} Step {i+1}: {title}")
163+
self.accordion.set_title(i, f"{icon} Step {i + 1}: {title}")
164164

165165
def _consider_auto_advance(self, _=None):
166166
"""Determine whether the app should automatically advance to the next step.

tests/test_viewers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def __init__(self, node=None):
301301
# Load the viewer widget for the generated process node.
302302
viewer = viewers.viewer(process)
303303
# Verify that the loaded viewer is the correct type and is associated with the intended node.
304-
assert isinstance(
305-
viewer, AbcViewer
306-
), "Viewer is not an instance of the expected viewer class."
304+
assert isinstance(viewer, AbcViewer), (
305+
"Viewer is not an instance of the expected viewer class."
306+
)
307307
assert viewer.node == process, "Viewer's node does not match the test process node."

tests_notebooks/conftest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import pytest
66
import requests
77
import selenium.webdriver.support.expected_conditions as ec
8-
from requests.exceptions import ConnectionError
8+
from requests.exceptions import ConnectionError # noqa: A004
99
from selenium.webdriver.common.by import By
1010
from selenium.webdriver.support.wait import WebDriverWait
1111

@@ -77,9 +77,9 @@ def notebook_service(docker_ip, docker_services, aiidalab_exec):
7777
output = aiidalab_exec("verdi --version").decode("utf-8").strip()
7878
after_version = output.split(" ")[-1]
7979

80-
assert (
81-
before_version == after_version
82-
), f"aiida-core version was changed from {before_version} to {after_version}."
80+
assert before_version == after_version, (
81+
f"aiida-core version was changed from {before_version} to {after_version}."
82+
)
8383

8484
# `port_for` takes a container port and returns the corresponding host port
8585
port = docker_services.port_for("aiidalab", 8888)

0 commit comments

Comments
 (0)