Skip to content

Commit 24b3acc

Browse files
authored
Merge branch 'main' into fix-default-colorscheme
2 parents e9f4345 + 1a8c301 commit 24b3acc

File tree

5 files changed

+19
-17
lines changed

5 files changed

+19
-17
lines changed

.github/workflows/test_and_deploy.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflows will upload a Python Package using Twine when a release is created
2-
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3-
41
name: tests
52

63
on:
@@ -20,7 +17,7 @@ jobs:
2017
runs-on: ${{ matrix.platform }}
2118
strategy:
2219
matrix:
23-
platform: [ubuntu-latest]
20+
platform: [ubuntu-latest, macos-latest, windows-latest]
2421
python-version: ['3.8', '3.9', '3.10']
2522

2623
steps:

.pre-commit-config.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.2.0
3+
rev: v4.4.0
44
hooks:
55
- id: check-docstring-first
66
- id: end-of-file-fixer
77
- id: trailing-whitespace
88
- repo: https://github.com/asottile/setup-cfg-fmt
9-
rev: v1.20.1
9+
rev: v2.2.0
1010
hooks:
1111
- id: setup-cfg-fmt
1212
- repo: https://github.com/PyCQA/flake8
13-
rev: 4.0.1
13+
rev: 6.0.0
1414
hooks:
1515
- id: flake8
1616
additional_dependencies: [flake8-typing-imports>=1.9.0]
17-
- repo: https://github.com/myint/autoflake
18-
rev: v1.4
17+
- repo: https://github.com/PyCQA/autoflake
18+
rev: v2.1.1
1919
hooks:
2020
- id: autoflake
2121
args: ["--in-place", "--remove-all-unused-imports"]
2222
- repo: https://github.com/PyCQA/isort
23-
rev: 5.10.1
23+
rev: 5.12.0
2424
hooks:
2525
- id: isort
2626
- repo: https://github.com/psf/black
27-
rev: 22.3.0
27+
rev: 23.3.0
2828
hooks:
2929
- id: black
3030
- repo: https://github.com/asottile/pyupgrade
31-
rev: v2.32.0
31+
rev: v3.3.2
3232
hooks:
3333
- id: pyupgrade
3434
args: [--py38-plus, --keep-runtime-typing]
3535
- repo: https://github.com/tlambert03/napari-plugin-checks
36-
rev: v0.2.0
36+
rev: v0.3.0
3737
hooks:
3838
- id: napari-plugin-checks
3939
- repo: https://github.com/pre-commit/mirrors-mypy
40-
rev: v0.910-1
40+
rev: v1.2.0
4141
hooks:
4242
- id: mypy
4343
args: ["--disallow-incomplete-defs", "--ignore-missing-imports"]

pytest.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[pytest]
2+
filterwarnings =
3+
error
4+
5+
# Coming from vispy
6+
ignore:distutils Version classes are deprecated:DeprecationWarning

setup.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ classifiers =
1717
Programming Language :: Python
1818
Programming Language :: Python :: 3
1919
Programming Language :: Python :: 3 :: Only
20-
Programming Language :: Python :: 3.8
21-
Programming Language :: Python :: 3.9
22-
Programming Language :: Python :: 3.10
2320
Topic :: Software Development :: Testing
2421
project_urls =
2522
Bug Tracker = https://github.com/matplotlib/napari-matplotlib/issues

src/napari_matplotlib/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ def __init__(self, napari_viewer: napari.viewer.Viewer):
4848

4949
self.viewer = napari_viewer
5050
self.canvas = FigureCanvas()
51+
5152
self.canvas.figure.set_tight_layout(True)
5253
self.canvas.figure.patch.set_facecolor(NAPARI_WINDOW_COLOR)
54+
self.canvas.figure.set_layout_engine("constrained")
5355
self.toolbar = NapariNavigationToolbar(self.canvas, self)
5456
self._replace_toolbar_icons()
5557

0 commit comments

Comments
 (0)