/
pyproject.toml
56 lines (48 loc) · 1.48 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
[tool.poetry]
name = "jg.plucker"
version = "0.0"
description = "Junior Guru scrapers"
authors = ["Honza Javorek <honza@junior.guru>"]
license = "MIT"
readme = "README.md"
homepage = "https://junior.guru/"
repository = "https://github.com/juniorguru/plucker/"
packages = [{ include = "jg" }]
[tool.poetry.scripts]
plucker = "jg.plucker.cli:main"
[tool.poetry.dependencies]
python = "3.11.*"
apify = {version = "1.7.1b2", extras = ["scrapy"], allow-prereleases = true}
apify-client = {version = "1.6.5b2", allow-prereleases = true}
apify-shared = {version = "1.1.2b3", allow-prereleases = true}
click = "8.1.7"
extruct = "0.16.0"
feedparser = "6.0.11"
nest-asyncio = "1.6.0"
scrapy = "2.11.1"
lxml = "5.1.0" # line can be removed if https://github.com/scrapinghub/extruct/issues/215 is resolved
scrapy-playwright = "0.0.34"
[tool.poetry.group.dev.dependencies]
pytest = "8.2.0"
pytest-ruff = "0.3.2"
ruff = "0.4.4"
cookiecutter = "2.6.0"
[tool.pytest.ini_options]
python_files = "test_*.py"
testpaths = "tests"
addopts = "--import-mode=importlib --ff --ruff --ruff-format"
filterwarnings = [
"ignore:'cgi' is deprecated:DeprecationWarning", # scrapy (twisted)
"ignore:invalid escape sequence:DeprecationWarning", # extruct
]
[tool.ruff]
target-version = "py311"
extend-exclude = ["scraper_template"]
[tool.ruff.lint]
extend-select = ["I"]
[tool.ruff.lint.isort]
combine-as-imports = true
lines-after-imports = 2
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"