Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#659)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
pre-commit-ci[bot] and danielhollas authored Jan 13, 2025
1 parent 8444f81 commit 35c639a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
exclude: miscellaneous/structures

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
rev: v0.9.1
hooks:
- id: ruff-format
exclude: ^docs/.*
Expand All @@ -27,11 +27,11 @@ repos:
args: [--preserve-quotes]

- repo: https://github.com/sirosen/check-jsonschema
rev: 0.29.3
rev: 0.31.0
hooks:
- id: check-github-workflows

- repo: https://github.com/kynan/nbstripout
rev: 0.7.1
rev: 0.8.1
hooks:
- id: nbstripout
6 changes: 3 additions & 3 deletions aiidalab_widgets_base/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ def is_running_in_jupyter():

__all__ = [
"AiidaNodeViewWidget",
"BasicStructureEditor",
"BasicCellEditor",
"BasicStructureEditor",
"CodQueryWidget",
"CodeDatabaseWidget",
"CodeDropdown",
"CodQueryWidget",
"ComputerDatabaseWidget",
"ComputationalResourcesWidget",
"ComputerDatabaseWidget",
"ComputerDropdownWidget",
"ElnConfigureWidget",
"ElnExportWidget",
Expand Down
2 changes: 1 addition & 1 deletion aiidalab_widgets_base/wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def show_header(self, value):
def _update_titles(self):
for i, (title, widget) in enumerate(zip(self.titles, self.accordion.children)):
icon = self.ICONS.get(widget.state, str(widget.state).upper())
self.accordion.set_title(i, f"{icon} Step {i+1}: {title}")
self.accordion.set_title(i, f"{icon} Step {i + 1}: {title}")

def _consider_auto_advance(self, _=None):
"""Determine whether the app should automatically advance to the next step.
Expand Down
6 changes: 3 additions & 3 deletions tests/test_viewers.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def __init__(self, node=None):
# Load the viewer widget for the generated process node.
viewer = viewers.viewer(process)
# Verify that the loaded viewer is the correct type and is associated with the intended node.
assert isinstance(
viewer, AbcViewer
), "Viewer is not an instance of the expected viewer class."
assert isinstance(viewer, AbcViewer), (
"Viewer is not an instance of the expected viewer class."
)
assert viewer.node == process, "Viewer's node does not match the test process node."
8 changes: 4 additions & 4 deletions tests_notebooks/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pytest
import requests
import selenium.webdriver.support.expected_conditions as ec
from requests.exceptions import ConnectionError
from requests.exceptions import ConnectionError # noqa: A004
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait

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

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

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

0 comments on commit 35c639a

Please sign in to comment.