Skip to content

Commit

Permalink
fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
eimrek committed Oct 8, 2024
1 parent b6fe976 commit 79d75d2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ pip install -e .
voila --Voila.config_file_paths=./ OPTIMADE-Client.ipynb
```

For development:

```bash
pip install -e .[dev]
pre-commit install
```

## Test and deploy

Once the changes are made, push to `dev-dokku` server to see if the new changes work well by running:
Expand Down
5 changes: 4 additions & 1 deletion tools_optimade_client/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
QE_INPUT_APP_URL_PROD = "https://qeinputgenerator.materialscloud.io"
QE_INPUT_APP_URL_DEV = "https://qeinputgenerator.matcloud.xyz"


class QEInputButton(ipw.HTML):
"""QE Input Generator upload button
Expand Down Expand Up @@ -67,7 +68,9 @@ def __init__(self, button_style: Union[ButtonStyle, str] = None, **kwargs) -> No
else:
self._button_style = ButtonStyle.DEFAULT

self._default_domain = QE_INPUT_APP_URL_DEV if DEVELOPMENT_MODE else QE_INPUT_APP_URL_PROD
self._default_domain = (
QE_INPUT_APP_URL_DEV if DEVELOPMENT_MODE else QE_INPUT_APP_URL_PROD
)

kwargs.pop("value", None)
super().__init__(
Expand Down

0 comments on commit 79d75d2

Please sign in to comment.