-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
136 lines (122 loc) · 3.57 KB
/
Copy pathpyproject.toml
File metadata and controls
136 lines (122 loc) · 3.57 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "pytest-mockllm"
version = "0.2.3"
description = "🚀 Zero-config pytest plugin for mocking LLM APIs - OpenAI, Anthropic, Gemini, LangChain & more"
readme = "README.md"
license = "MIT"
requires-python = ">=3.9"
authors = [
{ name = "Dhiraj Das", email = "dhirajdas.666@gmail.com" }
]
keywords = [
# Core testing
"pytest", "pytest-plugin", "mock", "mocking", "testing", "unit-testing",
# LLM providers
"llm", "openai", "anthropic", "gemini", "claude", "gpt-4", "gpt-4o", "chatgpt",
# Frameworks
"langchain", "llamaindex", "llama-index",
# Use cases
"ai", "artificial-intelligence", "machine-learning", "nlp",
# Testing specific
"test-fixtures", "test-automation", "api-mocking"
]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Pytest",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Testing :: Mocking",
"Topic :: Software Development :: Testing :: Unit",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Typing :: Typed",
]
dependencies = [
"pytest>=7.0.0",
"pytest-asyncio>=0.23.0",
"PyYAML>=6.0.0",
]
[project.optional-dependencies]
openai = ["openai>=1.0.0", "tiktoken>=0.7.0"]
anthropic = ["anthropic>=0.18.0"]
google = ["google-generativeai>=0.3.0"]
langchain = ["langchain-core>=0.1.0"]
all = [
"openai>=1.0.0",
"anthropic>=0.18.0",
"google-generativeai>=0.3.0",
"langchain-core>=0.1.0",
"tiktoken>=0.7.0",
]
dev = [
"pytest-cov>=4.0.0",
"mypy>=1.0.0",
"ruff>=0.1.0",
"pre-commit>=3.0.0",
"types-PyYAML>=6.0.0",
]
[project.urls]
Homepage = "https://www.dhirajdas.dev"
Documentation = "https://github.com/godhiraj-code/pytest-mockllm#readme"
Repository = "https://github.com/godhiraj-code/pytest-mockllm"
Issues = "https://github.com/godhiraj-code/pytest-mockllm/issues"
Changelog = "https://github.com/godhiraj-code/pytest-mockllm/blob/main/CHANGELOG.md"
[project.entry-points.pytest11]
mockllm = "pytest_mockllm.plugin"
[tool.hatch.build.targets.sdist]
include = [
"/src",
"/tests",
"/README.md",
"/CHANGELOG.md",
"/LICENSE",
]
[tool.hatch.build.targets.wheel]
packages = ["src/pytest_mockllm"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
[tool.mypy]
python_version = "3.9"
warn_return_any = false
warn_unused_configs = true
disallow_untyped_defs = false
ignore_missing_imports = true
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = false
exclude = ["venv", "tests", "build", "dist"]
[[tool.mypy.overrides]]
module = ["pytest_mockllm.*"]
disallow_untyped_decorators = false
[[tool.mypy.overrides]]
module = ["pytest_mockllm.fixtures"]
ignore_errors = true
[tool.ruff]
line-length = 100
target-version = "py39"
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP", "B", "C4", "PT"]
ignore = ["E501"]
[tool.coverage.run]
source = ["src/pytest_mockllm"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]