Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
146 lines (130 loc) · 3.69 KB
/
Copy pathpyproject.toml
File metadata and controls
146 lines (130 loc) · 3.69 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "valkey"
dynamic = ["version"]
description = "Python client for Valkey forked from redis-py"
readme = "README.md"
license = { file = "LICENSE" }
keywords = ["Valkey", "key-value store", "database"]
authors = [
{ name = "valkey-py authors", email = "valkey-py@lists.valkey.io" }
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
requires-python = ">=3.11"
dependencies = [
'async-timeout>=4.0.3; python_full_version<"3.11.3"',
]
[dependency-groups]
dev = [
'cachetools',
'flynt',
'hatchling',
'mock',
'packaging>=20.4',
'pytest',
'pytest-asyncio',
'pytest-cov',
'pytest-timeout',
'pytest-xdist>=3.2',
'ruff==0.17.0',
'ujson>=4.2.0',
'uvloop; implementation_name != "pypy"',
'vulture>=2.3.0',
]
type-check = [
'mypy',
'types-requests',
'cryptography',
'libvalkey',
]
docs = [
'sphinx >=8.0,<8.2',
'docutils',
'nbsphinx',
'sphinx-gallery',
'ipython',
'sphinx-autodoc-typehints',
'furo',
'pandoc',
]
[project.optional-dependencies]
libvalkey = ["libvalkey>=4.0.1"]
ocsp = [
"cryptography>=43.0.0",
"pyopenssl>=23.2.0",
"requests>=2.31.0",
]
[project.urls]
Homepage = "https://github.com/valkey-io/valkey-py"
Documentation = "https://valkey-py.readthedocs.io/en/latest/"
Changes = "https://github.com/valkey-io/valkey-py/releases"
Code = "https://github.com/valkey-io/valkey-py"
"Issue tracker" = "https://github.com/valkey-io/valkey-py/issues"
[tool.hatch.version]
path = "valkey/__init__.py"
[tool.hatch.build.targets.sdist]
include = [
"/tests",
"/valkey",
]
[tool.pytest.ini_options]
addopts = "-s"
markers = [
"standalone_exclusive: requires exclusive access to server-wide state",
"valkeymod: run only the valkey module tests",
"pipeline: pipeline tests",
"onlycluster: marks tests to be run only with cluster mode valkey",
"onlynoncluster: marks tests to be run only with standalone valkey",
"ssl: marker for only the ssl tests",
"asyncio: marker for async tests",
"replica: replica tests",
"experimental: run only experimental tests",
]
asyncio_mode = "auto"
timeout = 30
[tool.ruff]
target-version = "py311"
line-length = 88
extend-exclude = [".venv*", "venv*", "build", "dist", "docker", "whitelist.py", "tasks.py"]
[tool.ruff.lint]
# Preserve Flake8 and import-sorting checks. Flynt remains a separate check
# because Ruff's FLY rules do not cover all of its transformations.
select = ["E", "W", "F", "I"]
ignore = ["E701", "F405"]
[tool.ruff.lint.isort]
known-first-party = ["valkey", "tests"]
[tool.mypy]
python_version = "3.11"
packages = ["valkey"]
sqlite_cache = true
[[tool.mypy.overrides]]
# The goal is to eliminate the `tool.mypy.overrides` section.
# This will be accomplished by resolving type annotation issues
# in the modules listed below.
ignore_errors = true
module = [
"valkey.client",
"valkey.cluster",
"valkey.connection",
"valkey.commands.*",
"valkey.asyncio.*",
"valkey._parsers.*",
]