-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
190 lines (173 loc) · 3.73 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
[build-system]
requires = [
"setuptools>=45",
"setuptools_scm[toml]>=6.2",
"wheel"
]
build-backend = "setuptools.build_meta"
[project]
name = "AFMReader"
dynamic = ["version"]
authors = [
{ name = "Sylvia Whittle", email = "[email protected]" },
{ name = "Neil Shephard", email = "[email protected]" },
{name = "TopoStats Team", email = "[email protected]"}
]
description = "Read and retrieve data from various AFM file formats."
readme = "README.md"
requires-python = ">=3.9"
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
keywords = [
"afm",
"image processing"
]
dependencies = [
"matplotlib",
"igor2",
"tifffile",
"pySPM",
"loguru",
"h5py",
]
[project.optional-dependencies]
dev = [
"black",
"pre-commit",
"pylint",
"pytest-testmon",
"ruff",
"setuptools_scm[toml]",
"wheel"
]
pypi = [
"build",
"setuptools_scm[toml]",
"wheel",
]
tests = [
"pytest",
"pytest-cov",
]
[project.urls]
"Homepage" = "https://github.com/AFM-SPM/afmreader"
"Bug Tracker" = "https://github.com/AFM-SPM/afmreader/issues"
[tool.setuptools.packages.find]
where = ["."]
include = ["AFMReader"]
exclude = ["tests"]
namespaces = false
[tool.setuptools_scm]
write_to = "AFMReader/_version.py"
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "--cov"
testpaths = [
"tests",
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
"ignore::UserWarning"
]
[tool.black]
line-length = 120
target-version = ['py39']
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.venv
)/
)
'''
[tool.ruff]
exclude = [
"*.ipynb",
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pycache__",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"docs/conf.py",
"node_modules",
"pygwytracing.py",
"tests/tracing/test_dnacurvature.py",
"tests/tracing/test_dnatracing.py",
"tests/tracing/test_tracing_dna.py",
"topostats/plotting.py",
"topostats/tracing/dnatracing.py",
"topostats/tracing/tracing_dna.py",
"topostats/tracing/tracingfuncs.py",
"venv",
]
# per-file-ignores = []
line-length = 120
target-version = "py310"
lint.select = ["A", "B", "C", "D", "E", "F", "PT", "PTH", "R", "S", "W", "U"]
lint.ignore = [
"B905",
"E501",
"S101",
"T201"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
lint.fixable = ["A", "B", "C", "D", "E", "F", "PT", "PTH", "R", "S", "W", "U"]
lint.unfixable = []
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
[tool.ruff.lint.isort]
case-sensitive = true
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = true
[tool.coverage.run]
source = ["AFMReader"]
omit = [
"AFMReader/_version.py",
"*tests*",
"**/__init__*",
]
[tool.numpydoc_validation]
checks = [
"all", # Perform all check except those listed below
"ES01",
"EX01",
"PR10", # Conflicts with black formatting
"SA01",
]
exclude = [ # don't report on objects that match any of these regex
"\\.undocumented_method$",
"\\.__repr__$",
"^test_",
"^conftest",
]
override_SS05 = [ # override SS05 to allow docstrings starting with these words
"^Process ",
"^Assess ",
"^Access ",
]