-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
120 lines (106 loc) · 2.53 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
[project]
name = "pocket-asi"
requires-python = ">=3.12"
[build-system]
requires = [
"poetry-core>=1.8.2",
]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
package-mode = false
[tool.poetry.dependencies]
python = "^3.12"
psutil = "^5.9.8"
coloredlogs = "^15.0.1"
pydantic = "^2.7.1"
pydantic-settings = "^2.2.1"
termcolor = "^2.4.0"
[tool.poetry.group.server.dependencies]
llama-cpp-python = "^0.2.65"
pygments = "^2.17.2"
python-dotenv = "^1.0.1"
[tool.poetry.group.client.dependencies]
bashlex = "^0.18"
[tool.poetry.dev-dependencies]
[tool.pydoclint]
style = "google"
arg-type-hints-in-docstring = false
check-return-types = true
check-yield-types = true
[tool.pyright]
exclude = [
".venv",
"**/__pycache__",
"**/*.pyc",
"workspace",
]
venv = ".venv"
venvPath = "."
reportShadowedImport = "warning"
reportMissingSuperCall = false
reportUninitializedInstanceVariable = "warning"
reportPropertyTypeMismatch = "warning"
reportUnusedCallResult = "warning"
reportUnusedImport = "information"
[tool.ruff]
exclude = [
".venv",
"workspace",
]
line-length = 100
indent-width = 4
target-version = "py312"
[tool.ruff.lint]
extend-select = [
"F", # Pyflakes
"N", # pep8 names
"D", # Pydocstyle
"I", # isort
"UP", # Pyupgrade
"E", # Pycodestyle
"EM", # flake8-errmsg
"W", # Pycodestyle
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"S", # flake8-bandit
"EM", # flake8-errmsg
"A", # flake8-builtins
"C90", # McCabe
"ASYNC", # flake8-async
"ICN", # flake8-import-conventions
"PIE", # flake8-pie
"SLF", # flake8-self
"RSE", # flake8-raise
"RET", # flake8-return
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"PL", # Pylint
"TRY", # Tryceratops
"RUF", # RUFF
"FLY", # FLYNT
"FURB", # refurb
#"TD", # flake8-todo
#"FIX", # flake8-fixme
]
ignore = [
# Covered by Pyright
"F821", # Unknown name
"F401", # Unused import
"S101", # Use of assert detected
]
[tool.ruff.lint.per-file-ignores]
"shell.py" = ["S603"] # Untrusted input - kinda the whole point
fixable = ["ALL"]
unfixable = []
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true
docstring-code-line-length = "dynamic"
[tool.ruff.pydocstyle]
convention = "google"