-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
123 lines (110 loc) · 2.88 KB
/
pyproject.toml
File metadata and controls
123 lines (110 loc) · 2.88 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
[project]
name = "duron"
version = "0.0.4"
description = "Durable async runtime for Python"
license = "Apache-2.0"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"typing-extensions>=4.15.0",
]
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache Software License",
"Topic :: Software Development :: Libraries",
"Intended Audience :: Developers",
"Framework :: AsyncIO",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
[project.urls]
Homepage = "https://brian14708.github.io/duron/"
Source = "https://github.com/brian14708/duron"
[build-system]
requires = ["uv_build>=0.9.3,<0.11.0"]
build-backend = "uv_build"
[dependency-groups]
dev = [
{include-group = "lint"},
{include-group = "test"},
{include-group = "typing"},
]
test = [
"pydantic",
"pytest",
"pytest-asyncio",
"pytest-codspeed",
"pytest-xdist",
]
typing = [
"basedmypy",
"basedpyright",
"pydantic",
"pytest",
"orjson",
]
lint = [
"ruff",
]
docs = [
"mkdocstrings[python]",
"zensical",
]
examples = [
"pydantic",
"pydantic-ai-slim[openai]",
"rich",
]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"COM812", "S101", "CPY",
"D10", "D203", "D205", "D213",
"FIX", "TD002", "TD003",
"PLR09", "PLR2004", "C901",
]
extend-safe-fixes = ["TC", "F401"]
preview = true
future-annotations = true
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S311", "PLC2701", "PLR2004", "RUF029"]
"examples/**/*.py" = ["T201", "S311"]
[tool.ruff.lint.isort]
extra-standard-library = ["typing_extensions"]
split-on-trailing-comma = false
[tool.ruff.lint.flake8-type-checking]
runtime-evaluated-base-classes = ["typing_extensions.TypedDict"]
runtime-evaluated-decorators = ["duron.durable", "duron.effect"]
exempt-modules = ["typing", "typing_extensions"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.flake8-tidy-imports.banned-api]
"typing.TypedDict".msg = "Use typing_extensions.TypedDict instead."
"typing_extensions.AsyncContextManager".msg = "Use contextlib.AbstractAsyncContextManager instead."
"typing_extensions.AsyncGenerator".msg = "Use collections.abc.AsyncGenerator instead."
[tool.ruff.format]
preview = true
docstring-code-format = true
skip-magic-trailing-comma = true
[tool.mypy]
files = ["src", "tests"]
strict = true
python_version = "3.10"
disable_error_code = [
"decorated-any",
"explicit-any",
"any",
]
[tool.pyright]
include = ["src", "tests"]
venv = "."
venvPath = ".venv"
typeCheckingMode = "strict"
enableExperimentalFeatures = true
[tool.pytest.ini_options]
testpaths = ["tests"]