-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
66 lines (57 loc) · 1.55 KB
/
pyproject.toml
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
[project]
name = "prompt_bottle"
version = "0.1.5"
description = "LLM-targeted template engine, built upon Jinja"
authors = [
{name = "Yanli",email = "[email protected]"},
]
dependencies = [
"openai>=1.51.2",
"jinja2>=3.1.4",
"PyYAML>=6.0.2",
"stone-brick-toolkit>=0.6.1,<1.0.0"
]
requires-python = ">=3.9"
readme = "README.md"
license = {text = "MIT"}
[project.urls]
Repository = "https://github.com/BeautyyuYanli/Prompt-Bottle"
[dependency-groups]
dev = [
"pytest>=8.3.3",
"rich>=13.9.4"
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm]
distribution = true
[tool.pdm.dev-dependencies]
dev = [
"rich>=13.9.4",
"ruff>=0.8.1",
]
[tool.pyright]
venvPath = ".venv"
[tool.ruff]
target-version = "py39"
exclude = [".venv"]
[tool.ruff.lint]
select = ["E", "F", "G", "B", "I", "SIM", "TID", "PL", "RUF"]
ignore = [
"RUF001", # ',' vs. ','
"RUF003", # Ambiguous unicode character comment
"E501", # Line too long
"E402", # Module level import not at top of file
"PLR0911", # Too many return statements
"PLR0912", # Too many branches
"PLR0913", # Too many arguments in function definition
"PLR0915", # Too many statements
"SIM105", # Use `contextlib.suppress(Exception)` instead of `try`-`except`-`pass`
"SIM102", # Use a single `if` statement instead of nested `if` statements
]
[tool.ruff.lint.isort]
known-first-party = ["prompt_bottle"]
[tool.pdm.scripts]
fix = { shell = "ruff check --fix && ruff format" }
check = { shell = 'ruff check && ruff format --check' }