-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathpyproject.toml
64 lines (55 loc) · 1.24 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
[tool.poetry]
name = "dpsprep"
version = "2.2.13"
description = "A DjVu to PDF converter with a focus on small output size and the ability to preserve document outlines and text layers"
authors = ["Kevin Arthur Schiff Croker", "Ianis Vasilev"]
license = "GPL-3.0-or-later"
[tool.poetry.dependencies]
python = "^3.9"
click = "^8.1.8"
djvulibre-python = "^0.9.0"
fpdf2 = "^2.8.2"
loguru = "^0.7.2"
ocrmypdf = {version = "^15.4.4", optional = true}
pdfrw = "^0.4"
pillow = "^11.1.0"
[tool.poetry.group.dev.dependencies]
mypy = "^1.14.1"
pytest = "^7.4.4"
pytest-image-diff = "^0.0.14"
ruff = "^0.9.3"
types-fpdf2 = "^2.8.2.20241223"
types-pillow = "^10.2.0.20240822"
[tool.poetry.extras]
compress = ["ocrmypdf"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
target-version = "py39"
line-length = 120
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"A005",
"COM812",
"D1", "D203", "D213",
"E501",
"FA100",
"PLR2004",
"PTH123",
"Q000",
"S324"
]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
[tool.ruff.lint.per-file-ignores]
"test_*.py" = ["S101"]
[[tool.mypy.overrides]]
module = [
"djvu.*",
"ocrmypdf.*",
"pdfrw.*",
"pytest_image_diff.*"
]
ignore_missing_imports = true