-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
112 lines (101 loc) · 2.55 KB
/
Copy pathpyproject.toml
File metadata and controls
112 lines (101 loc) · 2.55 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
[build-system]
requires = ["uv_build>=0.11,<0.12"]
build-backend = "uv_build"
[project]
name = "oneflight"
version = "0.1.0"
description = "Flexible sync and async singleflight: dedupe concurrent calls into one in-flight execution per key."
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
license-files = ["LICENSE"]
authors = [{ name = "Eugene Liukin", email = "eugeneliukin.dev@gmail.com" }]
keywords = [
"singleflight",
"deduplication",
"cache",
"cache-stampede",
"async",
"asyncio",
"concurrency",
"threading",
"memoization",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = []
[project.urls]
Homepage = "https://github.com/eugeneliukin/oneflight"
Repository = "https://github.com/eugeneliukin/oneflight"
Issues = "https://github.com/eugeneliukin/oneflight/issues"
Changelog = "https://github.com/eugeneliukin/oneflight/blob/main/CHANGELOG.md"
[dependency-groups]
test = [
"pytest>=8",
"pytest-asyncio>=0.23",
"pytest-cov>=5",
]
typing = [
"mypy>=1.10",
]
fmt = [
"ruff>=0.4",
]
dev = [
{ include-group = "test" },
{ include-group = "typing" },
{ include-group = "fmt" },
]
[tool.uv]
default-groups = []
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "C4", "PTH", "RUF"]
[tool.ruff.lint.isort]
known-first-party = ["oneflight"]
[tool.mypy]
python_version = "3.10"
strict = true
warn_return_any = true
warn_unused_ignores = true
disallow_any_generics = true
pretty = true
[tool.pytest]
testpaths = ["tests"]
addopts = [
"-v",
"--color=yes",
"--cov",
"--cov-report=html:coverage/htmlcov",
"--cov-report=xml:coverage/coverage.xml",
"--cov-report=term",
]
asyncio_mode = "auto"
[tool.coverage.run]
source = ["src"]
branch = true
data_file = "coverage/.coverage"
[tool.coverage.report]
show_missing = true
skip_covered = true
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
": \\.\\.\\.(\\s*#.*)?$",
"@overload",
]