-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
120 lines (110 loc) · 2.55 KB
/
Copy pathpyproject.toml
File metadata and controls
120 lines (110 loc) · 2.55 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
[tool.poetry]
name = "invocr"
version = "1.0.16"
description = "Invoice OCR System - Convert invoices between PDF, JSON, XML, HTML formats using OCR"
authors = ["Tom Sapletta <info@softreck.dev>"]
license = "Apache"
readme = "README.md"
homepage = "https://github.com/fin-officer/invocr"
repository = "https://github.com/fin-officer/invocr"
documentation = "https://invocr.readthedocs.io"
packages = [{include = "invocr"}]
[tool.poetry.dependencies]
python = "^3.9"
fastapi = "^0.104.1"
uvicorn = {extras = ["standard"], version = "^0.24.0"}
pydantic = "^2.5.0"
click = "^8.1.7"
pillow = "^10.1.0"
pdf2image = "^1.16.3"
pytesseract = "^0.3.10"
easyocr = "^1.7.0"
opencv-python = "^4.8.1.78"
numpy = "^1.24.3"
pdfplumber = "^0.9.0"
weasyprint = "^60.2"
jinja2 = "^3.1.2"
lxml = "^4.9.3"
python-multipart = "^0.0.6"
aiofiles = "^23.2.1"
loguru = "^0.7.2"
pydantic-settings = "^2.1.0"
python-dateutil = "^2.9.0.post0"
rich = "^14.0.0"
invoice2data = "^0.4.5"
transformers = "^4.52.4"
pymupdf = "^1.26.1"
pypdf2 = "^3.0.1"
imgkit = "^1.2.3"
tox = "^4.27.0"
jsonschema = "^4.24.0"
# Nowe modularyzowane pakiety
invutil = {path = "../invutil", develop = true}
valider = {path = "../valider", develop = true}
dextra = {path = "../dextra", develop = true}
dotect = {path = "../dotect", develop = true}
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.3"
pytest-asyncio = "^0.21.1"
pytest-cov = "^4.1.0"
black = "^23.11.0"
isort = "^5.12.0"
flake8 = "^6.1.0"
mypy = "^1.7.1"
pre-commit = "^3.6.0"
httpx = "^0.25.2"
[tool.poetry.scripts]
invocr = "invocr.cli.cli:cli"
invocr-api = "invocr.api.main:run_api"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 88
target-version = ['py39']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 88
known_first_party = ["invocr"]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q --cov=invocr --cov-report=term-missing"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
ignore_missing_imports = true
[tool.coverage.run]
source = ["invocr"]
omit = [
"*/tests/*",
"*/test_*",
"*/conftest.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
]