-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
73 lines (59 loc) · 1.38 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
[tool.poetry]
name = "postocr-3stages"
version = "0.1.0"
description = "Post-OCR correction in 3 stages."
authors = ["EPITA Research Lab <[email protected]>"]
license = "GPL"
readme = "README.md"
packages = [{ include = "postocr_3stages", from = "src" }]
include = [{ path = "tests", format = "sdist" }]
repository = "https://github.com/soduco/postocr-3stages"
# Requirements
[tool.poetry.dependencies]
python = ">=3.8,<3.11"
matplotlib = "^3.5.3"
numpy = "^1.22.4"
pandas = "^1.3.5"
torch = "^1.13.0"
tqdm = "^4.64.1"
cer = "^1.2.0"
datasets = "^2.10.1"
evaluate = "^0.4.0"
scikit-learn = "^1.0.2"
jiwer = "^2.5.1"
OpenNMT-py = "^3.0.4"
pybind11 = "^2.10.3"
sentencepiece = "^0.1.97"
transformers = "^4.26.1"
accelerate = ">=0.20.1"
[tool.poetry.group.test.dependencies]
pytest = "^7.1"
[tool.poetry.group.typing.dependencies]
mypy = ">=1.0"
[build-system]
requires = ["poetry-core>=1.5.0"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
files = "src, tests"
mypy_path = "src"
namespace_packages = true
explicit_package_bases = true
show_error_codes = true
strict = true
enable_error_code = [
"ignore-without-code",
"redundant-expr",
"truthy-bool",
]
exclude = [
"tests/fixtures",
"tests/utils/fixtures",
]
[tool.pytest.ini_options]
addopts = "-n auto"
testpaths = ["tests"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:"
]