forked from camelot-dev/camelot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
137 lines (120 loc) · 3.56 KB
/
pyproject.toml
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
[project]
name = "camelot"
version = "0.11.0"
description = "PDF Table Extraction for Humans."
authors = [
{name = "Vinayak Mehta", email = "[email protected]"},
]
license = {text = "MIT"}
readme = "README.md"
classifiers = [
"Development Status :: 5 - Production/Stable",
]
dependencies = [
"click>=8.0.1",
"chardet>=5.1.0",
"numpy>=1.24.4; python_version < '3.12'",
"numpy>=1.26.1; python_version >= '3.12'",
"openpyxl>=3.1.0",
"pdfminer-six>=20240706",
"pypdf>=3.17,<4.0; python_version < '3.12'",
"pypdf>=4.0,<6.0; python_version >= '3.12'",
"pandas>=1.5.3; python_version < '3.10'",
"pandas>=2.2.2; python_version >= '3.10'",
"tabulate>=0.9.0",
"typing-extensions>=4.12.2; python_version < '3.11'",
"opencv-python-headless>=4.7.0.68",
"pypdfium2>=4",
]
[project.urls]
Homepage = "https://github.com/camelot-dev/camelot"
Repository = "https://github.com/camelot-dev/camelot"
Documentation = "https://camelot-py.readthedocs.io/"
Changelog = "https://github.com/camelot-dev/camelot/releases"
[project.optional-dependencies]
plot = [
"matplotlib>=3.7.5; python_version < '3.12'",
"matplotlib>=3.8.0; python_version >= '3.12'",
]
ghostscript = [
"ghostscript>=0.7",
]
dev = [
"Pygments>=2.10.0",
"black>=23.1.0",
"coverage[toml]>=6.2",
"flake8>=4.0.1",
"flake8-bandit>=2.1.2",
"flake8-bugbear>=21.9.2",
"flake8-rst-docstrings>=0.2.5",
"sphinx-book-theme>=1.0.1",
"isort>=5.10.1",
"mypy>=0.930",
"pep8-naming>=0.12.1",
"pre-commit>=2.16.0",
"pre-commit-hooks>=4.1.0",
"pytest>=6.2.5",
"pytest-mpl>=0.17.0",
"pyupgrade>=2.29.1",
"safety>=2.2.3",
"sphinx>=4.3.2",
"sphinx-autobuild>=2021.3.14",
"sphinx-click>=3.0.2",
"sphinx-copybutton>=0.5.0",
"sphinx-prompt>=1.5.0",
"typeguard>=2.13.3",
"xdoctest[colors]>=0.15.10",
"myst-parser>=2.0.0",
"nox>=2024.10.9",
]
[project.scripts]
camelot = "camelot.__main__:main"
[tool.coverage.paths]
source = ["camelot", "*\\camelot", "*/site-packages"]
tests = ["tests", "*/tests"]
[tool.coverage.run]
branch = true
source = ["camelot", "tests"]
[tool.coverage.report]
show_missing = true
fail_under = 90
[tool.isort]
profile = "black"
force_single_line = true
lines_after_imports = 2
[tool.mypy]
warn_unreachable = true
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
ignore_missing_imports = true
# strict = true
# Strict is too agressive for now and not passing.
# should uncomment the settings below one by one and make them pass.
# Then strict can be enabled. (Values taken from mypy docs. section existing_code)
# Start off with these
warn_unused_configs = true
warn_redundant_casts = true
# warn_unused_ignores = true
# Getting these passing should be easy
strict_equality = true
# extra_checks = true
# Strongly recommend enabling this one as soon as you can
# check_untyped_defs = true
# These shouldn't be too much additional work, but may be tricky to
# get passing if you use a lot of untyped libraries
disallow_subclassing_any = true
disallow_untyped_decorators = true
disallow_any_generics = true
# These next few are various gradations of forcing use of type annotations
# disallow_untyped_calls = true
# disallow_incomplete_defs = true
# disallow_untyped_defs = true
# This one isn't too hard to get passing, but return on investment is lower
# no_implicit_reexport = true
# This one can be tricky to get passing if you use a lot of untyped libraries
# warn_return_any = true
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"