-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
71 lines (62 loc) · 1.36 KB
/
pyproject.toml
File metadata and controls
71 lines (62 loc) · 1.36 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
[project]
name = "sider"
version = "1.0.0"
description = "blazing fast asyncio redis client"
authors = [ {name = "Eirik Rye", email = "eirik.rye@gmail.com"} ]
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"hiredis>=3.3.0",
"uvloop>=0.22.1",
]
[dependency-groups]
dev = [
"pytest",
"pytest-coverage",
"pytest-mock",
"pytest-benchmark",
"ruff",
"ty",
"anyio",
"poethepoet"
]
examples = [
"sanic",
"redis",
]
[build-system]
requires = ["uv_build>=0.9.26,<0.10.0"]
build-backend = "uv_build"
[tool.ruff]
line-length = 120
[tool.pytest]
addopts = ["--strict-markers"]
markers = [ "integration: integration tests", "benchmarks: benchmarking tests" ]
[tool.poe.executor]
type = "uv"
[tool.poe.tasks.clean]
help = "Remove generated files"
script = """
poethepoet.scripts:rm(
".coverage",
".ruff_cache",
".benchmarks",
".pytest_cache",
"./**/__pycache__",
"dist"
)
"""
[tool.poe.tasks.format]
cmd = "ruff format --check"
[tool.poe.tasks.lint]
cmd = "ruff check"
[tool.poe.tasks.type-check]
cmd = "ty check"
[tool.poe.tasks.py312]
cmd = "pytest tests --cov=sider"
executor = {isolated = true, python = "3.12"}
[tool.poe.tasks.py313]
cmd = "pytest tests --cov=sider"
executor = {isolated = true, python = "3.13"}
[tool.poe.tasks.all]
sequence = ["lint", "format", "type-check", "py312", "py313"]