-
Notifications
You must be signed in to change notification settings - Fork 0
Make the docs and the demo data reachable from a pip install #105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
8489063
Make the documentation reachable from a pip install
alexisj-inria bdd5e41
Publish the example dataset as a release asset
alexisj-inria d4af786
Add `clinical-scope --demo` to fetch the demo dataset
alexisj-inria 31c1857
Document how to get the demo data without a checkout
alexisj-inria 29daef5
Fix what the three-axis review found on the demo/docs branch
alexisj-inria d3c4629
Make the branch pass ruff again
alexisj-inria 089e024
Add a local run of the CI checks
alexisj-inria 9a9a2ce
Apply the PR 105 review
alexisj-inria c8c05f8
Settle on "user guide" over "tutorial"
alexisj-inria File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,44 @@ | ||
| #!/usr/bin/env bash | ||
| # | ||
| # Run what CI runs, before pushing. Mirrors ci.yml next door, including its split into | ||
| # independent groups: CI has two jobs so a lint failure cannot hide a test failure, so this | ||
| # runs every check and reports them together rather than stopping at the first one. | ||
| # | ||
| # CI runs the suite on Python 3.11 and 3.13; this covers whichever interpreter is active. | ||
|
|
||
| set -uo pipefail | ||
| cd "$(dirname "${BASH_SOURCE[0]}")/.." || exit 1 | ||
|
|
||
| bold=$(tput bold 2>/dev/null || true) | ||
| reset=$(tput sgr0 2>/dev/null || true) | ||
| failed="" | ||
|
|
||
| run() { | ||
| local name="$1" | ||
| shift | ||
| printf '\n%s==> %s%s\n' "$bold" "$name" "$reset" | ||
| "$@" || failed="$failed '$name'" | ||
| } | ||
|
|
||
| # Recorded first, as in CI: ruff is capped to one minor line because select = ["ALL"] opts into | ||
| # every rule a new one adds, so a version mismatch is what to check when a green branch reddens. | ||
| if ! version=$(ruff --version 2>/dev/null); then | ||
| echo "ruff not found — activate the project venv, then: pip install -e .[dev]" >&2 | ||
| exit 1 | ||
| fi | ||
| echo "$version" | ||
| case "$version" in | ||
| "ruff 0.16."*) ;; | ||
| *) echo "${bold}warning:${reset} CI pins ruff to 0.16.x — '$version' will disagree with it" >&2 ;; | ||
| esac | ||
|
|
||
| run "Ruff format check" ruff format --check . | ||
| run "Ruff lint check" ruff check . | ||
| run "Tests" pytest | ||
|
|
||
| if [ -z "$failed" ]; then | ||
| printf '\n%sAll CI checks passed.%s\n' "$bold" "$reset" | ||
| exit 0 | ||
| fi | ||
| printf '\n%sFailed:%s%s\n' "$bold" "$failed" "$reset" | ||
| exit 1 |
This file contains hidden or 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 hidden or 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 hidden or 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
|
AlexisJanin marked this conversation as resolved.
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.