Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#165)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.12.1 → 24.3.0](psf/black@23.12.1...24.3.0)
- [github.com/PyCQA/flake8: 6.1.0 → 7.0.0](PyCQA/flake8@6.1.0...7.0.0)
- [github.com/sirosen/check-jsonschema: 0.27.3 → 0.28.1](python-jsonschema/check-jsonschema@0.27.3...0.28.1)
- [github.com/kynan/nbstripout: 0.6.1 → 0.7.1](kynan/nbstripout@0.6.1...0.7.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Apr 2, 2024
1 parent f41169f commit f51088e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 26 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ repos:
- id: yamlfmt

- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.3.0
hooks:
- id: black
language_version: python3 # Should be a command that runs python3.6+

- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
rev: 7.0.0
hooks:
- id: flake8
args: [--count, --show-source, --statistics]
Expand All @@ -44,11 +44,11 @@ repos:
- id: setup-cfg-fmt

- repo: https://github.com/sirosen/check-jsonschema
rev: 0.27.3
rev: 0.28.1
hooks:
- id: check-github-workflows

- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
rev: 0.7.1
hooks:
- id: nbstripout
24 changes: 6 additions & 18 deletions home/app_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,25 +347,19 @@ def _refresh_widget_state(self, _=None):
self.install_button.icon = (
""
if can_install and not detached
else warn_or_ban_icon
if can_install
else ""
else warn_or_ban_icon if can_install else ""
)
if self.app.compatible:
self.install_button.tooltip = (
""
if can_install and not detached
else tooltip_danger
if can_install
else ""
else tooltip_danger if can_install else ""
)
else:
self.install_button.tooltip = (
""
if installed and not detached
else tooltip_danger
if installed
else tooltip_incompatible
else tooltip_danger if installed else tooltip_incompatible
)
self.install_button.description = (
"Install"
Expand All @@ -382,9 +376,7 @@ def _refresh_widget_state(self, _=None):
self.uninstall_button.tooltip = (
""
if can_uninstall and not detached
else tooltip_danger
if can_uninstall
else ""
else tooltip_danger if can_uninstall else ""
)

# Update the update button state.
Expand All @@ -398,17 +390,13 @@ def _refresh_widget_state(self, _=None):
self.update_button.icon = (
"arrow-circle-up"
if can_update and not detached
else warn_or_ban_icon
if can_update
else ""
else warn_or_ban_icon if can_update else ""
)
self.update_button.button_style = "success" if can_update else ""
self.update_button.tooltip = (
""
if can_update and not detached
else tooltip_danger
if can_update
else ""
else tooltip_danger if can_update else ""
)

# Update the version_selector widget state.
Expand Down
1 change: 1 addition & 0 deletions home/start_page.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module to generate AiiDAlab home page."""

import json
from functools import wraps
from glob import glob
Expand Down
8 changes: 4 additions & 4 deletions open_app.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "1e6a8c8c",
"id": "0",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -14,7 +14,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "7e7e205e",
"id": "1",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -43,7 +43,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "b3e749de",
"id": "2",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -55,7 +55,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "c25a71a5",
"id": "3",
"metadata": {},
"outputs": [],
"source": [
Expand Down

0 comments on commit f51088e

Please sign in to comment.