-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
123 lines (108 loc) · 3.44 KB
/
Copy pathpyproject.toml
File metadata and controls
123 lines (108 loc) · 3.44 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
[project]
name = "prompt-manager"
version = "0.22.25"
description = "Desktop application for cataloguing, searching, and launching AI prompts."
readme = "README.md"
requires-python = ">=3.13"
license = {text = "MIT"}
authors = [{name = "Prompt Manager Team"}]
keywords = ["prompts", "gui", "productivity", "ai"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
"Topic :: Text Processing :: Linguistic",
]
dependencies = [
"chromadb>=1.3.5",
"numpy>=2.0.0,<3",
"Jinja2==3.1.6",
"jsonschema==4.23.0",
"pydantic==2.12.5",
"pydantic-settings==2.12.0",
"PyYAML==6.0.3",
"PySide6==6.10.1",
"httpx==0.28.1",
"redis==7.1.0",
"litellm==1.83.14",
"cryptography==46.0.7",
]
[project.optional-dependencies]
dev = [
"pytest==9.0.3",
"pytest-cov==7.0.0",
"pytest-xdist==3.8.0",
"pyright==1.1.408",
"ruff==0.14.7",
"pytest-asyncio==1.3.0", # Updated to support pytest 9.x
"hypothesis==6.116.0",
"respx==0.21.0",
"vcrpy==8.1.1",
"urllib3>=2.7.0",
"pytest-mock==3.14.0",
"bandit==1.7.9",
"py-spy==0.3.14",
"tenacity==9.0.0",
]
[tool.setuptools.packages.find]
include = ["config*", "core*", "gui*", "models*"]
exclude = ["tests*", "data*", "scripts*"]
[tool.setuptools.package-data]
"gui.resources" = ["*.ico"]
[tool.ruff]
target-version = "py313"
line-length = 100
src = ["."]
exclude = ["data/"]
[tool.ruff.lint]
select = ["E", "F", "I", "B", "UP"]
extend-select = ["TC", "TCH", "D"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
known-first-party = ["core", "config", "models", "gui", "tests"]
combine-as-imports = true
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
docstring-code-format = false
[tool.pytest.ini_options]
# Keep only general options here, e.g.,
# addopts = "-n auto --strict-markers"
# Silence LiteLLM's outstanding Pydantic ConfigDict deprecation warnings
# until https://github.com/BerriAI/litellm/issues/9731 resolves upstream.
filterwarnings = [
"ignore::pydantic.warnings.PydanticDeprecatedSince20:litellm.types.llms.anthropic",
"ignore::pydantic.warnings.PydanticDeprecatedSince20:litellm.types.rag",
# Python 3.13 emits ResourceWarning for sqlite connections left to GC; pytest-cov's
# coverage data store still relies on that behavior (see https://alexwlchan.net/til/2025/python3-13-sqlite-warnings/).
"ignore:unclosed database in <sqlite3.Connection object:ResourceWarning",
]
[tool.coverage.run]
# This ensures coverage is measured for 'core' when pytest-cov runs
source = ["core"]
[tool.coverage.report]
# This defines the minimum required coverage
fail_under = 80
[tool.pyright]
include = ["main.py", "core", "config", "gui", "models", "tests"]
exclude = ["data", "scripts"]
pythonVersion = "3.13"
typeCheckingMode = "strict"
reportMissingImports = "warning"
reportMissingTypeStubs = "warning"
useLibraryCodeForTypes = true
[tool.uv]
override-dependencies = ["python-dotenv>=1.2.2"]
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"