-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
101 lines (85 loc) · 2.99 KB
/
Copy pathpyproject.toml
File metadata and controls
101 lines (85 loc) · 2.99 KB
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
[project]
name = "dokimi-assert"
version = "0.1.0"
description = "Test assertions defined by a language-neutral standard and held to it"
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
license-files = ["LICENSE"]
authors = [{ name = "ThesmOS B.V." }]
keywords = ["testing", "assertions", "test-framework", "conformance", "pytest"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Testing",
"Typing :: Typed",
]
dependencies = []
# Registering the plugin here is what makes the seat fixture appear
# without a conftest. Without it, every consumer writes the same
# fixture by hand.
[project.entry-points.pytest11]
dokimi_assert = "dokimi_assert.pytest_plugin"
[project.urls]
Homepage = "https://github.com/dokimasia/assert-python"
Source = "https://github.com/dokimasia/assert-python"
Standard = "https://github.com/dokimasia/assert-spec"
Issues = "https://github.com/dokimasia/assert-python/issues"
[project.optional-dependencies]
dev = [
"pytest>=8",
"pytest-cov>=5",
"ruff>=0.6",
"mypy>=1.11",
"basedpyright>=1.19",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/dokimi_assert"]
[tool.hatch.build.targets.sdist]
include = ["src", "tests", "README.md", "LICENSE", "pyproject.toml"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q"
[tool.ruff]
line-length = 88
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "SIM", "RUF", "D"]
ignore = ["D203", "D213"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.mypy]
strict = true
files = ["src", "tests"]
[tool.basedpyright]
venvPath = "."
venv = ".venv"
typeCheckingMode = "recommended"
# An assertion library takes values of any type: `got` and `want`
# genuinely are anything a caller holds. Reporting every one of them
# buries the diagnostics worth reading under two hundred that are not.
# mypy runs strict over the same tree and does catch Any leaking out of
# a function that declared something narrower.
reportAny = false
reportExplicitAny = false
# The same cause once narrowed: an `Any` checked with isinstance
# becomes `Mapping[Unknown, Unknown]`, which is as much as the type
# system can know about a value the caller chose.
reportUnknownArgumentType = false
reportUnknownVariableType = false
# The formatter produces adjacent string literals when it wraps a long
# message, so this fires on formatting rather than on anything a reader
# would change.
reportImplicitStringConcatenation = false
# Several assertions answer a value a caller may ignore: `raises` gives
# back what was raised, `error_as` the error it found. Discarding one
# is a use, not an oversight.
reportUnusedCallResult = false