-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
74 lines (67 loc) · 1.71 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
[project]
authors = [
{ name = "Laurent Fainsin", email = "[email protected]" },
]
dependencies = [
"environs>=14.1.0",
"finegrain",
"pillow>=11.1.0",
"pydantic>=2.10.5",
"quart>=0.20.0",
]
description = "Finegrain API ChatGPT bridge"
name = "chatgpt-bridge"
readme = "README.md"
requires-python = ">= 3.12"
version = "1.0.0"
[tool.uv]
dev-dependencies = [
"pyright>=1.1.396",
"ruff>=0.11.0",
"typos>=1.30.0",
]
package = true
[tool.uv.sources]
finegrain = { git = "https://github.com/finegrain-ai/finegrain-python.git", subdirectory = "finegrain" }
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[tool.hatch.build.targets.wheel]
packages = ["src/chatgpt_bridge"]
[tool.ruff]
line-length = 120
target-version = "py312"
[tool.ruff.lint]
ignore = [
"C901", # is too complex
"E731", # do-not-assign-lambda
"EM101", # exception must not use a string literal
"EM102", # f-string literal in exception message
"G004", # f-string literal in logging message
"N812", # imported as non-lowercase
"S101", # use of assert
"S311", # non secure cryptographic random
]
select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"E", # pycodestyle errors
"EM", # flake8-errmsg
"F", # Pyflakes
"G", # flake8-logging-format
"I", # isort
"N", # pep8-naming
"PIE", # flake8-pie
"PTH", # flake8-use-pathlib
"RUF", # ruff
"S", # flake8-bandit
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pycodestyle warnings
]
[tool.pyright]
pythonVersion = "3.12"
reportMissingImports = true
reportMissingTypeStubs = false
reportPrivateUsage = false
reportUntypedFunctionDecorator = false