-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
246 lines (213 loc) · 6.46 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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "PyZEAL"
version = "1.0.0"
authors = [
{name = "Philipp Schuette", email = "[email protected]"}
]
description = "Python successor to the ZEAL package calculating zeros of holomorphic functions."
readme = "README.rst"
license = {file = "LICENSE"}
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
]
keywords = ["root-finding", "numerical-analysis", "holomorphic-functions"]
dependencies = [
"numpy>=1.21",
"cython",
"matplotlib",
"scipy>=1.9.1",
"rich>=12.2.0",
"typing-extensions",
]
[project.optional-dependencies]
docs = [
"sphinx",
"sphinx-material",
"nbsphinx",
"sphinxcontrib-bibtex",
"sphinx-autodoc-typehints",
"sphinx-copybutton",
]
dev = [
"mypy",
"mypy-extensions",
"hypothesis",
"pytest",
"pytest-cov",
"pytest-xdist",
"black",
"isort",
"docstr-coverage",
"pylama[toml]",
"pylint",
"check-jsonschema",
]
all = ["pyzeal[docs]", "pyzeal[dev]", ]
[project.urls]
homepage = "https://github.com/Spectral-Analysis-UPB/PyZEAL"
documentation = "https://github.com/Spectral-Analysis-UPB/PyZEAL"
[project.scripts]
pyzeal = "pyzeal.cli.__main__:PyZEALEntry.mainPyZEAL"
[tool.setuptools]
include-package-data = true
package-dir = {pyzeal = "pyzeal"}
[tool.black]
line-length = 79
target-version = ['py39']
[tool.isort]
profile = "black"
line_length = 79
[tool.pytest]
junit_family = "legacy"
filterwarnings = "ignore::DeprecationWarning"
[tool.pytest.ini_options]
addopts = "--import-mode=importlib --strict-markers -p no:logging -m 'not hypothesis and not locator'"
markers = [
"slow: mark tests as slow",
"locator: tests for the locator must be run separately"
]
[tool.coverage.run]
omit = ["pyzeal/tests/benchmarks/*.py"]
[tool.mypy]
python_version = "3.9"
explicit_package_bases = true
strict = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
show_error_codes = true
ignore_missing_imports = false
warn_unreachable = true
warn_redundant_casts = true
disable_error_code = ["type-abstract", "no-untyped-call", ]
[tool.pylama]
format = "pylint"
linters = "mccabe,pyflakes,pycodestyle"
[tool.pylama.linter.pycodestyle]
max-complexity = 11
ignore = "E203,W503"
count = true
[tool.pylama.linter.pydocstyle]
ignore = "D200,D203,D205,D212,D301,D400,D415"
[tool.pylint.main]
fail-under = 8.9
ignore = ["CVS"]
limit-inference-results = 100
persistent = true
py-version = "3.9"
suggestion-mode = true
[tool.pylint.basic]
argument-naming-style = "camelCase"
attr-naming-style = "camelCase"
bad-names = ["foo", "bar", "baz", "toto", "tutu", "tata"]
class-attribute-naming-style = "camelCase"
class-const-naming-style = "UPPER_CASE"
class-naming-style = "PascalCase"
const-naming-style = "UPPER_CASE"
docstring-min-length = -1
function-naming-style = "camelCase"
good-names = [
"i", "j", "k", "n", "s", "x", "y", "z", "x0", "x1", "x2", "y0", "y1", "y2",
"z0", "z1", "z2", "aZ", "bZ", "cZ", "dZ", "a", "a1", "a2", "b", "b1", "b2",
"c", "c1", "c2", "d", "d0", "r", "t", "u", "v", "m", "ud", "md", "td", "f",
"df", "p", "ex", "_"
]
good-names-rgxs = ["_.", "Time*", "t."]
inlinevar-naming-style = "any"
method-naming-style = "camelCase"
module-naming-style = "snake_case"
no-docstring-rgx = ["^_"]
property-classes = ["abc.abstractproperty"]
typealias-rgx = ["t."]
# typevar-rgx = ["T"]
variable-naming-style = "camelCase"
[tool.pylint.classes]
defining-attr-methods = ["__init__", "__new__", "setUp", "__post_init__"]
exclude-protected = ["_asdict", "_fields", "_replace", "_source", "_make"]
valid-classmethod-first-arg = ["cls"]
valid-metaclass-classmethod-first-arg = ["cls"]
[tool.pylint.design]
# exclude-too-few-public-methods = ["ToggleCollection"]
max-args = 8
max-attributes = 8
max-bool-expr = 5
max-branches = 12
max-locals = 18
max-parents = 7
max-public-methods = 12
max-returns = 6
max-statements = 50
min-public-methods = 1
[tool.pylint.exceptions]
overgeneral-exceptions = ["builtins.BaseException", "builtins.Exception"]
[tool.pylint.format]
# ignore-long-lines = "^\\s*(# )?<?https?://\\S+>?$"
indent-after-paren = 4
indent-string = " "
max-line-length = 79
max-module-lines = 800
[tool.pylint.imports]
known-third-party = ["enchant"]
[tool.pylint.logging]
logging-format-style = "old"
logging-modules = ["logging"]
[tool.pylint."messages control"]
confidence = ["HIGH", "CONTROL_FLOW", "INFERENCE", "INFERENCE_FAILURE", "UNDEFINED"]
disable = [
"raw-checker-failed", "bad-inline-option", "locally-disabled", "file-ignored",
"suppressed-message", "useless-suppression", "deprecated-pragma",
"use-symbolic-message-instead", "unnecessary-ellipsis", "global-statement",
"wrong-import-order"
]
enable = ["c-extension-no-member"]
[tool.pylint.method_args]
timeout-methods = [
"requests.api.delete", "requests.api.get", "requests.api.head",
"requests.api.options", "requests.api.patch", "requests.api.post",
"requests.api.put", "requests.api.request"
]
[tool.pylint.miscellaneous]
notes = ["FIXME", "XXX", "TODO"]
[tool.pylint.refactoring]
max-nested-blocks = 5
never-returning-functions = ["sys.exit", "argparse.parse_error"]
[tool.pylint.reports]
evaluation = "10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)"
score = true
[tool.pylint.similarities]
ignore-comments = true
ignore-docstrings = true
# ignore-imports =
# ignore-signatures =
min-similarity-lines = 10
[tool.pylint.spelling]
max-spelling-suggestions = 2
spelling-ignore-comment-directives = "fmt: on,fmt: off,noqa:,noqa,nosec,isort:skip,mypy:"
[tool.pylint.typecheck]
contextmanager-decorators = ["contextlib.contextmanager"]
generated-members = "Progress"
ignore-none = true
ignore-on-opaque-inference = true
ignored-checks-for-mixins = [
"no-member", "not-async-context-manager", "not-context-manager",
"attribute-defined-outside-init"
]
ignored-classes = ["optparse.Values", "thread._local", "_thread._local"]
missing-member-hint = true
missing-member-hint-distance = 1
missing-member-max-choices = 1
mixin-class-rgx = ".*[Mm]ixin"
[tool.pylint.variables]
allow-global-unused-variables = true
callbacks = ["cb_", "_cb"]
dummy-variables-rgx = "_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_"
ignored-argument-names = "_.*|^ignored_|^unused_"
redefining-builtins-modules = [
"six.moves", "past.builtins", "future.builtins", "builtins", "io"
]