-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
73 lines (63 loc) · 1.71 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "story-indexer"
version = "0.0.1"
dependencies = [
"beautifulsoup4 ~= 4.12.2",
"boto3 ~= 1.28.44",
"docker ~= 7.1.0",
"elasticsearch ~= 8.12.0",
# lxml installed by some other package?
"mediacloud-metadata ~= 1.4.1",
"pika ~= 1.3.2",
"rabbitmq-admin ~= 0.2",
"statsd_client ~= 1.0.7",
"scrapy ~= 2.11.1",
"supervisor ~= 4.2.5",
"sentry-sdk ~=1.34.0",
"warcio ~= 1.7.4",
]
[project.optional-dependencies]
dev = [
"boto3-stubs[s3] ~= 1.34.13",
"jinja2-cli ~= 0.8.2",
"lxml-stubs ~= 0.5.1",
"mc-manage @ git+https://github.com/mediacloud/[email protected]",
"mypy ~= 1.5.1",
"pre-commit ~= 3.4.0",
"pyairtable ~= 2.3.3",
"pytest ~= 7.4.2",
"types-beautifulsoup4 ~= 4.12.0.20240106",
"types-pika ~= 1.2.0b1",
"types-requests ~=2.31.0.2",
]
[tool.isort]
profile = "black"
[tool.mypy]
# allow "mypy ."
exclude = ["bin/pre-commit-wrapper.py", "venv"]
# from https://blog.wolt.com/engineering/2021/09/30/professional-grade-mypy-configuration/
disallow_untyped_defs = true
disallow_any_unimported = true
no_implicit_optional = true
check_untyped_defs = true
warn_return_any = true
warn_unused_ignores = true
show_error_codes = true
# look for local stubs to PyPI packages in top level stubs directory
mypy_path = "stubs"
[tool.pip-tools]
allow-unsafe = true
quiet = true
resolver = "backtracking"
upgrade = true
# To enable Hash-Checking-Mode uncomment the following line
# generate-hashes = true
# https://setuptools.pypa.io/en/latest/userguide/package_discovery.html#custom-discovery
[tool.setuptools.packages.find]
where = ["."]
include = ["indexer*"]
exclude = ["indexer.tests*"]
namespaces = false