-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
164 lines (148 loc) · 3.26 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
[build-system]
requires = [
"setuptools",
"setuptools_scm[toml]>=6.2",
"wheel"
]
[project]
name = "topofileformats"
dynamic = ["version"]
authors = [{ name = "Sylvia Whittle", email = "[email protected]" }]
description = "Read and retrieve data from various AFM file formats."
readme = "README.md"
requires-python = ">=3.8"
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.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]
keywords = [
"afm",
"image processing"
]
dependencies = [
"matplotlib",
"numpy",
"loguru",
]
[project.optional-dependencies]
dev = [
"black",
"pytest",
"pytest-cov",
"pylint",
"ruff"
]
[project.urls]
"Homepage" = "https://github.com/AFM-SPM/topofileformats"
"Bug Tracker" = "https://github.com/AFM-SPM/topofileformats/issues"
[tool.setuptools_scm]
write_to = "topofileformats/_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 = ['py38']
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 = ["topofileformats"]
omit = [
"topofileformats/_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 ",
]