/
pyproject.toml
158 lines (142 loc) · 3.78 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "PyHamcrest"
description = "Hamcrest framework for matcher objects"
readme = "README.rst"
requires-python = ">= 3.8"
license = { file = "LICENSE.txt" }
keywords = [
"hamcrest",
"matchers",
"pyunit",
"unit",
"test",
"testing",
"unittest",
"unittesting",
]
authors = [
{ name = "Chris Rose", email="offline@offby1.net" },
{ name = "Simon Brunning", email="simon@brunningonline.net" },
{ name = "Jon Reid" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: Jython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
]
dynamic = ["version"]
[project.optional-dependencies]
docs = ["sphinx~=5.0", "alabaster~=0.7"]
tests = [
"pytest>=5.0",
"pytest-sugar",
"pytest-xdist",
"coverage[toml]",
# No point on Pypy thanks to https://github.com/python/typed_ast/issues/111
"pytest-mypy-plugins; platform_python_implementation != 'PyPy'",
# Can't use 0.940: https://github.com/python/mypy/issues/12339
"mypy!=0.940; platform_python_implementation != 'PyPy'",
"types-mock",
"pyyaml",
]
tests-numpy = [
"PyHamcrest[tests]",
"numpy",
]
dev = [
"PyHamcrest[docs,tests]",
"towncrier",
"twine",
"pytest-mypy",
"flake8",
"black",
"tox",
"tox-asdf",
"doc2dash",
]
[project.urls]
History = "https://github.com/hamcrest/PyHamcrest/blob/main/CHANGELOG.rst"
Source = "https://github.com/hamcrest/PyHamcrest/"
Issues = "https://github.com/hamcrest/PyHamcrest/issues"
[tool.hatch.version]
source = "vcs"
raw-options = { local_scheme = "no-local-version" }
[tool.hatch.build.hooks.vcs]
version-file = "src/hamcrest/_version.py"
template = """\
# coding: utf-8
# file generated by setuptools_scm
# don't change, don't track in version control
version = {version!r} # pragma: no mutate
version_tuple = {version_tuple!r} # pragma: no mutate
"""
[tool.hatch.build.targets.sdist]
exclude = [
"/changelog.d/*.rst",
"/release.sh",
"/.github",
]
[tool.hatch.build.targets.wheel]
exclude = [
"/examples",
]
packages = [
"src/hamcrest",
]
[tool.coverage.run]
parallel = true
branch = true
source = ["hamcrest"]
[tool.coverage.paths]
source = ["src", ".tox/*/lib/*/site-packages"]
[tool.coverage.report]
show_missing = true
skip_covered = true
exclude_lines = [
# a more strict default pragma
"\\# pragma: no cover\\b",
# allow defensive code
"^\\s*raise AssertionError\\b",
"^\\s*raise NotImplementedError\\b",
"^\\s*return NotImplemented\\b",
"^\\s*raise$",
# typing-related code
"^if (False|TYPE_CHECKING):",
": \\.\\.\\.(\\s*#.*)?$",
"^ +\\.\\.\\.$",
"-> ['\"]?NoReturn['\"]?:",
]
[tool.black]
line_length = 100
[tool.interrogate]
verbose = 2
fail-under = 100
whitelist-regex = ["test_.*"]
[tool.isort]
profile = "hamcrests"
known_first_party = "hamcrest"
known_third_party = ["hypothesis", "pytest", "setuptools", "six"]
[tool.towncrier]
package = "hamcrest"
package_dir = "src"
filename = "CHANGELOG.rst"
directory = "changelog.d"
issue_format = "`#{issue} <https://github.com/hamcrest/PyHamcrest/issues/{issue}>`_"