-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
77 lines (68 loc) · 1.87 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
[project]
name = "redis-starter-python"
version = "0.1.0"
description = "A starter project for working with Redis and Python"
authors = [
{ name = "Will Johnston", email = "[email protected]" }
]
maintainers = [
{ name = "Will Johnston", email = "[email protected]" }
]
readme = "README.md"
license = "MIT"
requires-python = ">=3.8"
keywords = ["python", "fastapi", "redis", "starter", "redis-py"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python"
]
dependencies = [
"fastapi[standard] (>=0.115.6,<0.116.0)",
"pydantic>=2.10.5",
"python-dotenv>=1.0.1",
"redis[hiredis]>=5.2.1",
]
[dependency-groups]
dev = [
"pytest>=8.3.4",
"pytest-asyncio>=0.24.0",
]
[project.urls]
Repository = "https://github.com/redis-developer/redis-starter-python.git"
"Bug Tracker" = "https://github.com/redis-developer/redis-starter-python/issues"
[project.optional-dependencies]
dev = [
"mypy<2.0.0,>=1.8.0",
"ruff<1.0.0,>=0.2.2",
]
[tool.pytest.ini_options]
pythonpath = "src"
asyncio_default_fixture_loop_scope = "session"
asyncio_mode = "auto"
[tool.mypy]
strict = true
disallow_untyped_calls = false
exclude = ["venv", ".venv"]
[tool.ruff]
target-version = "py38"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG001", # unused arguments in functions
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"W191", # indentation contains tabs
"B904", # Allow raising exceptions without from e, for HTTPException
]
[tool.ruff.lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true