-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7d7ce4e
Showing
10 changed files
with
437 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
# Run basic tests for this app on the latest aiidalab-docker image. | ||
|
||
name: continuous-integration | ||
|
||
on: [push] | ||
|
||
jobs: | ||
|
||
test-app: | ||
|
||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
|
||
strategy: | ||
matrix: | ||
tag: [stable, latest] | ||
browser: [chrome, firefox] | ||
fail-fast: false | ||
|
||
steps: | ||
|
||
- name: Check out app | ||
uses: actions/checkout@v2 | ||
|
||
- name: Test app | ||
uses: aiidalab/aiidalab-test-app-action@v2 | ||
with: | ||
image: aiidalab/aiidalab-docker-stack:${{ matrix.tag }} | ||
browser: ${{ matrix.browser }} | ||
|
||
- name: Upload screenshots as artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Screenshots-${{ matrix.tag }}-${{ matrix.browser }} | ||
path: screenshots/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
*.egg* | ||
*.swo | ||
*.swp | ||
*~ | ||
.*.ipynb | ||
.DS_Store | ||
.ipynb_checkpoints/* | ||
.vscode | ||
__pycache__/ | ||
~* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
--- | ||
ci: | ||
autoupdate_schedule: quarterly | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: end-of-file-fixer | ||
exclude: ^.*data/ | ||
- id: trailing-whitespace | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
args: [--profile, black, --filter-files] | ||
- repo: https://github.com/PyCQA/autoflake | ||
rev: v2.0.0 | ||
hooks: | ||
- id: autoflake | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.2.2 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py37-plus] | ||
- repo: https://github.com/psf/black | ||
rev: 22.12.0 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
args: [--count, --show-source, --statistics] | ||
additional_dependencies: | ||
- flake8-bugbear | ||
- flake8-builtins | ||
- flake8-comprehensions | ||
- flake8-debugger | ||
- flake8-logging-format | ||
- pep8-naming | ||
- pyflakes | ||
- tryceratops | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v0.961 | ||
hooks: | ||
- id: mypy | ||
additional_dependencies: | ||
- types-click-spinner | ||
- types-requests | ||
- types-tabulate | ||
- types-toml | ||
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt | ||
rev: 0.2.1 | ||
hooks: | ||
- id: yamlfmt | ||
- repo: https://github.com/asottile/setup-cfg-fmt | ||
rev: v2.2.0 | ||
hooks: | ||
- id: setup-cfg-fmt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 The AiiDAlab Team. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# MFA for CSCS | ||
|
||
Enable multi-factor authentication for CSCS. | ||
|
||
## Installation | ||
|
||
This Jupyter-based app is intended to be run with [AiiDAlab](https://www.materialscloud.org/aiidalab). | ||
|
||
Assuming that the app was registered, you can install it directly via the app store in AiiDAlab or on the command line with: | ||
``` | ||
aiidalab install mfa-cscs | ||
``` | ||
Otherwise, you can also install it directly from the repository: | ||
``` | ||
aiidalab install mfa-cscs@https://github.com/aiidalab/mfa-cscs | ||
``` | ||
|
||
## Usage | ||
|
||
Here may go a few sreenshots / animated gifs illustrating how to use the app. | ||
|
||
## License | ||
|
||
MIT | ||
|
||
## Contact |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[metadata] | ||
name = aiidalab_mfa_cscs | ||
version = 0.1-alpha | ||
description = Enable multi-factor authentication for CSCS. | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
url = https://github.com/aiidalab/aiidalab-mfa-cscs | ||
author = The AiiDAlab Team | ||
license = MIT | ||
license_file = LICENSE | ||
classifiers = | ||
Development Status :: 1 - Planning | ||
License :: OSI Approved :: MIT License | ||
Operating System :: OS Independent | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3 :: Only | ||
project_urls = | ||
Logo = https://raw.githubusercontent.com/aiidalab/aiidalab-mfa-cscs/main/img/logo.png | ||
Documentation = https://github.com/aiidalab/aiidalab-mfa-cscs/#readme | ||
Bug Tracker = https://github.com/aiidalab/aiidalab-mfa-cscs/issues | ||
|
||
[options] | ||
packages = find: | ||
install_requires = | ||
aiidalab>=21.09.0 | ||
humanize | ||
ipywidgets | ||
python_requires = >=3.7 | ||
|
||
[aiidalab] | ||
title = MFA for CSCS | ||
|
||
[flake8] | ||
ignore = | ||
E501 | ||
W503 | ||
E203 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from setuptools import setup | ||
|
||
setup() |
Oops, something went wrong.