-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathpyproject.toml
More file actions
128 lines (108 loc) · 2.99 KB
/
pyproject.toml
File metadata and controls
128 lines (108 loc) · 2.99 KB
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
123
124
125
126
127
128
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "django-logpipe"
version = "1.5.1"
description = "Move data around between Python services using Kafka and/or AWS Kinesis and Django Rest Framework serializers."
readme = "README.md"
dependencies = [
"Django (>=5.2)",
"djangorestframework (>=3.16.1)",
"lru-dict (>=1.4.1)",
"pydantic (>=2.12.5,<3)",
"kafka-python (>=2.3.0,<3)",
"boto3 (>=1.42.62,<2)",
"msgpack (>=1.1.2,<2)",
]
requires-python = ">=3.11"
[project.license]
text = "ISC"
[[project.authors]]
name = "thelab"
email = "thelabdev@thelab.co"
[project.urls]
Homepage = "https://gitlab.com/thelabnyc/django-logpipe"
Repository = "https://gitlab.com/thelabnyc/django-logpipe"
[dependency-groups]
dev = [
"coverage==7.13.4",
"ruff (>=0.15.6)",
"moto (==5.1.22)",
"boto3 (>=1.42.62,<2)",
"boto3-stubs[kinesis] (>=1.42.62,<2)",
"botocore-stubs (>=1.42.41,<2)",
"psycopg2-binary (==2.9.11)",
"tox (>=4.49.1)",
"pytz (==2026.1.post1)",
"kafka-python (==2.3.0)",
"mypy (==1.19.1)",
"django-stubs (==5.2.9)",
"djangorestframework-stubs (==3.16.8)",
"msgpack-types (==0.7.0)",
"tox-uv (>=1.33.4)",
"mkdocs (>=1.6.1,<2)",
"pymdown-extensions (>=10.21,<11)",
"mkdocs-material (>=9.7.5,<10)",
"mkautodoc (>=0.2.0,<0.3)",
]
[tool.hatch.build.targets.wheel]
packages = ["logpipe"]
[[tool.uv.index]]
name = "thelabnyc"
url = "https://gitlab.com/api/v4/groups/269576/-/packages/pypi/simple"
explicit = true
[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.ruff]
line-length = 160
[tool.ruff.lint.isort]
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 = "pep621"
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"]