Skip to content

Commit

Permalink
Bump ruff to 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Nov 28, 2024
1 parent 833d800 commit 1575da6
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 13 deletions.
7 changes: 3 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand All @@ -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
4 changes: 2 additions & 2 deletions home/app_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions home/app_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down
4 changes: 2 additions & 2 deletions home/start_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion home/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")):
Expand Down
1 change: 1 addition & 0 deletions home/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import ipywidgets as ipw
import traitlets

from aiidalab.app import AppRemoteUpdateStatus as AppStatus
from aiidalab.config import AIIDALAB_REGISTRY

Expand Down
2 changes: 1 addition & 1 deletion single_app.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
},
Expand Down
2 changes: 1 addition & 1 deletion tests_notebooks/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1575da6

Please sign in to comment.