-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathpyproject.toml
More file actions
169 lines (146 loc) · 4.16 KB
/
pyproject.toml
File metadata and controls
169 lines (146 loc) · 4.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
[build-system]
requires = ["setuptools", "setuptools_scm"]
build-backend = "setuptools.build_meta"
[project]
name = "napari-matplotlib"
description = "A plugin to use Matplotlib with napari"
readme = "README.md"
requires-python = ">=3.11"
license = { text = "BSD-3-Clause" }
authors = [{ name = "David Stansby", email = "d.stansby@ucl.ac.uk" }]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: napari",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Testing",
]
dependencies = ["matplotlib", "napari>=0.5", "numpy>=2", "tinycss2"]
dynamic = ["version"]
[project.urls]
"Bug Tracker" = "https://github.com/matplotlib/napari-matplotlib/issues"
Documentation = "https://napari-matplotlib.github.io"
"Source Code" = "https://github.com/matplotlib/napari-matplotlib"
"User Support" = "https://github.com/matplotlib/napari-matplotlib/issues"
[project.entry-points."napari.manifest"]
"napari-matplotlib" = "napari_matplotlib:napari.yaml"
[dependency-groups]
docs = [
"napari[all]",
"numpydoc",
"pydantic<2",
"pydata-sphinx-theme",
"sphinx",
"sphinx-automodapi",
"sphinx-gallery",
]
testing = [
"napari[pyqt6_experimental]>=0.5",
"numpy>=2.1",
"pooch",
"pyqt6",
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-mpl",
"pytest-qt",
"tox",
"pytest-xvfb; sys_platform == 'linux'",
]
dev = [
{ include-group = "testing" },
{ include-group = "docs" }
]
[tool.setuptools_scm]
write_to = "src/napari_matplotlib/_version.py"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-dir]
"" = "src"
[tool.setuptools.package-data]
"*" = ["*.yaml"]
[tool.pytest.ini_options]
filterwarnings = [
"error",
"ignore:(?s).*Pyarrow will become a required dependency of pandas",
# Coming from vispy
"ignore:distutils Version classes are deprecated:DeprecationWarning",
"ignore:`np.bool8` is a deprecated alias for `np.bool_`:DeprecationWarning",
# Coming from pydantic via napari
"ignore:Pickle, copy, and deepcopy support will be removed from itertools in Python 3.14.:DeprecationWarning",
]
qt_api = "pyqt6"
addopts = [
"--mpl",
"--mpl-baseline-relative",
"--strict-config",
"--strict-markers",
"-ra",
]
minversion = "7"
testpaths = ["src/napari_matplotlib/tests"]
log_cli_level = "INFO"
xfail_strict = true
[tool.black]
line-length = 79
[tool.isort]
profile = "black"
line_length = 79
[tool.ruff]
target-version = "py310"
fix = true
[tool.ruff.lint]
select = ["B", "I", "UP", "F", "E", "W", "D"]
ignore = [
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D200", # One-line docstring should fit on one line
"D205", # 1 blank line required between summary line and description
"D400", # First line should end with a period
"D401", # First line of docstring should be in imperative mood
]
[tool.ruff.lint.per-file-ignores]
"docs/*" = ["D"]
"examples/*" = ["D"]
"src/napari_matplotlib/tests/*" = ["D"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.mypy]
python_version = "3.12"
# Block below are checks that form part of mypy 'strict' mode
strict = true
disallow_subclassing_any = false # TODO: fix
warn_return_any = false # TODO: fix
ignore_missing_imports = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
[[tool.mypy.overrides]]
module = ["napari_matplotlib/tests/*"]
disallow_untyped_defs = false
[tool.tox]
requires = ["tox>=4.19"]
env_list = ["py311", "py312", "py313"]
isolate_build = true
[tool.tox.gh.python]
py311 = ["3.11"]
py312 = ["3.12"]
py313 = ["3.13"]
[tool.tox.env.test]
extras = ["testing"]
commands = [[
"python",
"-m",
"pytest",
"--mpl",
"--mpl-generate-summary=html",
"--mpl-results-path=./reports",
"-v",
"--color=yes",
"--cov=napari_matplotlib",
"--cov-report=xml",
]]