-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
95 lines (83 loc) · 2.09 KB
/
Copy pathpyproject.toml
File metadata and controls
95 lines (83 loc) · 2.09 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 = "formharvester"
version = "2.4.2"
description = "AI-assisted form intelligence engine: search, scrape contacts, and submit forms"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">= 3.12"
dependencies = [
"beautifulsoup4",
"pydantic",
"requests",
"rich",
"selenium",
"tldextract",
"typer",
]
[project.optional-dependencies]
gui = [
"pywebview",
]
[dependency-groups]
dev = [
{ include-group = "lint" },
{ include-group = "test" },
{ include-group = "typecheck" },
]
lint = [
"ruff",
]
test = [
"coverage",
"pytest",
]
typecheck = [
"ty",
]
[project.scripts]
formharvester = "formharvester.cli:main"
[tool.hatch.build.targets.wheel]
packages = ["src/formharvester"]
[tool.ruff]
line-length = 120
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
]
# Legacy engine code moved verbatim in the 0.2.0 package reorg. Behaviour is
# preserved as-is (issue #7: no regressions); pre-existing style is grandfathered
# so the reorg stays a pure move. New modules (captcha/, api, core) stay strict.
[tool.ruff.lint.per-file-ignores]
"src/formharvester/engine/selenium_bot.py" = ["E722", "E721", "B007", "B008", "UP031"]
"src/formharvester/form_handler/forms.py" = ["E722", "E501", "B007"]
"src/formharvester/scraper/google.py" = ["E722", "B007"]
"src/formharvester/scraper/emails.py" = ["E722"]
"src/formharvester/cli/app.py" = ["E722", "UP031"]
"src/formharvester/cli/progress.py" = ["UP031", "B007"]
"src/formharvester/utils/links.py" = ["E501"]
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"smoke: live browser test against the smoke-target site (needs Chrome)",
]
[tool.coverage.run]
branch = true
parallel = true
source = ["src/formharvester"]
[tool.coverage.report]
show_missing = true
skip_covered = true
fail_under = 0
omit = ["tests/*"]
[tool.uv]
package = true
default-groups = ["dev"]