-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
195 lines (168 loc) · 4.27 KB
/
pyproject.toml
File metadata and controls
195 lines (168 loc) · 4.27 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
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
[build-system]
requires = ["setuptools>=61.0", "wheel", "setuptools-scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "pnanolocz"
description = "A Python library for AFM, HS-AFM, and Localization AFM data analysis. Based on NanoLocz"
authors = [
{ name = "George Heath", email = "G.R.Heath@leeds.ac.uk" },
{ name = "Daniel E. Rollins", email = "d.e.rollins@leeds.ac.uk" }
]
dynamic = ["version"]
readme = { file = "README.md", content-type = "text/markdown" }
license = { text = "GPL-3.0-or-later" }
requires-python = ">=3.11"
dependencies = [
"numpy",
"scipy",
"ruptures",
"sknw",
"scikit-image>=0.26,<0.27",
]
keywords = [
# Core domain
"AFM",
"atomic force microscopy",
"high-speed AFM",
"HS-AFM",
"scanning probe microscopy",
"SPM",
"nanoscopy",
"nanometrology",
"LAFM",
"Localization AFM",
"microscopy",
# Techniques and data
"image processing",
"video processing",
"image segmentation",
"image analysis",
# Scientific software context
"scientific visualization",
"data analysis",
"microscopy data",
"scientific computing",
"open science",
# Target users
"materials science",
"biophysics",
"nanotechnology",
"biomolecular imaging",
"surface analysis",
"nanolocz",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Image Processing",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-cov",
"pre-commit",
"isort",
"ruff",
"black",
"codespell>=2.3.0",
"mypy==1.11.1",
"nbstripout",
"setuptools_scm",
]
[project.urls]
Homepage = "https://github.com/derollins/Python-Nanolocz-Library"
Issues = "https://github.com/derollins/Python-Nanolocz-Library/issues"
Changelog = "https://github.com/derollins/Python-Nanolocz-Library/blob/main/CHANGELOG.md"
[project.entry-points."playnano.filters"]
pnanolocz_level = "pnanolocz.level:apply_level"
pnanolocz_level_auto = "pnanolocz.level_auto:apply_level_auto"
[tool.setuptools]
package-dir = { "" = "src" }
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools_scm]
write_to = "src/pnanolocz/_version.py"
[tool.black]
line-length = 88
target-version = ["py311"]
include = '\.pyi?$'
exclude = '''
(
^\.git
| ^\.hg
| ^\.mypy_cache
| ^\.tox
| ^\.venv
| ^_build
| ^buck-out
| ^build
| ^dist
| \.ipynb$
)
'''
[tool.isort]
profile = "black"
line_length = 88
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
combine_as_imports = true
known_first_party = ["pnanolocz"]
known_third_party = ["numpy","scipy","matplotlib","skimage","ruptures","sknw"]
[tool.ruff]
line-length = 88
target-version = "py311"
respect-gitignore = true
src = ["src"]
exclude = ["notebooks", "*.ipynb"]
[tool.ruff.lint]
select = ["E", "F", "I", "B", "C4", "D"]
ignore = ["D100", "D104", "D203", "D212", "D401"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.codespell]
skip = "*.egg-info,*.png,*.jpg,*.jpeg,*.gif,*.bmp,*.svg,*.ico,*.pdf,*.zip,*.gz,*.bz2,*.xz,*.7z,*.mp3,*.wav,*.mp4,*.mov,*.tif,*.tiff,*.ipynb,docs/_build/*,build/*,dist/*,*.html,*.css,*.js"
ignore-words-list = "tabel,crate"
check-filenames = false
check-hidden = false
[tool.mypy]
python_version = "3.11"
mypy_path = ["src"]
# Only check your library code; do not include tests here.
files = ["src"]
# Regular package (you created src/pnanolocz/__init__.py)
explicit_package_bases = false
namespace_packages = false
# Your existing strictness
strict = true
warn_unused_ignores = false
disallow_untyped_defs = true
exclude = '^tests/'
[[tool.mypy.overrides]]
module = [
"scipy.*",
"skimage.*",
"ruptures",
"sknw",
"numpy.*"
]
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = "--cov=pnanolocz --cov-report=term-missing --cov-append"
testpaths = ["tests"]
[tool.coverage.run]
branch = true
source = ["pnanolocz"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"raise NotImplementedError"
]