-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
140 lines (124 loc) · 3.16 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
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
137
138
139
140
[project]
name = "paita"
dynamic = ["version"]
description = 'paita - Python AI Textual Assistant'
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
keywords = ["python", "textual", "ai", "chat", "openai", "chatgpt", "aws", "bedrock"]
authors = [
{ name = "Ville Kärkkäinen", email = "[email protected]" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"textual~=0.79.1",
# "boto3~=1.35.8", # rely on boto3 version coming from langchain-aws
"loguru~=0.7.2",
"langchain-core~=0.2.39",
"langchain-community~=0.2.14",
"langchain-openai~=0.1.23",
"langchain-aws~=0.1.18",
"langchain-ollama~=0.1.3",
"langchain~=0.2.16",
"appdirs~=1.4.4",
"pydantic~=2.8.2",
"cache3~=0.4.3",
"aiofiles~=24.1.0",
"pyperclip~=1.9.0",
"eval-type-backport~=0.2.0",
"validators~=0.34.0",
]
[project.urls]
Documentation = "https://github.com/villekr/paita#readme"
Issues = "https://github.com/villekr/paita/issues"
Source = "https://github.com/villekr/paita"
[project.scripts]
paita = "paita.tui.app:main"
[tool.hatch.version]
path = "src/paita/__about__.py"
[tool.hatch.envs.default]
dependencies = [
"coverage[toml]>=6.5",
"pytest",
"flake8",
"isort",
"black",
"textual-dev",
"pytest-asyncio",
"flake8-bugbear",
"flake8-bandit",
"pytest-cov",
"mypy",
"boto3-stubs",
"appdirs-stubs",
"types-aiofiles"
]
[tool.hatch.envs.default.scripts]
test = "pytest {args:tests}"
test-cov = "coverage run -m pytest {args:tests}"
github-test-cov = 'coverage run -m pytest -m "not integration" {args:tests}'
cov-report = [
"- coverage combine",
"coverage report",
]
cov = [
"test-cov",
"cov-report",
]
github-cov = [
"github-test-cov",
"cov-report",
]
[[tool.hatch.envs.all.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
[[tool.hatch.envs.test.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
[tool.hatch.envs.types]
dependencies = [
"mypy>=1.0.0",
]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:src/pypi_publish tests}"
[tool.pytest.ini_options]
markers = [
"integration: marks tests that require access to AI services and models (deselect with '-m \"not integration\"')",
"serial",
]
[tool.coverage.run]
source_pkgs = ["paita", "tests"]
branch = true
parallel = true
omit = [
"src/paita/__about__.py",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.coverage.paths]
paita = ["src/paita", "*/paita/src/paita"]
tests = ["tests", "*/paita/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.ruff.lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true
[tool.ruff.lint]
ignore = [
"SIM117",
"A002",
"RUF012"
]