-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
91 lines (81 loc) · 2.66 KB
/
pyproject.toml
File metadata and controls
91 lines (81 loc) · 2.66 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
[project]
name = "promptdrifter"
version = "0.0.2"
description = "One-command CI guardrail that catches prompt drift and fails the build when your LLM answers change."
authors = [
{name = "Colby Timm"}
]
license = {text = "MIT"}
readme = "scripts/pypi-readme.md"
requires-python = ">=3.11"
dependencies = [
"typer (>=0.24.1,<0.25.0)",
"rich (>=14.0.0,<15.0.0)",
"openai (>=2.31.0,<2.32.0)",
"httpx (>=0.28.1,<0.29.0)",
"pyyaml (>=6.0.2,<7.0.0)",
"importlib-resources (>=6.5.2,<7.0.0)",
"coverage (>=7.8.0,<8.0.0)",
"jsonschema (>=4.23.0,<5.0.0)",
"rapidfuzz (>=3.0.0,<4.0.0)",
"jinja2>=3.1.6",
"packaging>=23.2",
]
keywords = ["llm", "prompt engineering", "testing", "ci", "developer tools", "cli", "prompt drift"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Utilities",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
]
[project.urls]
Homepage = "https://github.com/Code-and-Sorts/PromptDrifter"
Repository = "https://github.com/Code-and-Sorts/PromptDrifter"
"Bug Tracker" = "https://github.com/Code-and-Sorts/PromptDrifter/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project.scripts]
promptdrifter = "promptdrifter.cli:app"
[tool.hatch.build.targets.wheel]
packages = ["src/promptdrifter"]
[project.optional-dependencies]
dev = [
"pytest-cov>=6.1.1",
"pytest-mock>=3.14.0",
"pytest (>=9.0.2,<9.1.0)",
"pytest-asyncio (>=1.3.0,<1.4.0)",
"ruff>=0.11.8",
"respx (>=0.22.0,<0.23.0)",
]
similarity = [
"sentence-transformers>=2.9.0",
]
[tool.ruff]
# Same as Black.
line-length = 88
indent-width = 4
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.ruff.lint]
# Allow unused variables in `__init__.py` and `tests/` files.
# Often useful for imports that are part of the public API or test setup.
per-file-ignores = {"__init__.py" = ["F401"], "tests/*" = ["F401", "S101"]}
select = ["E4", "E7", "E9", "F", "W", "I001", "UP004"] # F: Pyflakes, E/W: pycodestyle, I: isort, UP: pyupgrade
[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "function"
[tool.coverage.report]
fail_under = 80
show_missing = true