-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
98 lines (85 loc) · 2.81 KB
/
pyproject.toml
File metadata and controls
98 lines (85 loc) · 2.81 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
# https://python-poetry.org/docs/pyproject/#poetry-and-pep-517
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
# https://python-poetry.org/docs/pyproject/
[tool.poetry]
name = "spa-dat"
packages = [
{ include = "spa_dat" }
]
version = "0.4.0"
description = "This package provides a wrapper for the message based communication of distributed applications"
authors = [
"Dominik Falkner <dominik.falkner@risc-software.at>"
]
readme = "README.MD"
license = "MIT"
repository = "https://github.com/prescriptiveanalytics/spa-distributed-application-tools"
classifiers = [
"Programming Language :: Python :: 3",
]
# https://python-poetry.org/docs/dependency-specification/
[tool.poetry.dependencies]
python = "^3.11"
aiomqtt = "^1.0.0"
pydantic = "^2.0.3"
backoff = "^2.2.1"
aiokafka = "^0.8.1"
[tool.poetry.group.dev.dependencies]
# https://python-poetry.org/docs/master/managing-dependencies/
poethepoet = "^0.20.0"
black = { version = "^23.3.0", extras = ["jupyter"] }
ruff = "^0.0.272"
pytest = "^7.3.2"
pytest-clarity = "^1.0.1"
pytest-cov = "4.1.0"
pytest-xdist = "^3.3.1"
mkdocs = "^1.4.3"
mkdocs-material = "^9.1.15"
mkdocstrings = {extras = ["python"], version = "^0.22.0"}
commitizen = "^3.2.2"
isort = "^5.12.0"
[tool.poe.tasks]
# https://github.com/nat-n/poethepoet
_format = "black ."
_sort_imports = "isort ."
_lint = "ruff check --fix ."
_check_format = "black --check ."
_check_sort_imports = "isort --check ."
_check_lint = "ruff check ."
docs = "mkdocs serve"
precommit = ["_format", "_sort_imports", "_lint"]
check = ["_check_format", "_check_sort_imports", "_check_lint"]
test = "pytest"
# https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#configuration-via-a-file
[tool.black]
line-length = 120
# https://pycqa.github.io/isort/docs/configuration/config_files
[tool.isort]
profile = "black"
# https://docs.pytest.org/en/7.1.x/reference/customize.html
[tool.pytest.ini_options]
addopts = "--color=yes --doctest-modules -ra --cov --cov-report=html --cov-report term --exitfirst --failed-first --strict-config --strict-markers --verbosity=2 --junitxml=python-junit.xml"
xfail_strict = true
pythonpath = ["spa_distributed_application_tools"]
testpaths = ["spa_distributed_application_tools", "tests"]
# ignore any of these paths
norecursedirs = [ ]
# https://github.com/charliermarsh/ruff
[tool.ruff]
fix = true
ignore-init-module-imports = true
line-length = 120
src = ["spa_distributed_application_tools", "tests"]
[tool.ruff.pycodestyle]
max-doc-length = 120
[tool.ruff.pydocstyle]
convention = "google"
# https://commitizen-tools.github.io/commitizen/config/
[tool.commitizen]
bump_message = "bump(release): v$current_version → v$new_version"
tag_format = "v$version"
update_changelog_on_bump = true
version = "0.0.1"
version_files = ["pyproject.toml:version"]