-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
128 lines (113 loc) · 3 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
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "pylaia"
version = "1.1.2"
keywords = ["HTR OCR python"]
readme = "README.md"
authors = [
{name = "Joan Puigcerver", email = "[email protected]"},
]
maintainers = [
{name = "Teklia", email = "[email protected]"},
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.9",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Image Recognition",
"Topic :: Text Processing :: Linguistic",
]
requires-python = ">= 3.9, < 3.11"
dependencies = [
"imagesize==1.4.1",
"jsonargparse[signatures]==4.7",
"matplotlib==3.10.0",
"natsort==8.4.0",
"pytorch-lightning==2.5.0.post0",
"scipy==1.11.3",
"textdistance==4.6.3",
"torch==2.5.1",
"torchaudio>=0.13,<0.14",
"torchmetrics<0.8.0",
"torchvision>=0.14,<0.15",
"mdutils==1.6.0",
"prettytable==3.12.0",
"python-bidi==0.6.0"
]
license = {text = "MIT"}
[project.urls]
Homepage = "https://atr.pages.teklia.com/pylaia/"
Downloads = "https://gitlab.teklia.com/atr/pylaia"
Documentation = "https://atr.pages.teklia.com/pylaia/"
Source = "https://gitlab.teklia.com/atr/pylaia/"
Tracker = "https://gitlab.teklia.com/atr/pylaia/issues/"
[project.optional-dependencies]
dev = [
"pre-commit==4.0.1",
]
test = [
"tox==4.18.0",
]
docs = [
"black==24.8.0",
"mkdocs-autorefs==1.1.0",
"mkdocs-gen-files==0.5.0",
"mkdocs-literate-nav==0.6.1",
"mkdocs-material==9.5.49",
"mkdocs-section-index==0.3.9",
"mkdocstrings-python==1.10.8",
]
wandb = ["wandb==0.18.5"]
[project.scripts]
pylaia-htr-create-model = "laia.scripts.htr.create_model:main"
pylaia-htr-decode-ctc = "laia.scripts.htr.decode_ctc:main"
pylaia-htr-netout = "laia.scripts.htr.netout:main"
pylaia-htr-train-ctc = "laia.scripts.htr.train_ctc:main"
pylaia-htr-dataset-validate = "laia.scripts.htr.dataset.validate:main"
[tool.setuptools.packages.find]
exclude = ["tests"]
[tool.coverage.paths]
source = [
"laia/",
"tests/",
"*/site-packages/",
"*/lib/python*/site-packages/"
]
[tool.coverage.run]
branch = true
parallel = true
[tool.coverage.report]
show_missing = false
precision = 2
[tool.pytest.ini_options]
pythonpath = "."
[tool.ruff]
select = [
# pycodestyle
"E",
"W",
# Pyflakes
"F",
# Isort
"I",
# Invalid pyproject.toml
"RUF200",
]
# Avoid automatically removing unused imports in __init__.py files
ignore-init-module-imports = true
ignore = [
# ambiguous-variable-name
"E741",
# line too long
"E501",
]
[tool.ruff.per-file-ignores]
# unused imports in __init__.py files should either be stored in __all__ or re-exported with an alias
"*/__init__.py" = ["F401", "F403"]
# Wildcards imports are allowed here
"tests/version_test.py" = ["F405", "F403"]