2022-08-10 12:15:32 +00:00
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
2018-06-23 09:50:49 +00:00
|
|
|
[build-system]
|
2019-02-09 17:36:30 +00:00
|
|
|
requires = ["setuptools>=40.6.0", "wheel"]
|
|
|
|
build-backend = "setuptools.build_meta"
|
2018-06-23 09:50:49 +00:00
|
|
|
|
|
|
|
|
2022-08-10 12:15:32 +00:00
|
|
|
[tool.pytest.ini_options]
|
|
|
|
addopts = ["-ra", "--strict-markers", "--strict-config"]
|
|
|
|
xfail_strict = true
|
|
|
|
testpaths = "tests"
|
|
|
|
filterwarnings = ["once::Warning", "ignore:::pympler[.*]"]
|
|
|
|
|
|
|
|
|
2020-01-06 08:14:24 +00:00
|
|
|
[tool.coverage.run]
|
|
|
|
parallel = true
|
|
|
|
branch = true
|
2022-08-21 07:38:37 +00:00
|
|
|
source_pkgs = ["attr", "attrs"]
|
2020-01-06 08:14:24 +00:00
|
|
|
|
|
|
|
[tool.coverage.paths]
|
2022-12-19 11:03:21 +00:00
|
|
|
source = ["src", ".tox/py*/**/site-packages"]
|
2020-01-06 08:14:24 +00:00
|
|
|
|
|
|
|
[tool.coverage.report]
|
|
|
|
show_missing = true
|
2022-01-31 05:21:18 +00:00
|
|
|
skip_covered = true
|
2020-11-04 10:02:15 +00:00
|
|
|
exclude_lines = [
|
|
|
|
"pragma: no cover",
|
|
|
|
# PyPy is unacceptably slow under coverage.
|
|
|
|
"if PYPY:",
|
|
|
|
]
|
2020-01-06 08:14:24 +00:00
|
|
|
|
|
|
|
|
2018-06-10 17:40:07 +00:00
|
|
|
[tool.black]
|
|
|
|
line-length = 79
|
|
|
|
|
|
|
|
|
2022-08-10 12:15:32 +00:00
|
|
|
[tool.isort]
|
|
|
|
profile = "attrs"
|
|
|
|
|
|
|
|
|
2020-08-25 07:54:28 +00:00
|
|
|
[tool.interrogate]
|
|
|
|
verbose = 2
|
|
|
|
fail-under = 100
|
|
|
|
whitelist-regex = ["test_.*"]
|
|
|
|
|
|
|
|
|
2021-12-25 14:15:10 +00:00
|
|
|
[tool.check-wheel-contents]
|
|
|
|
toplevel = ["attr", "attrs"]
|
|
|
|
|
|
|
|
|
2017-08-20 05:58:08 +00:00
|
|
|
[tool.towncrier]
|
2022-08-10 12:15:32 +00:00
|
|
|
name = "attrs"
|
|
|
|
directory = "changelog.d"
|
2022-12-07 08:15:46 +00:00
|
|
|
filename = "CHANGELOG.md"
|
2022-12-21 08:10:43 +00:00
|
|
|
start_string = "<!-- towncrier release notes start -->\n"
|
2022-12-07 08:15:46 +00:00
|
|
|
template = "changelog.d/towncrier_template.md.jinja"
|
|
|
|
title_format = ""
|
|
|
|
issue_format = "[#{issue}](https://github.com/python-attrs/attrs/issues/{issue})"
|
|
|
|
underlines = ["", "", ""]
|
2022-08-10 12:15:32 +00:00
|
|
|
|
|
|
|
[[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
|
2022-07-28 05:55:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
[tool.mypy]
|
|
|
|
disallow_untyped_defs = true
|
|
|
|
check_untyped_defs = true
|