-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
95 lines (85 loc) · 2.74 KB
/
Copy pathpyproject.toml
File metadata and controls
95 lines (85 loc) · 2.74 KB
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]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "microwler"
version = "0.1.9"
description = "A micro-framework for asynchronous deep crawls and web scraping written in Python"
readme = "README.md"
license = { file = "LICENSE" }
authors = [{ name = "Maximilian Wolf", email = "maximilian.wolf@innovinati.com" }]
requires-python = ">=3.12"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Framework :: AsyncIO",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
]
dependencies = [
# aiohttp 3.9+ removes the deprecated loop= parameter from ClientSession
"aiohttp>=3.9",
"aiodns>=3.0",
"lxml>=5.0",
"parsel>=1.8",
"diskcache>=5.6",
"prettytable>=3.9",
"quart>=0.19",
"quart-cors>=0.7",
"click>=8.0",
"random-user-agent>=1.0",
"html-text>=0.5",
"completely>=0.1",
"chardet>=5.0",
]
[project.urls]
Homepage = "https://innovinati.github.io/microwler/"
Issues = "https://github.com/INNOVINATI/microwler/issues"
Source = "https://github.com/INNOVINATI/microwler/"
[project.scripts]
microwler = "microwler.cli.cmd:show_help"
new = "microwler.cli.cmd:add_project"
crawler = "microwler.cli.cmd:crawler"
serve = "microwler.cli.cmd:start_server"
[dependency-groups]
dev = [
"pytest>=8.0",
"prek>=0.3.5",
"ruff>=0.14.10",
"ty>=0.0.22",
"types-lxml>=2026.2.16",
"zensical>=0.0.7",
"hypercorn>=0.16",
]
[tool.hatch.build.targets.wheel]
packages = ["microwler"]
artifacts = ["microwler/py.typed"]
# ── Ruff ────────────────────────────────────────────────────────────────────
[tool.ruff]
target-version = "py312"
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade — enforces modern Python syntax
"B", # flake8-bugbear — catches common mistakes
"C4", # flake8-comprehensions
"RUF", # ruff-specific rules
]
ignore = [
"E501", # line too long — handled by formatter
]
[tool.ruff.lint.isort]
known-first-party = ["microwler"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
# ── pytest ───────────────────────────────────────────────────────────────────
[tool.pytest.ini_options]
testpaths = ["tests"]