-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
118 lines (105 loc) · 2.38 KB
/
Copy pathpyproject.toml
File metadata and controls
118 lines (105 loc) · 2.38 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
[build-system]
requires = ["setuptools>=80"]
build-backend = "setuptools.build_meta"
[project]
name = "openai-document-analyzer"
version = "2.0.0"
description = "Analyze TXT, Markdown, and PDF documents with the OpenAI Responses API."
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
authors = [
{ name = "Danilo Díaz Tarascó" },
]
keywords = [
"document-analysis",
"openai",
"pdf",
"responses-api",
"text-analysis",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Text Processing",
]
dependencies = [
"openai>=2.48.0,<3",
"pypdf>=6.14.2,<7",
"python-dotenv>=1.2.2,<2",
]
[project.optional-dependencies]
dev = [
"build>=1.3.0,<2",
"pytest>=9.1.1,<10",
"pytest-cov>=7.0.0,<8",
"ruff>=0.16.0,<0.17",
]
[project.scripts]
openai-document-analyzer = "openai_document_analyzer.cli:entrypoint"
[project.urls]
Changelog = "https://github.com/ddtdanilo/OpenAI-Document-Analyzer/blob/main/CHANGELOG.md"
Documentation = "https://github.com/ddtdanilo/OpenAI-Document-Analyzer#readme"
Issues = "https://github.com/ddtdanilo/OpenAI-Document-Analyzer/issues"
Repository = "https://github.com/ddtdanilo/OpenAI-Document-Analyzer"
[tool.setuptools]
package-dir = { "" = "src" }
[tool.setuptools.packages.find]
where = ["src"]
[tool.pytest.ini_options]
addopts = [
"--strict-config",
"--strict-markers",
"--cov=openai_document_analyzer",
"--cov-report=term-missing",
"--cov-fail-under=95",
]
testpaths = ["tests"]
[tool.coverage.run]
branch = true
source = ["openai_document_analyzer"]
omit = ["src/openai_document_analyzer/__main__.py"]
[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
]
show_missing = true
[tool.ruff]
line-length = 100
src = ["src", "scripts", "tests"]
target-version = "py311"
[tool.ruff.lint]
select = [
"A",
"ARG",
"B",
"BLE",
"C4",
"E",
"F",
"I",
"N",
"PERF",
"PIE",
"PL",
"PTH",
"RUF",
"SIM",
"UP",
"W",
]
ignore = [
"PLR2004",
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["ARG001", "PLR2004"]
[tool.ruff.format]
docstring-code-format = true
quote-style = "double"