-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (93 loc) · 2.77 KB
/
pyproject.toml
File metadata and controls
105 lines (93 loc) · 2.77 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "phronesitron"
version = "1.0.0"
description = "One-shot LLM CLI with MCP tool support"
readme = "README.md"
license = "GPL-3.0-or-later"
requires-python = ">=3.11"
authors = [{ name = "Reto Stamm", email = "reto@retostamm.com" }]
keywords = ["llm", "cli", "mcp"]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"acatome-lambic>=0.5.4",
"termcolor>=3.3.0",
]
[project.urls]
Homepage = "https://github.com/retospect/phronesitron"
Repository = "https://github.com/retospect/phronesitron"
[project.optional-dependencies]
litellm = ["litellm!=1.82.7,!=1.82.8,>=1.83.14"]
[project.scripts]
ph = "phronesitron.cli:main"
[dependency-groups]
dev = [
"pytest>=9.0.3",
"pytest-asyncio>=1.3.0",
"ruff>=0.15.12",
"mypy>=1.20.2",
"pre-commit>=4.6.0",
]
[tool.hatch.build.targets.wheel]
packages = ["src/phronesitron"]
[tool.ruff]
target-version = "py311"
line-length = 88
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM", "RUF"]
ignore = [
"B008", # function-call-in-default-argument (typer pattern)
"B904", # raise-without-from-inside-except
"E501", # line-too-long (formatter handles what it can)
"E741", # ambiguous-variable-name
"RUF001", # ambiguous-unicode-character-string
"RUF002", # ambiguous-unicode-character-docstring
"RUF003", # ambiguous-unicode-character-comment
"RUF012", # mutable-class-default (SQLAlchemy/Pydantic models)
"SIM102", # collapsible-if
"SIM103", # needless-bool
"SIM105", # suppressible-exception
"SIM108", # if-else-block-instead-of-if-exp
"SIM110", # reimplemented-builtin
"SIM117", # multiple-with-statements
"B007", # unused-loop-control-variable
"B905", # zip-without-explicit-strict
"RUF005", # collection-literal-concatenation
"RUF006", # asyncio-dangling-task
"RUF013", # implicit-optional
"RUF043", # match-metacharacter-unescaped
"UP036", # outdated-version-block
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["B007", "E402", "E731", "E741", "F841", "RUF012", "RUF015", "RUF059", "UP036"]
"src/**" = ["E402", "F841", "RUF059"]
[tool.mypy]
python_version = "3.11"
warn_unused_configs = true
check_untyped_defs = true
ignore_missing_imports = true
disable_error_code = [
"arg-type",
"assignment",
"attr-defined",
"call-arg",
"dict-item",
"index",
"method-assign",
"no-any-return",
"operator",
"type-var",
"union-attr",
"valid-type",
"var-annotated",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"