-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
108 lines (91 loc) · 2.46 KB
/
pyproject.toml
File metadata and controls
108 lines (91 loc) · 2.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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "smartextract"
dynamic = ["version"]
description = "smartextract Python SDK"
readme = "README.md"
requires-python = ">=3.9"
license = "MIT"
keywords = []
authors = [
{ name = "dida Datenschmiede GmbH", email = "info@dida.do" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"pydantic[email]>=2.0,<3",
"httpx>=0.25",
]
[project.optional-dependencies]
all = [
"smartextract[cli-extras,oauth]"
]
cli-extras = [
"pycomplete>=0.4",
"pygments>=2.0",
"pyyaml>=5.1",
]
oauth = [
"httpx-oauth>=0.16",
"platformdirs>=4.0",
]
[project.urls]
Documentation = "https://docs.smartextract.ai"
Issues = "https://github.com/dida-do/smartextract-sdk-python/issues"
Source = "https://github.com/dida-do/smartextract-sdk-python"
[project.scripts]
smartextract = "smartextract.__main__:main"
[tool.hatch.version]
path = "smartextract/__init__.py"
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.13", "3.12", "3.11", "3.10", "3.9"]
[tool.hatch.envs.types]
extra-dependencies = [
"mypy>=1.11.0",
"pycomplete>=0.4",
]
features = ["oauth"]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:smartextract}"
[tool.hatch.envs.coverage]
dependencies = ["coverage"]
[tool.hatch.envs.coverage.scripts]
xml = "coverage xml"
[tool.coverage.run]
source_pkgs = ["smartextract"]
branch = true
parallel = true
[tool.coverage.paths]
smartextract = ["smartextract", "*/smartextract/smartextract"]
tests = ["tests", "*/smartextract/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.ruff]
line-length = 88
extend-exclude = ["generate.py"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "D", "A", "N", "B", "SIM", "C4", "TID"]
ignore = [
"F401", # consider using `importlib.util.find_spec` to test for availability
"D107", # Missing docstring in `__init__`
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
# Ignore docstring duty for tests folder
"tests/**" = ["D"]