-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add_feature_histograms
- Loading branch information
Showing
75 changed files
with
1,746 additions
and
499 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,61 @@ | ||
name: Build docs | ||
|
||
on: | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
jobs: | ||
build-docs: | ||
name: Build & Upload Artifact | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10" | ||
|
||
- uses: tlambert03/setup-qt-libs@v1 | ||
|
||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install ".[docs]" | ||
sudo apt install graphviz --yes | ||
- name: Build Docs | ||
uses: aganders3/headless-gui@v1 | ||
with: | ||
run: make html | ||
working-directory: ./docs | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: docs | ||
path: docs/_build | ||
|
||
upload-docs: | ||
name: Upload docs to GitHub pages | ||
runs-on: ubuntu-latest | ||
needs: build-docs | ||
if: contains(github.ref, 'tags') | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: docs | ||
|
||
- name: Push to GitHub pages | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: html | ||
ssh-key: ${{ secrets.DEPLOY_KEY }} | ||
repository-name: napari-matplotlib/napari-matplotlib.github.io |
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 |
---|---|---|
|
@@ -13,9 +13,9 @@ jobs: | |
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
|
||
- name: napari hub Preview Page Builder | ||
uses: chanzuckerberg/[email protected].5 | ||
uses: chanzuckerberg/[email protected] | ||
with: | ||
hub-ref: main |
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 was deleted.
Oops, something went wrong.
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,8 @@ | ||
labels: | ||
ontology: EDAM-BIOIMAGING:alpha06 | ||
terms: | ||
- 2D Image | ||
- 3D Image | ||
- Plotting | ||
- Slice rendering | ||
- Scientific visualisation |
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,43 +1,32 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.2.0 | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-docstring-first | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- repo: https://github.com/asottile/setup-cfg-fmt | ||
rev: v1.20.1 | ||
hooks: | ||
- id: setup-cfg-fmt | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 4.0.1 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: [flake8-typing-imports>=1.9.0] | ||
- repo: https://github.com/myint/autoflake | ||
rev: v1.4 | ||
hooks: | ||
- id: autoflake | ||
args: ["--in-place", "--remove-all-unused-imports"] | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.10.1 | ||
hooks: | ||
- id: isort | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 22.3.0 | ||
rev: 23.7.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v2.32.0 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py38-plus, --keep-runtime-typing] | ||
|
||
- repo: https://github.com/tlambert03/napari-plugin-checks | ||
rev: v0.2.0 | ||
rev: v0.3.0 | ||
hooks: | ||
- id: napari-plugin-checks | ||
|
||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v0.910-1 | ||
rev: v1.5.1 | ||
hooks: | ||
- id: mypy | ||
args: ["--disallow-incomplete-defs", "--ignore-missing-imports"] | ||
additional_dependencies: [numpy, matplotlib] | ||
|
||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: 'v0.0.285' | ||
hooks: | ||
- id: ruff | ||
|
||
ci: | ||
autofix_prs: false |
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,15 @@ | ||
version: 2 | ||
|
||
python: | ||
install: | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- docs | ||
|
||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.10" | ||
apt_packages: | ||
- xvfb |
This file was deleted.
Oops, something went wrong.
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.