-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
101 lines (88 loc) · 2.37 KB
/
Copy pathpyproject.toml
File metadata and controls
101 lines (88 loc) · 2.37 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
[build-system]
requires = [
"setuptools>=64",
"setuptools-scm>=8",
]
build-backend = "setuptools.build_meta"
[project]
name = "ducktools-classbuilder"
description = "Toolkit for creating class boilerplate generators"
authors = [
{ name = "David C Ellis" },
]
license = "MIT"
readme = "README.md"
requires-python = ">=3.12"
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Operating System :: OS Independent",
]
dynamic = ['version']
dependencies = [
"reannotate>=0.1.3 ; python_full_version >= '3.14'",
]
[project.urls]
"Homepage" = "https://github.com/davidcellis/ducktools-classbuilder"
[dependency-groups]
dev = [
{include-group = "test"},
{include-group = "type-check"},
]
test = [
"pytest>=9.1",
"pytest-cov>=7.1",
"coverage-simple-excludes>=1.1",
]
type-check = [
"mypy>=2.3; platform_python_implementation == 'CPython'",
"typing-extensions>=4.16",
]
performance = [
"attrs>=26.0",
"pydantic>=2.13; python_full_version < '3.15'", # Don't bother building pydantic on unsupported python
"msgspec>=0.21",
]
docs = [
"sphinx>=9.1",
"myst-parser>=5.1",
"sphinx_rtd_theme>=3.1",
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools_scm]
version_file = "src/ducktools/classbuilder/_version.py"
version_file_template = """
__version__ = "{version}"
__version_tuple__ = {version_tuple}
"""
[tool.pytest.ini_options]
addopts = "--cov=src/ --cov-report=term-missing"
testpaths = [
"tests",
]
[tool.coverage.run]
plugins = ["coverage_simple_excludes"]
omit = ["_cached_methods.py"]
[tool.coverage.report]
fail_under = 90
exclude_also = [
"def __repr__",
]
[tool.mypy]
# A combination of types in stubs and tests using dataclass syntax
# means that there are a number of annotations in otherwise unannotated areas
disable_error_code = ["annotation-unchecked"]
[tool.uv]
exclude-newer = "1 week"
exclude-newer-package = { reannotate = "1 hour" }
[tool.ruff]
extend-exclude = ["src/ducktools/classbuilder/_cached_methods.py"]
[tool.ruff.lint]
ignore = ["BLE001", "I001", "PLC0414", "RUF023", "S102"]
[tool.ruff.lint.extend-per-file-ignores]
"*.pyi" = ["PYI042"]
"src/ducktools/classbuilder/constants.py" = ["RUF012"] # Non-annotated dict