82 lines
1.5 KiB
TOML
82 lines
1.5 KiB
TOML
# SPDX-License-Identifier: MIT
|
|
|
|
[build-system]
|
|
requires = ["setuptools>=40.6.0", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
|
|
[tool.pytest.ini_options]
|
|
addopts = ["-ra", "--strict-markers", "--strict-config"]
|
|
xfail_strict = true
|
|
testpaths = "tests"
|
|
filterwarnings = ["once::Warning", "ignore:::pympler[.*]"]
|
|
|
|
|
|
[tool.coverage.run]
|
|
parallel = true
|
|
branch = true
|
|
source_pkgs = ["attr", "attrs"]
|
|
|
|
[tool.coverage.paths]
|
|
source = ["src", ".tox/*/site-packages"]
|
|
|
|
[tool.coverage.report]
|
|
show_missing = true
|
|
skip_covered = true
|
|
exclude_lines = [
|
|
"pragma: no cover",
|
|
# PyPy is unacceptably slow under coverage.
|
|
"if PYPY:",
|
|
]
|
|
|
|
|
|
[tool.black]
|
|
line-length = 79
|
|
|
|
|
|
[tool.isort]
|
|
profile = "attrs"
|
|
|
|
|
|
[tool.interrogate]
|
|
verbose = 2
|
|
fail-under = 100
|
|
whitelist-regex = ["test_.*"]
|
|
|
|
|
|
[tool.check-wheel-contents]
|
|
toplevel = ["attr", "attrs"]
|
|
|
|
|
|
[tool.towncrier]
|
|
name = "attrs"
|
|
filename = "CHANGELOG.rst"
|
|
template = "changelog.d/towncrier_template.rst"
|
|
issue_format = "`#{issue} <https://github.com/python-attrs/attrs/issues/{issue}>`_"
|
|
directory = "changelog.d"
|
|
title_format = "{version} ({project_date})"
|
|
underlines = ["-", "^"]
|
|
|
|
[[tool.towncrier.section]]
|
|
path = ""
|
|
|
|
[[tool.towncrier.type]]
|
|
directory = "breaking"
|
|
name = "Backwards-incompatible Changes"
|
|
showcontent = true
|
|
|
|
[[tool.towncrier.type]]
|
|
directory = "deprecation"
|
|
name = "Deprecations"
|
|
showcontent = true
|
|
|
|
[[tool.towncrier.type]]
|
|
directory = "change"
|
|
name = "Changes"
|
|
showcontent = true
|
|
|
|
|
|
[tool.mypy]
|
|
disallow_untyped_defs = true
|
|
check_untyped_defs = true
|