Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #659

Merged
merged 3 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading