-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
145 lines (132 loc) · 3.54 KB
/
pyproject.toml
File metadata and controls
145 lines (132 loc) · 3.54 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
[project]
name = "fastapi-testing"
version = "0.3.3"
description = "A lightweight, async-first testing framework for FastAPI applications"
authors = [
{ name = "Ove Ranheim", email = "oranheim@gmail.com" }
]
requires-python = ">=3.11"
readme = "README.md"
license = { text = "MIT" }
keywords = ["fastapi", "testing", "async", "pytest", "integration-testing", "test-framework"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Framework :: FastAPI",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
"License :: OSI Approved :: MIT License",
]
dependencies = [
"fastapi>=0.116.1",
"starlette>=0.47.2",
"uvicorn>=0.35.0",
"httpx[http2]>=0.28.1",
"websockets>=15.0.1",
]
[dependency-groups]
dev = [
"pytest>=8.3.0",
"pytest-asyncio>=0.25.2",
"pytest-cov>=6.0.0",
"pydantic>=2.10.6",
"ruff>=0.12.0",
"restructuredtext-lint>=1.4.0",
"pygments>=2.19.1",
]
[build-system]
requires = ["hatchling>=1.26.3"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/fastapi_testing"]
[tool.hatch.build]
exclude = [
"docs/*",
"examples/*",
"tests/*",
".github/*",
"*.gif",
"*.png",
"dist/*",
"build/*",
".pytest_cache",
"__pycache__",
"*.pyc"
]
[project.urls]
Homepage = "https://github.com/descoped/fastapi-testing"
Repository = "https://github.com/descoped/fastapi-testing"
Issues = "https://github.com/descoped/fastapi-testing/issues"
[[tool.uv.index]]
name = "pypi"
url = "https://pypi.org/simple/"
publish-url = "https://upload.pypi.org/legacy/"
[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
markers = [
"asyncio: mark test as async",
]
[tool.ruff]
target-version = "py311"
line-length = 120
indent-width = 4
respect-gitignore = true
extend-exclude = [
"__pycache__",
".pytest_cache",
"build",
"dist",
".venv",
".env",
"htmlcov",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"A", # flake8-builtins
"T20", # flake8-print
"SIM", # flake8-simplify
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # Line too long (handled by formatter)
"E741", # Ambiguous variable name
"B008", # Do not perform function calls in argument defaults
"B017", # Assert raises on Exception - sometimes needed for testing
"T201", # Print found (allow print statements)
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
]
[tool.ruff.lint.isort]
known-first-party = ["fastapi_testing"]
force-single-line = false
combine-as-imports = true
split-on-trailing-comma = true
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true
docstring-code-line-length = "dynamic"