-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
127 lines (114 loc) · 2.45 KB
/
pyproject.toml
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
[build-system]
requires = ["maturin>=0.14,<0.15", "hatchling"]
build-backend = "maturin"
[project]
name = "redis-rs"
dynamic = ["version"]
requires-python = ">=3.8"
license = {file = "LICENSE"}
description = "Python wrapper for redis-rs"
readme = {"file" = "README.rst", "content-type" = "text/x-rst"}
authors = [
{ name = "Alexander Malev", email = "[email protected]" },
]
keywords = [
"redis",
"redis-cluster",
"rust",
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Framework :: AsyncIO",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
[project.urls]
"Source Code" = "https://github.com/aamalev/redis-rs-py"
Issues = "https://github.com/aamalev/redis-rs-py/issues"
Documentation = "https://github.com/aamalev/redis-rs-py#using"
Changelog = "https://github.com/aamalev/redis-rs-py/releases"
[tool.mypy]
warn_redundant_casts = true
check_untyped_defs = true
ignore_missing_imports = true
[tool.ruff]
line-length = 120
indent-width = 4
target-version = "py38"
[tool.ruff.lint]
extend-select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
# "UP",
# flake8-bugbear
"B",
# flake8-simplify
# "SIM",
# isort
"I",
]
extend-ignore = [
"E501",
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pytest.ini_options]
markers = [
"redis",
]
asyncio_mode = "auto"
testpaths = [
"redis_rs",
"tests",
]
[tool.hatch.version]
path = "Cargo.toml"
[tool.hatch.envs.default]
dependencies = [
"maturin",
"mypy",
"ruff>0.1",
"pytest-asyncio",
]
[tool.hatch.envs.default.scripts]
build = [
"maturin develop",
]
check = [
"ruff redis_rs tests",
"ruff format --check redis_rs tests",
"mypy redis_rs tests",
"cargo clippy",
]
fmt = [
"cargo fmt",
"ruff --fix redis_rs tests",
"ruff format redis_rs tests",
]
test = [
"check",
"cargo test",
"pytest",
]
[[tool.hatch.envs.all.matrix]]
python = [
"3.8",
"3.9",
"3.10",
"3.11",
"3.12",
]