forked from huytd/supercoder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (81 loc) · 2.1 KB
/
pyproject.toml
File metadata and controls
92 lines (81 loc) · 2.1 KB
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
[project]
name = "supercoder"
version = "0.3.0"
description = "AI Coding Assistant for the Terminal"
readme = "README.md"
requires-python = ">=3.11"
license = {text = "MIT"}
authors = [
{name = "SuperCoder Team"}
]
keywords = ["ai", "coding", "assistant", "llm", "cli"]
dependencies = [
"openai>=2.13.0",
"click>=8.3.1",
"rich>=14.2.0",
"prompt-toolkit>=3.0.52",
"networkx>=3.6.1",
"tree-sitter-languages>=1.10.2",
"pyyaml>=6.0.0",
"pygments>=2.17.0",
"tiktoken>=0.12.0",
"questionary>=2.0.0",
]
[project.urls]
Homepage = "https://github.com/Mage212/supercoder"
Repository = "https://github.com/Mage212/supercoder"
Issues = "https://github.com/Mage212/supercoder/issues"
[project.optional-dependencies]
local = [
"llama-cpp-python>=0.2.0",
]
[dependency-groups]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"ruff>=0.9.0",
"pyright>=1.1.0",
]
[project.scripts]
supercoder = "supercoder.main:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
"C90", # McCabe complexity
"SIM", # flake8-simplify
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # line too long (formatter handles it)
"B008", # do not perform function calls in default arguments (Click pattern)
"SIM117", # use single with statement (readability preference)
"C901", # function too complex (complex functions are correct and intentional)
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["B", "SIM"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
[tool.pyright]
pythonVersion = "3.11"
typeCheckingMode = "basic"
venvPath = "."
venv = ".venv"
reportMissingImports = true
reportMissingModuleSource = false
exclude = ["tests/**", ".venv/**", "venv/**", "scripts/**", "build/**"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]