-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
127 lines (120 loc) · 3.22 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["hoardy_web"]
[project]
name = "hoardy-web"
version = "0.23.0"
authors = [{ name = "Jan Malakhovski", email = "[email protected]" }]
description = "Inspect, search, organize, programmatically extract values and generate static website mirrors from, archive, view, and replay `HTTP` archives/dumps in `WRR` (\"Web Request+Response\", produced by the `Hoardy-Web` Web Extension browser add-on) and `mitmproxy` (`mitmdump`) file formats."
readme = "README.md"
license = { text = "GPL-3.0-or-later" }
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Intended Audience :: End Users/Desktop",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Indexing/Search",
"Topic :: System :: Archiving",
"Topic :: System :: Archiving :: Backup",
"Topic :: System :: Archiving :: Mirroring",
"Topic :: System :: Logging",
"Topic :: Internet :: Log Analysis",
"Operating System :: POSIX",
"Environment :: Console",
]
keywords = [
"HTTP", "HTTPS",
"WWW", "web", "browser",
"site", "website",
"download", "archive", "mirror",
"wayback", "wayback machine",
]
requires-python = ">=3.11"
dependencies = [
"kisstdlib==0.0.8",
"cbor2",
"idna",
"html5lib",
"tinycss2>=1.3.0",
"bottle",
]
[project.optional-dependencies]
mitmproxy = [
"mitmproxy>=5.0",
]
[project.scripts]
hoardy-web= "hoardy_web.__main__:main"
wrrarms = "hoardy_web.__main__:main"
[project.urls]
"Homepage" = "https://oxij.org/software/hoardy-web/"
"GitHub" = "https://github.com/Own-Data-Privateer/hoardy-web"
"Support Development" = "https://oxij.org/#support"
[tool.mypy]
python_version = "3.11"
strict = true
implicit_reexport = true
explicit_package_bases = true
files = [
"*.py",
"*/**/*.py"
]
[[tool.mypy.overrides]]
module = [
"setuptools",
"cbor2",
"cbor2.*",
"html5lib.*",
"tinycss2.*",
"bottle",
# optional
"mitmproxy",
"mitmproxy.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-s -ra -v"
testpaths = [
"hoardy_web/__main__.py"
]
[tool.black]
line-length = 100
[tool.pylint]
disable = [
# `mypy` checks these more precisely
"arguments-renamed",
"inconsistent-return-statements",
"no-member",
"possibly-used-before-assignment",
# `kisstdlib` uses this
"raising-format-tuple",
# annoying
"global-statement",
"import-outside-toplevel",
"invalid-name",
"line-too-long",
"too-few-public-methods",
"too-many-arguments",
"too-many-boolean-expressions",
"too-many-branches",
"too-many-instance-attributes",
"too-many-lines",
"too-many-locals",
"too-many-nested-blocks",
"too-many-positional-arguments",
"too-many-public-methods",
"too-many-return-statements",
"too-many-statements",
# enable eventually
"broad-exception-caught",
"fixme",
"missing-class-docstring",
"missing-function-docstring",
"unused-wildcard-import",
"wildcard-import",
]
[tool.pylint.format]
max-line-length = "100"