-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
57 lines (47 loc) · 1.24 KB
/
Copy pathpyproject.toml
File metadata and controls
57 lines (47 loc) · 1.24 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "scrape-n-email"
version = "1.0.0"
description = "Lightweight Python scraper for RCP headlines + Atlanta Craigslist jobs. Emails daily digests."
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.10"
dependencies = [
"requests>=2.31.0,<3.0.0",
"beautifulsoup4>=4.12.0,<5.0.0",
"lxml>=4.9.0,<6.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-cov>=5.0",
"ruff>=0.6.0",
"mypy>=1.11",
"types-requests>=2.31",
"python-dotenv>=1.0",
]
[project.scripts]
scrape-n-email = "scrape_n_email.cli:main"
[tool.hatch.build.targets.wheel]
packages = ["src/scrape_n_email"]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP", "B", "C4", "SIM"]
[tool.ruff.lint.per-file-ignores]
"tests/unit/test_scrapers.py" = ["E501", "N812"]
[tool.mypy]
python_version = "3.10"
strict = true
warn_return_any = true
show_error_codes = true
[[tool.mypy.overrides]]
module = ["bs4", "bs4.*", "requests", "requests.*", "urllib3", "urllib3.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
addopts = "-v --tb=short"