-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
207 lines (188 loc) · 4.91 KB
/
pyproject.toml
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
[build-system]
requires = [
"setuptools>=64",
"setuptools_scm>=8"
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
version_file = "src/napari_locan/_version.py"
version_scheme = "release-branch-semver"
[project]
name = "napari-locan"
description = "Use locan methods in napari for single-molecule localization microscopy data."
readme = "README.md"
requires-python = ">=3.9"
license = {file = "LICENSE.md"}
authors = [
{name = "napari-locan Developers"},
]
maintainers = [
{name = "Sören Doose"}
]
keywords = ["napari plugin", "locan"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: X11 Applications :: Qt",
"Framework :: napari",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Image Processing",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Visualization",
]
dynamic = ["version"]
dependencies = [
"locan>=0.18",
"matplotlib",
"napari",
"napari-matplotlib",
"numpy",
"qtpy",
]
[project.optional-dependencies]
test =[
"pytest",
"pytest-qt",
]
dev = [
"black",
"build",
"coverage[toml]",
"mypy",
"pre-commit",
"ruff",
"twine",
]
docs = [
"furo",
"ipython",
"myst-nb",
"napari>=0.4.17",
"sphinx",
"sphinx-autodoc-typehints",
"sphinx-copybutton",
]
[project.urls]
homepage = "https://github.com/super-resolution/napari-locan"
documentation = "https://napari-locan.readthedocs.io/"
issues = "https://github.com/super-resolution/napari-locan/issues"
discussions = "https://github.com/super-resolution/napari-locan/discussions"
changelog = "https://github.com/super-resolution/napari-locan/CHANGES.rst"
"Source Code" = "https://github.com/super-resolution/napari-locan"
"Bug Tracker" = "https://github.com/super-resolution/napari-locan/issues"
"User Support" = "https://github.com/super-resolution/napari-locan/discussions"
[project.entry-points."napari.manifest"]
napari-locan = "napari_locan:napari.yaml"
[tool.black]
line-length = 88
[tool.pytest.ini_options]
filterwarnings = [
]
addopts = "-m 'not napari'"
markers = [
"napari: marks tests that run napari (skipped by default)",
]
[tool.coverage.run]
source = ["src/napari_locan"]
omit = [
"src/napari_locan/_tests/*",
"src/napari_locan/scripts/*",
"src/napari_locan/napari.yaml",
]
[tool.ruff]
line-length = 88
show-source = false
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"Q", # flake8-quotes
"YTT", # flake8-2020
"S", # flake8-bandit
"UP", # pyupgrade
"BLE", # flake8-blind-exception
"A", # flake8-builtins
"C4", # flake8-comprehensions
"ISC", # flake8-implicit-str-concat
"G", # flake8-logging-format
"PIE", # flake8-pie
"SIM", # flake8-simplify
]
fixable = ["I"]
# Rules - https://github.com/charliermarsh/ruff#reference:
# E402 module-import-not-at-top-of-file
# E501 line-too-long
# F403 import-star-used
# F405 undefined-local-with-import-star-usage
# I001 unsorted-imports
# Q000 bad-quotes-inline-string
# S101 assert
# S307 suspicious-eval-usage
# S605 start-process-with-a-shell
# S607 start-process-with-partial-path
ignore = ["E501"]
# automatically exclude files that are ignored by .gitignore
exclude = [
".*",
"dist",
"docs",
"docker",
]
[tool.ruff.per-file-ignores]
"__init__.py" = ["E402", "F401", "F403", "F405", "I001"]
"_version.py" = ["Q000"]
"test_*.py" = ["S101", "S605", "S607"]
[tool.ruff.pydocstyle]
convention = "numpy"
[tool.ruff.flake8-quotes]
docstring-quotes = "double"
[tool.ruff.flake8-import-conventions]
[tool.ruff.flake8-import-conventions.aliases]
locan = "lc"
matplotlib = "mpl"
"matplotlib.pyplot" = "plt"
numpy = "np"
pandas = "pd"
scipy = "sp"
[tool.napari.manifest]
display_name = "napari-locan"
[tool.mypy]
plugins = ['numpy.typing.mypy_plugin']
files = ["src"]
strict = true
# warn-unused-ignores is not quite reproducible
warn_unused_ignores = false
[[tool.mypy.overrides]]
module = [
'locan.*',
'napari_matplotlib.*',
'napari.*',
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
'napari_locan.scripts.*',
]
ignore_errors = true
[[tool.mypy.overrides]]
module = [
'napari_locan._tests.*',
]
disallow_untyped_defs = false
disallow_incomplete_defs = false
check_untyped_defs = false
ignore_errors = true