-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
95 lines (83 loc) · 1.86 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
[build-system]
build-backend = "poetry.core.masonry.api"
requires = [
"poetry-core",
]
[tool.poetry]
authors = [
"eggplants <[email protected]>",
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
]
description = "Make directory including pictures into a PDF book"
keywords = [
"getjump",
"pdf",
"conbine",
]
name = "mkbook"
packages = [
{ include = "mkbook" },
]
include = [ "mkbook/fonts/*.ttf" ]
license = "MIT"
readme = "README.md"
repository = "https://github.com/eggplants/mkbook"
version = "0.0.3"
[tool.poetry.dependencies]
python = ">=3.9,<4"
pillow = "^11.1.0"
reportlab = "^4.2.5"
types-reportlab = "^4.2.5.20241221"
types-pillow = "^10.2.0.20240822"
[tool.poetry.group.dev.dependencies]
mypy = ">=0.991,<1.15"
pre-commit = ">=2.20,<5.0"
taskipy = "^1.10.3"
[tool.poetry.scripts]
mkbook = "mkbook.main:main"
[tool.black]
line-length = 120
target-version = [
'py39',
]
[tool.ruff]
line-length = 120
lint.select = [
"ALL",
]
lint.ignore = [
"D",
"T201", # `print` found
]
lint.per-file-ignores."main.py" = [
"EM102", # Exception must not use an f-string literal, assign to variable first
"TRY003", # Avoid specifying long messages outside the exception class
]
lint.mccabe.max-complexity = 18
[tool.mypy]
pretty = true
python_version = "3.9"
show_error_codes = true
strict = true
[tool.pyright]
pythonVersion = "3.9"
typeCheckingMode = "strict"
[tool]
[tool.pytype]
python_version = '3.9'
jobs = '4'
report_errors = true
precise_return = true
protocols = true
strict_import = true
[tool.taskipy.tasks]
test = "pytest --cov=mkbook --cov-report=term"
"test:ci" = "task test --cov-report=xml:cov.xml"
lint = "pre-commit run -a"
profile = "python -m cProfile"