-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
93 lines (72 loc) · 2.16 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
[build-system]
requires = ["setuptools>=61.0.0", "wheel", "setuptools-ocrd"]
[project]
name = "ocrd_calamari"
authors = [
{name = "Mike Gerber", email = "[email protected]"},
{name = "Konstantin Baierer", email = "[email protected]"},
]
description = "Recognize text using Calamari OCR and the OCR-D framework"
readme = "README.md"
license.file = "LICENSE"
requires-python = ">=3.8"
keywords = ["ocr", "ocr-d", "calamari-ocr"]
dynamic = ["version", "dependencies", "optional-dependencies"]
# https://pypi.org/classifiers/
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Science/Research",
"Intended Audience :: Other Audience",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Text Processing",
]
[project.scripts]
ocrd-calamari-recognize = "ocrd_calamari.cli:ocrd_calamari_recognize"
fix-calamari1-model = "ocrd_calamari.fix_calamari1_model:fix_calamari1_model"
[project.urls]
Homepage = "https://github.com/OCR-D/ocrd_calamari"
Repository = "https://github.com/OCR-D/ocrd_calamari.git"
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
optional-dependencies.dev = {file = ["requirements-dev.txt"]}
[tool.setuptools.package-data]
"*" = ["*.json"]
[tool.setuptools.packages.find]
where = ["."]
include = ["ocrd_calamari"]
[tool.pytest.ini_options]
minversion = 6.0
addopts = "--strict-markers"
markers = [
"integration: integration tests",
]
[tool.mypy]
plugins = ["numpy.typing.mypy_plugin"]
ignore_missing_imports = true
strict = true
disallow_subclassing_any = false
# ❗ error: Class cannot subclass "Processor" (has type "Any")
disallow_any_generics = false
disallow_untyped_defs = false
disallow_untyped_calls = false
[tool.ruff.lint]
select = ["E", "F", "I"]
[tool.coverage.run]
branch = true
source = [
"ocrd_calamari"
]
[tool.coverage.report]
exclude_also = [
"if self\\.debug",
"pragma: no cover",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
ignore_errors = true
omit = [
"ocrd_calamari/cli.py"
]