-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
163 lines (144 loc) · 3.07 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
[project]
name = "chatlas"
description = "A simple and consistent interface for chatting with LLMs"
dynamic = ["version"]
readme = "README.md"
requires-python = ">=3.9"
dependencies = [
"pydantic>=2.0",
"jinja2",
"rich",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
authors = [
{name = "Carson Sievert", email = "[email protected]"}
]
[project.urls]
Homepage = "https://posit-dev.github.io/chatlas"
Documentation = "https://posit-dev.github.io/chatlas"
Repository = "https://github.com/posit-dev/chatlas"
Issues = "https://github.com/posit-dev/chatlas/issues/"
Changelog = "https://github.com/posit-dev/chatlas/blob/main/CHANGELOG.md"
[project.optional-dependencies]
test = [
"pyright>=1.1.379",
"pytest>=8.3.2",
"pytest-asyncio",
"syrupy>=4"
]
dev = [
"ruff>=0.6.5",
"python-dotenv",
"matplotlib",
"Pillow",
"shiny",
"openai",
"anthropic[bedrock]",
"google-generativeai>=0.8.3",
"numpy>1.24.4",
"tiktoken",
]
docs = [
"griffe>=1",
"quartodoc>=0.7",
# Quarto requires...
"ipykernel",
"nbclient",
"nbformat",
"pyyaml",
# Articles require
"ipywidgets",
"pandas",
"sentence-transformers",
"numpy",
]
[tool.uv]
dev-dependencies = [
"ruff>=0.6.5",
"tox-uv>=1.11.4",
]
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build]
skip-excluded-dirs = true
[tool.hatch.build.targets.wheel]
packages = ["chatlas"]
[tool.pyright]
include = ["chatlas"]
exclude = ["_dev", ".venv"]
[tool.tox]
legacy_tox_ini = """
[tox]
env_list = type-py3{9,10,11,12}, py3{9,10,11,12}
isolated_build = True
[testenv]
package = wheel
wheel_build_env = .pkg
commands = pytest
[testenv:type]
deps =
pyright
pytest
syrupy
commands = pyright
"""
[tool.ruff]
src = ["chatlas"]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
line-length = 88
indent-width = 4
target-version = "py39"
[tool.ruff.lint]
select = ['E', 'F', 'W', 'A', 'PLC', 'PLE', 'PLW', 'I']
ignore = ["E501"]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true
docstring-code-line-length = "dynamic"