-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from minrk/lint
add and run linter config via pre-commit
- Loading branch information
Showing
14 changed files
with
195 additions
and
90 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
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 |
---|---|---|
@@ -1,5 +1,35 @@ | ||
jupyterhub-proxy.pid | ||
jupyterhub_cookie_secret | ||
*.key | ||
*.key.pub | ||
*.egg-info | ||
|
||
node_modules | ||
*.py[co] | ||
*~ | ||
.cache | ||
.DS_Store | ||
/build | ||
dist | ||
docs/_build | ||
docs/build | ||
|
||
.ipynb_checkpoints | ||
.virtual_documents | ||
|
||
|
||
jupyterhub_cookie_secret | ||
jupyterhub.sqlite | ||
jupyterhub.sqlite* | ||
|
||
*.egg-info | ||
MANIFEST | ||
.coverage | ||
.coverage.* | ||
htmlcov | ||
.idea/ | ||
.vscode/ | ||
.pytest_cache | ||
pip-wheel-metadata | ||
oldest-requirements.txt | ||
jupyterhub-proxy.pid | ||
|
||
*.hot-update* |
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,49 @@ | ||
# pre-commit is a tool to perform a predefined set of tasks manually and/or | ||
# automatically before git commits are made. | ||
# | ||
# Config reference: https://pre-commit.com/#pre-commit-configyaml---top-level | ||
# | ||
# Common tasks | ||
# | ||
# - Run on all files: pre-commit run --all-files | ||
# - Register git hooks: pre-commit install --install-hooks | ||
# | ||
|
||
ci: | ||
# pre-commit.ci will open PRs updating our hooks once a month | ||
autoupdate_schedule: monthly | ||
|
||
repos: | ||
# autoformat and lint Python code | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.6.3 | ||
hooks: | ||
- id: ruff | ||
types_or: | ||
- python | ||
- jupyter | ||
args: ["--fix", "--show-fixes"] | ||
- id: ruff-format | ||
types_or: | ||
- python | ||
- jupyter | ||
|
||
# Autoformat: markdown, yaml, javascript (see the file .prettierignore) | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v4.0.0-alpha.8 | ||
hooks: | ||
- id: prettier | ||
|
||
# Format toml | ||
- repo: https://github.com/ComPWA/taplo-pre-commit | ||
rev: v0.9.3 | ||
hooks: | ||
- id: taplo-format | ||
- id: taplo-lint | ||
|
||
# Autoformat and linting, misc. details | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: end-of-file-fixer | ||
- id: requirements-txt-fixer |
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# SMART on FHIR flow in Jupyter | ||
|
||
This repo contains two demos: | ||
- `server_extension`: a Jupyter server extension that acts as public client for a SMART server. | ||
- `hub_service`: a JupyterHub service that acts as confidential client for a SMART server and performs asymmetric authentication. | ||
|
||
- `server_extension`: a Jupyter server extension that acts as public client for a SMART server. | ||
- `hub_service`: a JupyterHub service that acts as confidential client for a SMART server and performs asymmetric authentication. | ||
|
||
Check the READMEs in the respective folders for more information. Work in progress. |
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
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import requests | ||
|
||
from oauthenticator.generic import GenericOAuthenticator | ||
|
||
c = get_config() # noqa | ||
|
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
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
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
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
Oops, something went wrong.