-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpyproject.toml
100 lines (89 loc) · 2.12 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
[tool.pdm]
version = { source = "file", path = "src/ai_cli/__init__.py" }
[project]
name = "py_ai_cli"
dynamic = ["version"]
description = "This CLI tool allows you to easily chat with chatGPT in the command line. You can chat with it, ask questions, and even translate text. It also"
authors = [
{name = "Yufei Kang", email = "[email protected]"},
]
dependencies = [
"rich>=13.3.1",
"openai>=1.10.0",
"pysocks>=1.7.1",
"pyperclip>=1.8.2",
"EdgeGPT>=0.1.22.1",
"tiktoken>=0.7.0",
"BardApi>=0.1.38",
"google-generativeai>=0.3.2",
]
requires-python = ">=3.9"
readme = "README.md"
license = {text = "MIT"}
[project.urls]
Repository="https://github.com/yufeikang/ai-cli"
Documentation="https://github.com/yufeikang/ai-cli/blob/main/README.md"
[build-system]
requires = ["pdm-pep517>=1.0"]
build-backend = "pdm.pep517.api"
[tool.pdm.build]
excludes = [".git"]
package-dir = "src"
includes = ["src/ai_cli"]
source-includes = ["tests", "CHANGELOG.md", "LICENSE", "README.md", "README_*.md"]
# editables backend doesn't work well with namespace packages
editable-backend = "path"
[project.scripts]
ai = "ai_cli.cli:cli"
[tool.pdm.dev-dependencies]
test = [
"pdm[pytest]",
"pytest-cov",
"pytest-xdist>=1.31.0",
"pytest-rerunfailures>=10.2",
]
tox = [
"tox",
"tox-pdm>=0.5",
]
doc = [
"mkdocs>=1.1",
"mkdocs-material>=7.3",
"mkdocstrings[python]>=0.18",
"markdown-include>=0.5.1",
"mike>=1.1.2",
"setuptools>=62.3.3",
"markdown-exec>=0.7.0",
]
workflow = [
"pdm-pep517>=1.0.0,<2.0.0",
"parver>=0.3.1",
"towncrier>=20",
"pycomplete~=0.3"
]
dev = [
"black>=23.1.0",
]
[tool.black]
line-length = 120
target-version = ["py37", "py38", "py39", "py310"]
[tool.ruff]
line-length = 120
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"E", # pycodestyle
"F", # pyflakes
"PGH", # pygrep-hooks
"RUF", # ruff
"W", # pycodestyle
"W", # pycodestyle
"YTT", # flake8-2020
]
extend-ignore = ["B019"]
src = ["src"]
target-version = "py37"
[tool.ruff.mccabe]
max-complexity = 10
[tool.ruff.isort]
known-first-party = ["ai-cli"]