-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
82 lines (75 loc) · 1.99 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
[tool.poetry]
name = "udata-hydra"
version = "2.1.1.dev"
description = "Async crawler and parsing service for data.gouv.fr"
authors = ["Opendata Team <[email protected]>"]
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
aiocontextvars = "^0.2.2"
aiohttp = "^3.10.3"
asyncpg = "^0.29.0"
coloredlogs = "^15.0.1"
csv-detective = "0.7.3"
dateparser = "^1.1.7"
humanfriendly = "^10.0"
marshmallow = "^3.14.1"
minicli = "^0.5.3"
minio = "7.2.7"
pyarrow = "16.1.0"
python-dateutil = "^2.8.2"
python-magic = "^0.4.25"
python-slugify = "^8.0.4"
progressist = "^0.1.0"
redis = "^4.1.4"
rq = "^1.11.1"
sentry-sdk = "^2.10.0"
sqlalchemy = "^1.4.46"
str2float = "^0.0.9"
str2bool = "^1.1"
[tool.poetry.group.dev.dependencies]
aiohttp-devtools = "^1.0.post0"
aioresponses = "^0.7.3"
bumpx = "^0.3.10"
gunicorn = "^20.1.0"
mypy = "^1.11.0"
nest_asyncio = "^1.5.5"
pytest = "^8.3.0"
pytest-asyncio = "^0.18.3"
pytest-cov = "^5.0.0"
pytest-mock = "^3.7.0"
ruff = "^0.5.2"
[tool.mypy]
[[tool.mypy.overrides]]
module = [
"asyncpg.*",
"boto3.*",
"botocore.*",
"csv_detective.*",
"humanfriendly.*",
"minicli.*",
"sqlalchemy.*",
"str2bool.*",
"str2float.*",
"toml.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"catalog_harvested: use catalog_harvested.csv as source",
]
# addopts = "--cov=udata_hydra/ --cov-report term-missing --cov-fail-under=89" # if we want to fail if coverage is less than 89%
addopts = "--cov=udata_hydra/ --cov-report term-missing"
[tool.ruff]
lint = { extend-select = ["I"], ignore = ["F401"] } # ["I"] is to also sort imports with an isort rule # TODO: remove ignore F401 later
line-length = 100
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
udata-hydra = "udata_hydra.cli:run"
udata-hydra-crawl = "udata_hydra.crawl:run"
udata-hydra-app = "udata_hydra.app:run"