Skip to content

Commit 622eb75

Browse files
committed
Merge branch 'add-feature-histogram' of https://github.com/jo-mueller/napari-matplotlib into add-feature-histogram
2 parents c3d1d01 + 83747f9 commit 622eb75

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+579
-213
lines changed

.github/workflows/docs.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- main
77

88
jobs:
9-
build-and-upload:
9+
build-docs:
1010
name: Build & Upload Artifact
1111
runs-on: ubuntu-latest
1212
steps:
@@ -22,6 +22,8 @@ jobs:
2222
run: |
2323
python -m pip install --upgrade pip
2424
python -m pip install ".[docs]"
25+
sudo apt install graphviz --yes
26+
2527
- name: Build Docs
2628
uses: aganders3/headless-gui@v1
2729
with:
@@ -33,3 +35,21 @@ jobs:
3335
with:
3436
name: docs
3537
path: docs/_build
38+
39+
upload-docs:
40+
name: Upload docs to GitHub pages
41+
runs-on: ubuntu-latest
42+
needs: build-docs
43+
if: github.event_name == 'push' && github.ref_name == 'main'
44+
steps:
45+
- uses: actions/checkout@v3
46+
- uses: actions/download-artifact@v3
47+
with:
48+
name: docs
49+
50+
- name: Push to GitHub pages
51+
uses: JamesIves/github-pages-deploy-action@v4
52+
with:
53+
folder: html
54+
ssh-key: ${{ secrets.DEPLOY_KEY }}
55+
repository-name: dstansby/napari-matplotlib-docs

.github/workflows/napari_hub_preview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313

1414
steps:
1515
- name: Checkout repo
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v3
1717

1818
- name: napari hub Preview Page Builder
19-
uses: chanzuckerberg/napari-hub-preview-action@v0.1.5
19+
uses: chanzuckerberg/napari-hub-preview-action@v0.1
2020
with:
2121
hub-ref: main

.github/workflows/test_and_deploy.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
name: ${{ matrix.platform }} py${{ matrix.python-version }}
1818
runs-on: ${{ matrix.platform }}
1919
strategy:
20+
fail-fast: false
2021
matrix:
2122
platform: [ubuntu-latest, macos-latest, windows-latest]
2223
python-version: ['3.8', '3.9', '3.10']
@@ -57,7 +58,13 @@ jobs:
5758
if: ${{ always() }}
5859

5960
- name: Coverage
60-
uses: codecov/codecov-action@v2
61+
uses: codecov/codecov-action@v3
62+
# Don't run coverage on merge queue CI to avoid duplicating reports
63+
# to codecov. See https://github.com/matplotlib/napari-matplotlib/issues/155
64+
if: github.event_name != 'merge_group'
65+
with:
66+
token: ${{ secrets.CODECOV_TOKEN }}
67+
fail_ci_if_error: true
6168

6269
deploy:
6370
# this will run when you have tagged a commit, starting with "v*"

.napari/DESCRIPTION.md

Lines changed: 0 additions & 92 deletions
This file was deleted.

.napari/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
labels:
2+
ontology: EDAM-BIOIMAGING:alpha06
3+
terms:
4+
- 2D Image
5+
- 3D Image
6+
- Plotting
7+
- Slice rendering
8+
- Scientific visualisation

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ repos:
77
- id: trailing-whitespace
88

99
- repo: https://github.com/asottile/setup-cfg-fmt
10-
rev: v2.2.0
10+
rev: v2.3.0
1111
hooks:
1212
- id: setup-cfg-fmt
1313

@@ -29,7 +29,7 @@ repos:
2929

3030
- repo: https://github.com/charliermarsh/ruff-pre-commit
3131
# Ruff version.
32-
rev: 'v0.0.270'
32+
rev: 'v0.0.272'
3333
hooks:
3434
- id: ruff
3535

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
include LICENSE
22
include README.md
3+
recursive-include * *.mplstyle
34

45
recursive-exclude * __pycache__
56
recursive-exclude * *.py[co]

docs/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Changes
2828
- ``NapariMPLWidget.update_layers()`` has been removed as it is intended to be
2929
private API. Use ``NapariMPLWidget.on_update_layers`` instead to implement
3030
funcitonality when layer selection is changed.
31+
- The slice widget now only plots x-ticks at integer locations.
3132

3233
Bug fixes
3334
~~~~~~~~~

docs/conf.py

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
}
5050

5151
numpydoc_show_class_members = False
52-
automodapi_inheritance_diagram = False
52+
automodapi_inheritance_diagram = True
53+
inheritance_graph_attrs = {"rankdir": "TR"}
5354

5455
intersphinx_mapping = {
5556
"python": ("https://docs.python.org/3/", None),
@@ -60,11 +61,14 @@
6061
}
6162

6263
nitpicky = True
63-
# Can't work out how to link this properley using intersphinx and the PyQT6 docs.
64+
# Can't work out how to link this properly using intersphinx and the PyQT6 docs.
6465
# TODO: fix at some point
6566
nitpick_ignore = [
66-
("py:class", "PyQt6.QtWidgets.QWidget"),
6767
("py:class", "PyQt5.QtWidgets.QWidget"),
68+
("py:class", "PyQt5.QtCore.QObject"),
69+
("py:class", "PyQt5.QtGui.QPaintDevice"),
70+
("py:class", "sip.simplewrapper"),
71+
("py:class", "sip.wrapper"),
6872
]
6973

7074
# Add any paths that contain templates here, relative to this directory.
@@ -88,3 +92,17 @@
8892
# relative to this directory. They are copied after the builtin static files,
8993
# so a file named "default.css" will overwrite the builtin "default.css".
9094
# html_static_path = ['_static']
95+
96+
html_theme_options = {
97+
"icon_links": [
98+
{
99+
"name": "GitHub",
100+
"url": "https://github.com/matplotlib/napari-matplotlib",
101+
"icon": "fa-brands fa-square-github",
102+
"type": "fontawesome",
103+
}
104+
],
105+
"logo": {
106+
"text": "napari-matplotlib",
107+
},
108+
}

docs/guide/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ Guide
44
.. toctree::
55
:maxdepth: 1
66

7+
user_guide
78
third_party

0 commit comments

Comments
 (0)