-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
88 lines (71 loc) · 1.99 KB
/
Copy pathpyproject.toml
File metadata and controls
88 lines (71 loc) · 1.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
[project]
name = "tigerbeetle-py"
version = "0.1.0"
description = "TigerBeetle Python Client"
authors = [{ name = "ljnsn", email = "info@ljnsn.com" }]
license = { file = "LICENSE" }
requires-python = "<4.0,>=3.10"
dependencies = ["cffi>=1.16.0"]
[tool.pdm.dev-dependencies]
dev = [
"commitizen>=3.27.0",
"cz-conventional-gitmoji>=0.3.2",
"ipdb>=0.13.13",
"ipython!=8.18.0",
"pre-commit>=3.7.1",
"ruff>=0.4.6",
]
test = ["pytest>=8.2.1", "coverage>=7.5.3", "pytest-cov>=5.0.0"]
[tool.pdm]
distribution = true
[tool.pdm.build]
package-dir = "src"
run-setuptools = true
source-includes = ["build.py"]
[tool.pdm.scripts]
lint = "pre-commit run --all-files"
test = { composite = ["coverage run", "coverage report", "coverage xml"] }
# test = { composite = ["pytest tests/unit", "pytest tests/integration"] }
[tool.commitizen]
name = "cz_gitmoji"
version_provider = "pep621"
tag_format = "v$version"
bump_message = "🔖 bump(release): v$current_version → v$new_version"
update_changelog_on_bump = true
[tool.coverage.run]
branch = true
command_line = "--module pytest"
data_file = "reports/.coverage"
source = ["src"]
[tool.coverage.report]
fail_under = 50
precision = 1
show_missing = true
skip_covered = true
[tool.coverage.xml]
output = "reports/coverage.xml"
[tool.ruff]
fix = true
target-version = "py310"
src = ["src"]
[tool.ruff.lint]
logger-objects = ["loguru"]
unfixable = ["ERA001", "F401", "F841"]
[tool.ruff.format]
line-ending = "lf"
indent-style = "space"
[tool.ruff.lint.isort]
known-first-party = ["tigerbeetle_py", "tests"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.pytest.ini_options]
addopts = """--color=yes --doctest-modules --exitfirst --failed-first \
--strict-markers --strict-config --verbosity=2 \
--junitxml=reports/pytest.xml"""
testpaths = ["src", "tests"]
markers = ["slow: mark test as slow"]
[build-system]
requires = ["pdm-backend", "setuptools", "cffi>=1.0.0"]
build-backend = "pdm.backend"