-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
198 lines (183 loc) · 5.46 KB
/
pyproject.toml
File metadata and controls
198 lines (183 loc) · 5.46 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
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "datason"
version = "2.0.0a1"
description = "Drop-in replacement for json.dumps/json.loads that handles datetime, NumPy, Pandas, PyTorch, and 50+ Python types. Zero dependencies."
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
keywords = [
"serialization",
"json",
"json-serialization",
"datetime-serialization",
"numpy-serialization",
"pandas-serialization",
"pytorch",
"tensorflow",
"scikit-learn",
"ml",
"ai",
"data-science",
"data-pipeline",
"type-handling",
"drop-in-replacement",
"round-trip",
"ai-agent",
"llm",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: System :: Archiving",
"Typing :: Typed",
]
dependencies = []
[[project.authors]]
name = "datason Contributors"
[[project.maintainers]]
name = "datason Maintainers"
email = "maintainers@datason.dev"
[project.optional-dependencies]
numpy = ["numpy>=1.21.0"]
pandas = ["pandas>=1.3.0"]
ml = [
"torch>=1.12.0",
"tensorflow>=2.16.1; python_version>='3.11'",
"scikit-learn>=1.1.0",
"scipy>=1.9.0",
]
ml-extra = [
"Pillow>=9.0.0",
"catboost>=1.2.0",
"optuna>=3.0.0",
"plotly>=5.0.0",
"polars>=0.20.0",
"jax[cpu]>=0.4.0",
"transformers>=4.20.0",
]
crypto = ["cryptography>=42.0.0"]
all = [
"datason[numpy]",
"datason[pandas]",
"datason[ml]",
"datason[crypto]",
]
[project.urls]
Homepage = "https://github.com/danielendler/datason"
Documentation = "https://danielendler.github.io/datason/"
Repository = "https://github.com/danielendler/datason"
"Bug Tracker" = "https://github.com/danielendler/datason/issues"
Discussions = "https://github.com/danielendler/datason/discussions"
# ==============================================================================
# Dependency groups (PEP 735) — installed by `uv sync` by default
# ==============================================================================
[dependency-groups]
dev = [
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
"pytest-xdist>=3.3.0",
"pytest-benchmark>=4.0.0",
"hypothesis>=6.82.0",
"syrupy>=4.0.0",
"pyright>=1.1.350",
"ruff>=0.9.0",
"twine>=4.0.2",
"build>=1.0.3",
"pre-commit>=3.5.0",
"pip-audit>=2.6.1",
]
docs = [
"mkdocs>=1.5.3",
"mkdocs-material>=9.4.0",
"mkdocstrings[python]>=0.23.0",
]
# ==============================================================================
# Ruff (linter + formatter)
# ==============================================================================
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = ["E", "W", "F", "I", "B", "C4", "UP", "SIM", "S"]
ignore = ["E501", "B008", "C901", "SIM105", "SIM117", "S101"]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S101", "E402"]
# ==============================================================================
# Pytest
# ==============================================================================
[tool.pytest.ini_options]
minversion = "7.0"
addopts = [
"-v",
"--strict-markers",
"--strict-config",
"--tb=short",
"-m", "not benchmark",
]
testpaths = ["tests/unit", "tests/integration"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
markers = [
"slow: marks tests as slow",
"benchmark: marks tests as benchmarks",
"integration: marks tests as integration tests",
"core: marks core functionality tests",
"numpy: marks tests requiring numpy",
"pandas: marks tests requiring pandas",
"ml: marks tests requiring ML libraries",
"optional: marks tests for optional dependency functionality",
]
filterwarnings = [
"error",
"default::UserWarning",
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
]
# ==============================================================================
# Coverage
# ==============================================================================
[tool.coverage.run]
source = ["datason"]
omit = ["*/tests/*", "*/test_*.py", "scripts/*"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
"TYPE_CHECKING",
]
show_missing = true
skip_covered = false
[tool.coverage.html]
directory = "htmlcov"
# ==============================================================================
# Hatch build
# ==============================================================================
[tool.hatch.build.targets.wheel]
packages = ["datason"]
[tool.hatch.build.targets.sdist]
exclude = [
"/.git", "/.github", "/.mypy_cache", "/.pytest_cache",
"/.ruff_cache", "/venv", "/htmlcov", "/.coverage",
"/coverage.xml", "/dist", "/build", "*.egg-info",
"__pycache__", "/tests", "/.pre-commit-config.yaml",
]