-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathpyproject.toml
139 lines (120 loc) · 3.22 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
[tool.poetry]
name = "patito"
version = "0.8.4"
description = "A dataframe modelling library built on top of polars and pydantic."
authors = ["Jakob Gerhard Martinussen <[email protected]>", "Thomas Aarholt <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/JakobGM/patito"
repository = "https://github.com/JakobGM/patito"
documentation = "https://patito.readthedocs.io"
keywords = ["validation", "dataframe"]
[tool.poetry.dependencies]
python = ">=3.9"
pydantic = ">=2.7.0"
polars = ">=1.10.0"
# Required for typing.get_args backports in python3.9 and 3.10
typing-extensions = "*"
pandas = {version = "*", optional = true}
pyarrow = {version = ">=5.0.0", optional = true}
# Optional docs dependencies
Sphinx = {version = "<7", optional = true}
sphinx-rtd-theme = {version = "*", optional = true}
sphinx-autobuild = {version = "*", optional = true}
sphinx-autodoc-typehints = {version = "*", optional = true}
sphinx-toolbox = {version = "*", optional = true}
sphinxcontrib-mermaid = {version = "*", optional = true}
[tool.poetry.extras]
# The pyarrow.parquet module is required for writing parquet caches to disk
caching = ["pyarrow"]
pandas = ["pandas"]
docs = [
"Sphinx",
"sphinx-autobuild",
"sphinx-autodoc-typehints",
"sphinx-rtd-theme",
"sphinx-toolbox",
"sphinxcontrib-mermaid",
]
[tool.poetry.group.dev.dependencies]
ruff = ">=0.2.1"
pre-commit = "^3.8.0"
coverage = {version = "*", extras = ["toml"]}
pyright = ">=1.1.239"
pytest = ">=7.1.2"
pytest-cov = ">=3.0.0"
pytest-watcher = { version = ">=0.2.3", python = ">=3.9,<4.0" }
xdoctest = ">=1.0.0"
mypy = ">=0.950"
types-setuptools = ">=57.4.14"
pandas-stubs = ">=1.2.0"
codecov = "^2.1.12"
blackdoc = "*"
ipykernel = "^6.29.4"
[tool.poetry.group.docs.dependencies]
nox = "^2023.4.22"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
filterwarnings = [
# Convert warnings into test errors
"error",
"ignore:pygments is not installed*:UserWarning",
"ignore:unclosed running multiprocessing pool*:ResourceWarning",
]
[tool.coverage.paths]
source = ["src", "*/site-packages"]
[tool.coverage.run]
branch = true
source = ["patito"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"if not _PANDAS_AVAILABLE:",
"except ImportError:",
]
fail_under = 99.64
show_missing = true
[tool.pyright]
typeCheckingMode = "basic"
venvPath = "."
venv = ".venv"
pythonVersion = "3.9"
exclude = [
".venv",
"noxfile.py",
"**/node_modules",
"**/__pycache__",
"**/.*"
]
[tool.mypy]
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
no_implicit_optional = true
strict_optional = false
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
allow_redefinition = true
show_error_codes = true
exclude = [
"noxfile.py",
"**/node_modules",
"**/__pycache__",
"**/.*"
]
[[tool.mypy.overrides]]
module = ["tests.test_validators"]
warn_unused_ignores = false
[tool.ruff]
target-version = "py39"
extend-exclude= ["tests/__init__.py"]
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I", "B", "D", "UP"]
ignore = ["UP007"]
[tool.ruff.lint.pydocstyle]
convention = "google"