-
Notifications
You must be signed in to change notification settings - Fork 17
/
pyproject.toml
122 lines (107 loc) · 2.97 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
[build-system]
requires = [ "poetry-core>=1.9.1",]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "django-logpipe"
version = "1.4.6"
description = "Move data around between Python services using Kafka and/or AWS Kinesis and Django Rest Framework serializers."
authors = ["thelab <[email protected]>"]
readme = "README.md"
homepage = "https://gitlab.com/thelabnyc/django-logpipe"
repository = "https://gitlab.com/thelabnyc/django-logpipe"
license = "ISC"
[[tool.poetry.packages]]
include = "logpipe"
from = "src"
[tool.poetry.dependencies]
python = "^3.11"
Django = ">=4.2"
djangorestframework = ">=3.15.2"
lru-dict = ">=1.3.0"
pydantic = "^2.10.2"
kafka-python = {version = "*", optional = true}
boto3 = {version = "^1.35.71", optional = true}
boto3-stubs = {version = "^1.35.71", extras = ["kinesis"], optional = true}
botocore-stubs = {version = "^1.35.71", optional = true}
msgpack = {version = "^1.1.0", optional = true}
[tool.poetry.extras]
kafka = ["kafka-python"]
kinesis = ["boto3", "boto3-stubs", "botocore-stubs"]
msgpack = ["msgpack"]
[tool.poetry.group.dev.dependencies]
flake8 = "*"
moto = "^4.2.14"
boto3 = "*"
psycopg2-binary = "*"
tox = "*"
pytz = "*"
kafka-python = {git = "https://github.com/dpkp/kafka-python.git", rev = "master", optional = true}
django-stubs = {extras = ["compatible-mypy"], version = "^5.1.1"}
djangorestframework-stubs = "^3.15.1"
msgpack-types = "^0.5.0"
coverage = "^7.6.8"
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.6.1"
pymdown-extensions = "^10.11.2"
mkdocs-material = "^9.5.47"
mkautodoc = "^0.2.0"
[tool.mypy]
python_version = "3.11"
plugins = ["mypy_django_plugin.main", "mypy_drf_plugin.main"]
# Strict mode, see mypy --help
warn_unused_configs = true
disallow_subclassing_any = true
disallow_any_generics = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
# warn_return_any = true
no_implicit_reexport = true
show_error_codes = true
# Not turned on by strict
strict_equality = true
[[tool.mypy.overrides]]
module = "kafka.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "logpipe.tests.*"
ignore_errors = true
[tool.django-stubs]
django_settings_module = "sandbox.settings"
[tool.isort]
profile = "black"
from_first = true
[tool.coverage.run]
branch = true
source_pkgs = ["logpipe"]
omit = [
"*/migrations/*",
"*/snapshots/*",
"*/tests/*",
]
[tool.coverage.report]
show_missing = true
ignore_errors = true
[tool.commitizen]
name = "cz_conventional_commits"
annotated_tag = true
gpg_sign = true
tag_format = "v$version"
update_changelog_on_bump = true
changelog_merge_prerelease = true
version_provider = "poetry"
version_scheme = "pep440"
version_files = [
"pyproject.toml:version",
]
pre_bump_hooks = [
"pre-commit run --all-files || true",
]
post_bump_hooks = [
"git push origin master $CZ_POST_CURRENT_TAG_VERSION"
]