-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
112 lines (100 loc) · 2.72 KB
/
pyproject.toml
File metadata and controls
112 lines (100 loc) · 2.72 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.10.7,<0.11.0"]
build-backend = "uv_build"
[project]
name = "pytest-django-queries"
version = "1.4.0"
description = "Generate performance reports from your django database performance tests."
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
dependencies = [
"beautifultable>=v1.0.0",
"click",
"colorama",
"django>=4.2.0",
"jinja2",
"pytest>=7.2.0",
]
authors = [
{name = "Mikail Kocak", email = "mikail-gh@pm.me"},
]
classifiers=[
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"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",
"Framework :: Django",
"Framework :: Pytest",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
"Development Status :: 5 - Production/Stable",
]
[project.urls]
Homepage = "https://github.com/NyanKiyoshi/pytest-django-queries/"
Documentation = "https://pytest-django-queries.readthedocs.io/"
Repository = "https://github.com/NyanKiyoshi/pytest-django-queries/"
Issues = "https://github.com/NyanKiyoshi/pytest-django-queries/issues/"
[project.entry-points.pytest11]
django_queries = "pytest_django_queries.plugin"
[project.scripts]
django-queries = "pytest_django_queries.cli:main"
[dependency-groups]
dev = [
"beautifulsoup4",
"lxml",
"mock",
"pre-commit",
"sphinx",
"sphinx-rtd-theme",
]
test = [
"coverage",
"pytest-django",
"pytest-xdist",
]
[tool.coverage.run]
branch = true
omit = [
"*/tests/*",
"*/test_*.py",
]
source = ["src/"]
[tool.coverage.report]
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
"if self\\.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
]
[tool.uv.workspace]
members = [
"example",
".",
]
[tool.pytest]
addopts = [
# Prevents autoloading plugins as they could impact the test
# results, e.g., we could fail to detect that the plugin
# doesn't work if pytest-django isn't installed (as it's an
# optional plugin)
"--disable-plugin-autoload",
"-p", "xdist",
"-p", "django_queries",
]
testpaths = [
"tests",
]