-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (70 loc) · 2.17 KB
/
pyproject.toml
File metadata and controls
80 lines (70 loc) · 2.17 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "gemini-ocr"
version = "0.5.0"
authors = [
{ name = "Tobias Sargeant", email = "tobias.sargeant@gmail.com" },
]
description = "Hybrid OCR with gemini and DocumentAI"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.11"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"google-genai",
"google-cloud-documentai",
"pymupdf",
"python-dotenv>=1.2.1",
"fsspec",
"gcsfs",
"anchorite==0.2.0",
]
[dependency-groups]
dev = [
"pytest",
"pytest-asyncio",
"ruff>=0.14.6",
]
[project.urls]
"Homepage" = "https://github.com/folded/gemini-ocr"
"Bug Tracker" = "https://github.com/folded/gemini-ocr/issues"
[tool.ruff]
line-length = 120
target-version = "py311"
indent-width = 4
[tool.ruff.lint]
select = ["A", "B", "C", "E", "F", "G", "I", "N", "Q", "S", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "ERA", "EXE", "ICN", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "UP", "YTT"]
ignore = [
"ANN101", # missing-type-self
"COM812", # conflicts with ruff format
"PD011", # pandas-use-of-dot-values (false positive)
]
fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "ERA", "EXE", "FBT", "ICN", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "UP", "YTT"]
[tool.ruff.lint.isort]
known-first-party = ["gemini-ocr"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101", # asserts.
"S102", # exec().
"PLR2004", # magic value comparisons.
"SLF001" # private method access.
]
"docs/*" = [
"A001"
]
"app.py" = [
"ALL" # Ignore all checks for app.py as it contains embedded HTML/JS/CSS in a string.
]
[tool.mypy]
python_version = "3.11"
[tool.cibuildwheel]
build = "cp311-* cp312-* cp313-*"