-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
97 lines (81 loc) · 2.67 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
[tool.poetry]
name = "zulip-write-only-proxy"
version = "0.0.0"
description = ""
authors = ["Robert Rosca"]
readme = "README.md"
packages = [{ include = "zulip_write_only_proxy", from = "src" }]
[tool.poetry.scripts]
damnit-zulip = "zulip_write_only_proxy.cli:app"
[tool.poetry.dependencies]
python = ">=3.11,<3.13"
fastapi = "^0.104"
uvicorn = "^0.23.1"
zulip = "^0.8.2"
python-multipart = "^0.0.6"
orjson = "^3.9.2"
pydantic = { extras = ["email"], version = "^2.6.1" }
pydantic-settings = "^2.4.0"
authlib = "^1.3.0"
itsdangerous = "^2.1.2"
structlog = "^24.1.0"
sentry-sdk = "^1.40.3"
[tool.poetry.group.test.dependencies]
pytest = "^7.4.0"
httpx = "^0.24.1"
pytest-cov = "^4.1.0"
pytest-asyncio = "^0.21.1"
vcrpy = "^6.0.1"
[tool.poetry.group.dev.dependencies]
poethepoet = "^0.21.1"
commitizen = "^3.6.0"
types-colorama = "^0.4.15.20240205"
rich = "^13.7.0"
debugpy = "^1.8.1"
vcrpy = "^6.0.1"
[tool.poetry.group.lint.dependencies]
ruff = "^0"
mypy = "^1"
pyright = "^1"
[tool.poe.tasks]
up = { shell = "python3 -m zulip_write_only_proxy.main", env = { UVICORN_LOOP = { default = "asyncio" } } }
staging = { ref = "up", env = { UVICORN_LOOP = "uvloop", ZWOP_LOG_LEVEL = { default = "debug" }, ZWOP_DEBUG = { default = "False" } } }
prod = { ref = "up", env = { UVICORN_LOOP = "uvloop", ZWOP_LOG_LEVEL = { default = "info" }, ZWOP_DEBUG = { default = "False" } } }
test = "python3 -m pytest --cov=zulip_write_only_proxy --cov-report=term-missing --cov-report xml --cov-branch"
mypy = "mypy ./src ./tests"
pyright = "pyright ./src ./tests"
lint = { sequence = [
{ cmd = "ruff check ./src ./tests" },
{ ref = "mypy" },
{ ref = "pyright" },
], ignore_fail = "return_non_zero" }
format = { sequence = [
{ cmd = "ruff check ./src ./tests --fix" },
{ cmd = "ruff format ./src ./tests" },
], ignore_fail = "return_non_zero" }
[tool.coverage.run]
# Exclude CLI from coverage as it is not really required anymore
omit = ["src/zulip_write_only_proxy/cli.py"]
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "v$version"
version_scheme = "pep440"
version_provider = "poetry"
update_changelog_on_bump = true
major_version_zero = true
[tool.poetry-dynamic-versioning]
enable = true
dirty = true
style = "semver"
[tool.poetry-dynamic-versioning.substitution]
folders = [{ path = "src" }]
[tool.poetry-dynamic-versioning.files."src/zulip_write_only_proxy/_version.py"]
persistent-substitution = true
initial-content = """
# These version placeholders will be replaced later during substitution.
__version__ = "0.0.0"
__version_tuple__ = (0, 0, 0)
"""
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"