-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
57 lines (51 loc) · 1.53 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
[project]
name = "es-tools"
version = "1.0"
description='Media Cloud Elasticsearch tools'
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
]
dependencies = [
"elasticsearch"
]
[tool.isort]
profile = "black"
[tool.mypy]
# from rss-fetcher via story-indexer:
# originally 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
# from https://quantlane.com/blog/type-checking-large-codebase/
# in the order they appear:
disallow_untyped_calls = true
disallow_untyped_decorators = true
#disallow_any_generics = true
disallow_subclassing_any = true
warn_redundant_casts = true
warn_unused_configs = true
[project.optional-dependencies]
# additional dependencies required for development (outside of mypy)
# for pre-commit hook (and "make lint")
dev = [
"pre-commit"
]
# dependencies for pre-commit (for mypy):
# .pre-commit-config.yaml uses .pre-commit-run.sh
# to (re)install these in the pre-commit PRIVATE venv
# if this file has changed.
pre-commit = [
]
[project.urls]
"Homepage" = "https://mediacloud.org"
"Bug Tracker" = "https://github.com/mediacloud/es-tools/issues"
"Source Code" = "https://github.com/mediacloud/es-tools"