-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
executable file
·128 lines (113 loc) · 2.75 KB
/
Copy pathpyproject.toml
File metadata and controls
executable file
·128 lines (113 loc) · 2.75 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
[build-system]
requires = ["setuptools>=80.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "tablecv"
version = "0.2.2"
description = "Extract table-shaped data from OCR text boxes."
readme = "README.md"
requires-python = ">=3.13,<4.0"
license = "MIT"
license-files = ["LICENSE"]
authors = [
{ name = "Vishal Kumar Mishra", email = "vishal.k.mishra2@gmail.com" },
]
keywords = [
"computer-vision",
"ocr",
"opencv",
"pandas",
"python",
"table-extraction",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Image Recognition",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"pandas>=2.2.0",
"shapely>=2.0.0",
]
[project.optional-dependencies]
paddle = [
"paddleocr>=3.0.0",
"paddlepaddle>=3.3.1",
]
[project.urls]
Homepage = "https://github.com/inquilabee/TableCV"
Repository = "https://github.com/inquilabee/TableCV"
Issues = "https://github.com/inquilabee/TableCV/issues"
Changelog = "https://github.com/inquilabee/TableCV/blob/main/CHANGELOG.md"
[dependency-groups]
dev = [
"bandit>=1.9.4",
"codespell>=2.4.2",
"mdformat>=0.7.22",
"mypy>=1.18.0",
"pre-commit>=4.6.0",
"pytest>=8.4.0",
"pytest-cov>=7.0.0",
"radon>=6.0.1",
"ruff>=0.11.13,<0.12.0",
]
[tool.setuptools.packages.find]
where = ["."]
include = ["tablecv*"]
exclude = ["tests*"]
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = ["tests"]
pythonpath = ["."]
python_files = ["test_*.py"]
addopts = [
"-m",
"not integration",
"--strict-config",
"--strict-markers",
]
filterwarnings = [
"error",
]
markers = [
"integration: tests that require OCR engines, model downloads, image fixtures, or external binaries",
]
[tool.mypy]
python_version = "3.13"
check_untyped_defs = true
ignore_missing_imports = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
[tool.ruff]
line-length = 120
target-version = "py313"
[tool.ruff.lint]
select = ["B", "C4", "C901", "E", "F", "I", "UP"]
ignore = [
"E501", # line length is enforced by formatter where practical
]
[tool.ruff.lint.isort]
known-first-party = ["tablecv"]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.bandit]
exclude_dirs = [".venv", "build", "dist", "tests"]
skips = [
"B101", # asserts document extraction invariants in tests
"B113", # retained for compatibility with tools that may inspect requests-like patterns
]
[tool.codespell]
skip = "*.lock,uv.lock,.venv,build,dist,notes"
[tool.coverage.run]
branch = true
source = ["tablecv"]
omit = ["tests/*"]
[tool.coverage.report]
fail_under = 70
precision = 1
show_missing = true