-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
144 lines (122 loc) · 3.21 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
[project]
name = "pydantic-to-pyarrow"
dynamic = ["version"]
description = "Conversion from pydantic models to pyarrow schemas"
authors = [
{name = "Simon Wicks", email = "simw@users.noreply.github.com"}
]
readme = "README.md"
repository = ""
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Operating System :: OS Independent",
"Environment :: Console",
"Environment :: MacOS X",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"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 :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
requires-python = ">=3.8"
dependencies = [
"pydantic>=2.0",
"pydantic>=2.8; python_version>='3.13'",
"pyarrow>=11.0",
"pyarrow>=18.0; python_version>='3.13'",
"numpy<1.25; python_version<'3.9'",
"numpy>1.25; python_version>='3.12'",
"typing-extensions>=4.6.1",
]
[dependency-groups]
lint = [
"black>=24.8.0",
"mypy>=1.13.0",
"ruff>=0.7.3",
]
test = [
"coverage>=7.6.1",
"packaging>=24.2",
"pytest>=8.3.3",
]
[project.urls]
Homepage = "https://github.com/simw/pydantic-to-pyarrow"
Repository = "https://github.com/simw/pydantic-to-pyarrow"
Issues = "https://github.com/simw/pydantic-to-pyarrow/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "src/pydantic_to_pyarrow/__init__.py"
[tool.uv]
default-groups = ["lint", "test"]
[tool.mypy]
strict = true
[tool.black]
color = true
line-length = 88
target-version = ["py38"]
[tool.ruff]
line-length = 88
indent-width = 4
target-version = "py38"
[tool.ruff.lint]
select = [
"F", # pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"C90", # Mccabe complexity
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"YTT", # flake8-2020
"ANN", # flake8-annotations
"ASYNC", # flake8-ASYNC
"S", # flake8-bandit
"BLE", # flake8-blind-except
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"PT", # flake8-pyteststyle
"PD", # pandas-vet
"PL", # pylint
"PERF", # perflint
]
ignore = []
[tool.ruff.lint.per-file-ignores]
"tests/**/**" = ["S"] # Don't run bandit on tests (eg flagging on assert)
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint.isort]
known-first-party = ["pydantic_to_pyarrow"]
[tool.pytest.ini_options]
testpaths = "tests"
xfail_strict = true
filterwarnings = [
"error"
]
[tool.coverage.run]
source = ["src/pydantic_to_pyarrow"]
branch = true
[tool.coverage.report]
precision = 2
show_missing = true
exclude_lines = [
'pragma: no cover',
'raise NotImplementedError',
'if TYPE_CHECKING:',
'@overload',
]
fail_under = 100