-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
52 lines (40 loc) · 1.82 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
# ======================================================================================
# Copyright and other protections apply. Please see the accompanying LICENSE file for
# rights and restrictions governing use of this software. All rights not expressly
# waived or licensed are reserved. If that file is missing or appears to be modified
# from its original, then please contact the author before viewing or using this
# software in any capacity.
# ======================================================================================
[build-system] # ----------------------------------------------------------------------
requires = ["setuptools>=45", "versioningit~=2.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.versioningit.next-version] # ----------------------------------------------------
method = "smallest-release"
[tool.versioningit.vcs] # -------------------------------------------------------------
default-tag = "0.0.0"
[tool.versioningit.write] # -----------------------------------------------------------
file = "numerary/_version.py"
template = '''__vers_str__ = "{version}"
__version__ = {version_tuple}
'''
[tool.mypy] # -------------------------------------------------------------------------
check_untyped_defs = true
# See <https://mypy.readthedocs.io/en/stable/config_file.html#confval-exclude>
exclude = '''(?x)(
^build/
| /build/
)'''
ignore_missing_imports = true
strict_optional = true
show_error_codes = true
warn_redundant_casts = true
warn_unused_configs = true
# warn_unused_ignores = true
[tool.pytest.ini_options] # -----------------------------------------------------------
addopts = "--doctest-continue-on-failure --doctest-glob='*.md' --doctest-modules --pythonwarnings=ignore"
doctest_optionflags = [
"ELLIPSIS",
"IGNORE_EXCEPTION_DETAIL",
"NORMALIZE_WHITESPACE",
"NUMBER",
]