Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 24, 2024
1 parent 0d6d58c commit 2f883a7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion plugin_list.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"from IPython.display import display\n",
"\n",
"\n",
"\n",
"def is_package_installed(package_name):\n",
" import importlib\n",
" package_name = package_name.replace('-', '_')\n",
Expand Down
10 changes: 7 additions & 3 deletions qe.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
"outputs": [],
"source": [
"import ipywidgets as ipw\n",
"from aiidalab_qe.app import static\n",
"from importlib_resources import files\n",
"\n",
"from aiidalab_qe.app import static\n",
"\n",
"for stylesheet in [\"style\", \"custom\"]:\n",
" css = files(static).joinpath(f\"{stylesheet}.css\")\n",
" if css.is_file():\n",
Expand Down Expand Up @@ -64,10 +65,11 @@
"source": [
"from datetime import datetime\n",
"\n",
"from aiidalab_qe.version import __version__\n",
"from IPython.display import Image, display\n",
"from jinja2 import Environment\n",
"\n",
"from aiidalab_qe.version import __version__\n",
"\n",
"output = ipw.Output()\n",
"\n",
"logo_img = Image(\n",
Expand Down Expand Up @@ -189,6 +191,7 @@
"source": [
"# TODO migrate to `aiidalab_widgets_base` as `ToggleTabsWidget`\n",
"\n",
"\n",
"def without_triggering(toggle: str):\n",
" \"\"\"Decorator to prevent the other toggle from triggering its callback.\"\"\"\n",
"\n",
Expand Down Expand Up @@ -233,11 +236,12 @@
"source": [
"import urllib.parse as urlparse\n",
"\n",
"from aiidalab_qe.app.main import App\n",
"from aiidalab_widgets_base.bug_report import (\n",
" install_create_github_issue_exception_handler,\n",
")\n",
"\n",
"from aiidalab_qe.app.main import App\n",
"\n",
"install_create_github_issue_exception_handler(\n",
" output,\n",
" url=\"https://github.com/aiidalab/aiidalab-qe/issues/new\",\n",
Expand Down
2 changes: 1 addition & 1 deletion src/aiidalab_qe/app/static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@

footer {
text-align: right;
}
}

0 comments on commit 2f883a7

Please sign in to comment.