-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
161 lines (144 loc) · 3.67 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
[tool.poetry]
name = "fuckBookWalker"
version = "0.1.3"
description = "Download books from bookwalker.jp"
authors = ["VermiIIi0n <dungeon.behind0t@icloud.com>"]
readme = "README.md"
packages = [{ include = "bookphucker" }]
license = "MIT"
homepage = "https://github.com/VermiIIi0n/fuckBookWalker"
keywords = [
"utilities",
"bookwalker",
"automation",
"novel",
"webnovel",
"lightnovel",
"manga",
]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Pytest",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Topic :: Utilities",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Operating System :: OS Independent",
"Typing :: Typed",
]
[tool.poetry.dependencies]
python = "^3.12"
ujson = "^5.9.0"
pydantic = "^2.6.1"
pillow = "^10.2.0"
ebooklib = "^0.18"
selenium = "^4.18.1"
webdriver-manager = "^4.0.1"
beautifulsoup4 = "^4.12.3"
lxml = "^5.1.0"
types-ujson = "^5.9.0.0"
undetected-chromedriver = "^3.5.5"
setuptools = "^69.1.1"
platformdirs = "^4.2.0"
rich = "^13.7.1"
semantic-version = "^2.10.0"
requests = "^2.31.0"
[tool.poetry.extras]
[tool.poetry.group.dev.dependencies]
# coveralls = ">3.3.1"
# sphinx-autoapi = "^2.1.0"
# sphinx-autodoc-typehints = "^1.22"
# toml = "^0.10.2"
# pytest = "^8.0.0"
# pytest-asyncio = "^0.23.5"
# pytest-cov = "^4.1.0"
# coverage = { extras = ["toml"], version = "^7.4.1" }
mypy = "^1.8.0"
# types-toml = "^0.10.8.7"
autopep8 = "^2.0.4"
types-requests = "^2.31.0.20240406"
[tool.coverage.run]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError.*",
"return NotImplemented",
"warnings\\.warn.*",
"def main()",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"except ImportError",
"@overload",
"@abstractmethod",
]
include = ["bookfucker/*"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
addopts = "--verbose --cov-append --cov-report term --cov fuckbookwalker"
[tool.mypy]
enable_error_code = [
"type-var",
"call-overload",
"abstract",
"override",
"unused-awaitable",
"unused-coroutine",
"var-annotated",
"index",
"assignment",
"var-annotated",
"misc",
"redundant-cast",
"comparison-overlap",
"redundant-expr",
"truthy-bool",
]
disable_error_code = [
"type-arg",
"no-untyped-def",
"no-untyped-call",
"no-redef",
]
plugins = "pydantic.mypy"
ignore_missing_imports = true
no_implicit_optional = false
warn_redundant_casts = true
warn_unused_ignores = true
show_column_numbers = true
show_error_context = true
check_untyped_defs = true
warn_unreachable = false
show_error_codes = true
warn_return_any = false
warn_no_return = true
show_traceback = false
color_output = true
pretty = true
[tool.pydantic-mypy]
#init_forbid_extra = true
#init_typed = true
#warn_required_dynamic_aliases = true
warn_untyped_fields = true
[[tool.mypy.overrides]]
module = "tests.*"
ignore_errors = true
[tool.sphinx-autodoc]
# Display the docstring of modules, classes, and functions
# even if they don't have a docstring
# Possible values: True, False (default: False)
# Set to True to display the docstring even if it is empty
# or if the module/class/function doesn't have a docstring.
member-order = "bysource"
show-inheritance = true
undoc-members = true
[tool.poetry.urls]
"Issues" = "https://github.com/VermiIIi0n/fuckBookWalker/issues"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
bookbaker = "bookphucker.cli:run"