diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 55f8fbe..42dd85e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,10 +14,9 @@ repos: exclude: miscellaneous/structures/SiO2.xyz - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.9 + rev: v0.8.0 hooks: - id: ruff-format - exclude: ^docs/.* - id: ruff args: [--fix, --exit-non-zero-on-fix, --show-fixes] @@ -27,11 +26,11 @@ repos: - id: yamlfmt - repo: https://github.com/sirosen/check-jsonschema - rev: 0.29.3 + rev: 0.29.4 hooks: - id: check-github-workflows - repo: https://github.com/kynan/nbstripout - rev: 0.7.1 + rev: 0.8.1 hooks: - id: nbstripout diff --git a/home/app_manager.py b/home/app_manager.py index c1c6e1b..fa9fc3c 100644 --- a/home/app_manager.py +++ b/home/app_manager.py @@ -4,11 +4,11 @@ import ipywidgets as ipw import traitlets -from aiidalab.app import AppRemoteUpdateStatus as AppStatus -from aiidalab.app import AppVersion from jinja2 import Template from packaging.version import InvalidVersion, parse +from aiidalab.app import AppRemoteUpdateStatus as AppStatus +from aiidalab.app import AppVersion from home.utils import load_logo from home.widgets import LogOutputWidget, Spinner, StatusHTML diff --git a/home/app_store.py b/home/app_store.py index e040229..4e64f83 100644 --- a/home/app_store.py +++ b/home/app_store.py @@ -3,11 +3,11 @@ import logging import ipywidgets as ipw -from aiidalab.app import AiidaLabApp -from aiidalab.utils import load_app_registry_index from IPython.display import display from jinja2 import Template +from aiidalab.app import AiidaLabApp +from aiidalab.utils import load_app_registry_index from home.app_manager import AppManagerWidget logger = logging.getLogger(__name__) diff --git a/home/start_page.py b/home/start_page.py index f67d126..6e31791 100644 --- a/home/start_page.py +++ b/home/start_page.py @@ -7,10 +7,10 @@ import ipywidgets as ipw import traitlets -from aiidalab.app import AiidaLabApp -from aiidalab.config import AIIDALAB_APPS from IPython.display import display +from aiidalab.app import AiidaLabApp +from aiidalab.config import AIIDALAB_APPS from home.utils import load_widget from home.widgets import AppStatusInfoWidget diff --git a/home/utils.py b/home/utils.py index c365b1f..bb1f534 100644 --- a/home/utils.py +++ b/home/utils.py @@ -5,9 +5,10 @@ from os import path import ipywidgets as ipw -from aiidalab.config import AIIDALAB_APPS from markdown import markdown +from aiidalab.config import AIIDALAB_APPS + def load_widget(name): if path.exists(path.join(AIIDALAB_APPS, name, "start.py")): diff --git a/home/widgets.py b/home/widgets.py index 31fef04..6b10a74 100644 --- a/home/widgets.py +++ b/home/widgets.py @@ -4,6 +4,7 @@ import ipywidgets as ipw import traitlets + from aiidalab.app import AppRemoteUpdateStatus as AppStatus from aiidalab.config import AIIDALAB_REGISTRY diff --git a/single_app.ipynb b/single_app.ipynb index 5657c6b..28ebb3f 100644 --- a/single_app.ipynb +++ b/single_app.ipynb @@ -24,10 +24,10 @@ "import urllib.parse as urlparse\n", "\n", "import ipywidgets as ipw\n", + "\n", "from aiidalab.app import AiidaLabApp\n", "from aiidalab.config import AIIDALAB_APPS\n", "from aiidalab.utils import load_app_registry_entry\n", - "\n", "from home.app_manager import AppManagerWidget" ] }, diff --git a/tests_notebooks/conftest.py b/tests_notebooks/conftest.py index 379aa02..b85c555 100644 --- a/tests_notebooks/conftest.py +++ b/tests_notebooks/conftest.py @@ -6,7 +6,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