forked from python-attrs/cattrs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
166 lines (152 loc) · 3.92 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
159
160
161
162
163
164
165
166
[tool.black]
skip-magic-trailing-comma = true
[tool.pdm.dev-dependencies]
lint = [
"black>=24.2.0",
"ruff>=0.0.277",
]
test = [
"hypothesis>=6.79.4",
"pytest>=7.4.0",
"pytest-benchmark>=4.0.0",
"immutables>=0.20",
"typing-extensions>=4.7.1",
"coverage>=7.4.0",
"pytest-xdist>=3.4.0",
]
docs = [
"sphinx>=5.3.0",
"furo>=2024.1.29",
"sphinx-copybutton>=0.5.2",
"myst-parser>=1.0.0",
"pendulum>=2.1.2",
"sphinx-autobuild",
"typing-extensions>=4.8.0",
]
bench = [
"pyperf>=2.6.1",
]
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.mypy]
strict = true
[project]
name = "cattrs"
description = "Composable complex class support for attrs and dataclasses."
authors = [
{name = "Tin Tvrtkovic", email = "[email protected]"},
]
dependencies = [
"attrs>=23.1.0",
"typing-extensions>=4.1.0, !=4.6.3; python_version < '3.11'",
"exceptiongroup>=1.1.1; python_version < '3.11'",
]
requires-python = ">=3.8"
readme = "README.md"
license = {text = "MIT"}
keywords = ["attrs", "serialization", "dataclasses"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"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 :: PyPy",
"Typing :: Typed",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://catt.rs"
Changelog = "https://catt.rs/en/latest/history.html"
"Bug Tracker" = "https://github.com/python-attrs/cattrs/issues"
Repository = "https://github.com/python-attrs/cattrs"
Documentation = "https://catt.rs/en/stable/"
[project.optional-dependencies]
ujson = [
"ujson>=5.7.0",
]
orjson = [
"orjson>=3.9.2; implementation_name == \"cpython\"",
]
msgpack = [
"msgpack>=1.0.5",
]
pyyaml = [
"PyYAML>=6.0",
]
tomlkit = [
"tomlkit>=0.11.8",
]
cbor2 = [
"cbor2>=5.4.6",
]
bson = [
"pymongo>=4.4.0",
]
msgspec = [
"msgspec>=0.18.5; implementation_name == \"cpython\"",
]
[tool.pytest.ini_options]
addopts = "-l --benchmark-sort=fullname --benchmark-warmup=true --benchmark-warmup-iterations=5 --benchmark-group-by=fullname"
[tool.coverage.run]
parallel = true
source_pkgs = ["cattrs", "tests"]
[tool.coverage.report]
show_missing = true
skip_covered = true
skip_empty = true
exclude_also = [
"@overload",
"if TYPE_CHECKING:",
]
[tool.ruff]
src = ["src", "tests"]
select = [
"E", # pycodestyle
"W", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"N", # pep8-naming
"YTT", # flake8-2020
"S", # flake8-bandit
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"T10", # flake8-debugger
"T20", # flake8-print
"ISC", # flake8-implicit-str-concat
"RET", # flake8-return
"SIM", # flake8-simplify
"DTZ", # flake8-datetimez
"PGH", # pygrep-hooks
"PLC", # Pylint
"PIE", # flake8-pie
"RUF", # ruff
"I", # isort
]
ignore = [
"E501", # line length is handled by black
"RUF001", # leave my smart characters alone
"S101", # assert
"S307", # hands off my eval
"SIM300", # Yoda rocks in asserts
"PGH001", # No eval lol?
"PGH003", # leave my type: ignores alone
"B006", # mutable argument defaults
"DTZ001", # datetimes in tests
"DTZ006", # datetimes in tests
]
[tool.ruff.lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true
[tool.hatch.version]
source = "vcs"
raw-options = { local_scheme = "no-local-version" }
[tool.hatch.build.targets.wheel]
packages = ["src/cattr", "src/cattrs"]
[tool.check-wheel-contents]
toplevel = ["cattr", "cattrs"]