-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
55 lines (41 loc) · 2.06 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
# ======================================================================================
# 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.isort] # ------------------------------------------------------------------------
# See <https://pycqa.github.io/isort/docs/configuration/profiles.html#black>
profile = "black"
# See <https://pycqa.github.io/isort/docs/configuration/options.html#skip-gitignore>
skip_gitignore = true
[tool.mypy] # -------------------------------------------------------------------------
check_untyped_defs = true
# See <https://mypy.readthedocs.io/en/stable/config_file.html#confval-exclude>
exclude = "(?x)( (^|/)build/ )"
ignore_missing_imports = true
strict_optional = true
show_error_codes = true
warn_redundant_casts = true
warn_unused_configs = 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",
]
[tool.versioningit.next-version] # ----------------------------------------------------
method = "smallest-release"
[tool.versioningit.vcs] # -------------------------------------------------------------
default-tag = "0.0.0"
[tool.versioningit.write] # -----------------------------------------------------------
file = "dyce/_version.py"
template = '''__vers_str__ = "{version}"
__version__ = {version_tuple}
'''