-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (59 loc) · 1.63 KB
/
pyproject.toml
File metadata and controls
77 lines (59 loc) · 1.63 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
[tool.poetry]
name = "exist-client"
version = "0.4.0"
description = ""
authors = ["Ilya Nekhay <nekhayiv@gmail.com>"]
readme = "README.md"
packages = [{include = "exist_client", from = "src"}]
[tool.poetry.dependencies]
python = "^3.10"
attrs = "^23.1.0"
loguru = "*"
pytilz = "^0.1.0"
[tool.poetry.group.dev.dependencies]
# Code generation
openapi-python-client = "^0.16.1"
# Code management
pre-commit = "*"
commitizen = "*"
# Testing
pytest = "*"
pytest-cov = "*"
mypy = "*"
respx = "*"
flask = "^3.0.0"
flask-httpauth = "^4.8.0"
flask-httpauth-stubs = "^0.1.6"
syrupy = "^4.6.0"
[build-system]
requires = ["poetry-core", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.pytest.ini_options]
addopts = "--cov=src --cov-report html --cov-report xml --cov-config=.coveragerc"
pythonpath = ["src"]
testpaths = ["tests"]
[tool.isort]
profile = "black"
[tool.ruff]
select = ["F", "I"]
line-length = 120
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "v$version"
version_type = "pep440"
version_provider = "poetry"
update_changelog_on_bump = true
major_version_zero = true
[tool.poetry-dynamic-versioning]
enable = true
# TODO: extract version from `cz bump` so that when there's a MINOR/MAJOR change coming, the dev version corresponds
# to the next MINOR/MAJOR version
format-jinja = """
{%- if distance == 0 -%}
{{ serialize_pep440(base, stage, revision) }}
{%- elif revision is not none -%}
{{ serialize_pep440(base, stage, revision + 1, dev=distance) }}
{%- else -%}
{{ serialize_pep440(bump_version(base), stage, revision, dev=distance) }}
{%- endif -%}
"""