-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
143 lines (120 loc) · 3.2 KB
/
pyproject.toml
File metadata and controls
143 lines (120 loc) · 3.2 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "dartfx-unf"
dynamic = ["version"]
description = ''
readme = "README.md"
requires-python = ">=3.12"
license = "MIT"
keywords = []
authors = [{ name = "kulnor", email = "pascal@codata.org" }]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = [
"jsonschema>=4.26.0",
"pandas>=2.0.0",
"polars>=1.0.0",
"pyarrow>=15.0.0",
"pyreadstat>=1.2.0",
"tzdata; sys_platform == 'win32'",
]
[project.scripts]
dartfx-unf = "dartfx.unf.cli:main"
[project.urls]
Documentation = "https://github.com/DataArtifex/dartfx-unf#readme"
Issues = "https://github.com/DataArtifex/dartfx-unf/issues"
Source = "https://github.com/DataArtifex/dartfx-unf"
[tool.hatch.build.targets.sdist]
exclude = ["/.github", "/docs"]
[tool.hatch.build.targets.wheel]
packages = ["src/dartfx"]
[tool.hatch.version]
path = "src/dartfx/unf/__about__.py"
[dependency-groups]
dev = [
"coverage[toml]>=6.5",
"pytest>=9",
"mypy>=1.0.0",
"python-dotenv>=1.0.0",
"ruff>=0.3.0",
"psutil>=7.2.2",
"pre-commit>=4.5.1",
"types-jsonschema>=4.17.0",
"pandas-stubs",
]
docs = [
"sphinx>=7.0.0",
"sphinx-rtd-theme>=1.2.0",
"myst-parser>=1.0.0",
"sphinx-copybutton>=0.5.0",
]
[tool.hatch.envs.default]
dependencies = ["dev"]
[tool.hatch.envs.default.scripts]
test = "pytest {args:tests}"
test-cov = "coverage run -m pytest {args:tests}"
cov-report = ["- coverage combine", "coverage report"]
cov = ["test-cov", "cov-report"]
[[tool.hatch.envs.all.matrix]]
python = ["3.12", "3.13"]
[tool.hatch.envs.types]
dependencies = ["dev"]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:src/dartfx/unf tests}"
[tool.hatch.envs.docs]
dependencies = ["docs"]
[tool.hatch.envs.docs.scripts]
build = "sphinx-build -b html docs/source docs/build/html"
serve = "python -m http.server -d docs/build/html"
[tool.coverage.run]
source_pkgs = ["dartfx.unf", "tests"]
branch = true
parallel = true
omit = ["src/dartfx/unf/__about__.py"]
[tool.coverage.paths]
source = ["src/dartfx/unf", "*/dartfx-unf/src/dartfx/unf"]
tests = ["tests", "*/dartfx/dartfx-unf/tests"]
[tool.coverage.report]
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]
[tool.ruff]
line-length = 88
target-version = "py312"
src = ["src"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"PT", # flake8-pytest-style
]
ignore = []
[tool.ruff.lint.isort]
known-first-party = ["dartfx"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.mypy]
files = ["src", "tests"]
mypy_path = "src"
namespace_packages = true
explicit_package_bases = true
show_error_codes = true
warn_unreachable = true
strict = true
[[tool.mypy.overrides]]
module = ["pyreadstat", "pyarrow.*"]
ignore_missing_imports = true