-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
94 lines (79 loc) · 1.89 KB
/
pyproject.toml
File metadata and controls
94 lines (79 loc) · 1.89 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
[project]
name = "reflexio"
version = "0.2.2"
description = "A composable retry policy framework with classification, jitter strategies, and observability hooks."
readme = "README.md"
requires-python = ">=3.11"
dependencies = []
# ---------------------
# Optional dependencies
# ---------------------
[project.optional-dependencies]
dev = [
"pytest>=9.0.1",
"pytest-cov>=7.0.0",
"hypothesis>=6.99.0",
"mypy>=1.10.0",
"ruff>=0.6.0",
"black>=24.8.0",
"pre-commit>=3.7.0",
"types-setuptools",
"pyperf>=2.7.0",
]
docs = [
"mkdocs>=1.6.0",
"mkdocs-material>=9.5.0",
]
[project.scripts]
reflexio = "reflexio.cli:main"
[tool.uv]
# uv will install dev dependencies with:
# uv pip install -e .[dev]
#
[tool.pytest.ini_options]
addopts = [
"--strict-markers",
"--disable-warnings",
"--cov=reflexio",
"--cov-report=term",
"--cov-report=xml",
]
testpaths = ["tests"]
[tool.coverage.run]
branch = true
source = ["reflexio"]
[tool.coverage.report]
fail_under = 85
show_missing = true
[tool.mypy]
python_version = "3.12"
check_untyped_defs = true
disallow_untyped_defs = true
strict_optional = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
warn_return_any = true
exclude = ["tests/"] # tests don't need strict typing
mypy_path = ["src"]
explicit_package_bases = true
[tool.ruff]
line-length = 100
exclude = ["build/", "dist/", ".venv/", "README.md"]
[tool.ruff.lint]
select = ["E", "F", "I", "N", "UP", "B"]
ignore = [
"E501", # handled by formatter
]
[tool.ruff.format]
quote-style = "double"
line-ending = "lf"
[tool.hatch.build]
packages = ["src/reflexio"]
[tool.hatch.build.targets.wheel.force-include]
"src/reflexio/py.typed" = "reflexio/py.typed"
[tool.hatch.build.targets.sdist.force-include]
"src/reflexio/py.typed" = "reflexio/py.typed"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"