-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpyproject.toml
More file actions
72 lines (62 loc) · 1.44 KB
/
Copy pathpyproject.toml
File metadata and controls
72 lines (62 loc) · 1.44 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
[project]
name = "gcode"
version = "0.2.0"
description = "GCode — a local, interactive AI coding CLI."
requires-python = ">=3.10"
dependencies = [
"langchain>=1.3.17",
"langchain-openai>=1.6.0",
"langchain-core>=1.6.0",
"python-dotenv>=1.2.3",
"questionary>=2.1.1",
"requests>=2.34.2",
"rich>=15.0.0",
]
[project.optional-dependencies]
dev = [
"bandit>=1.8",
"build>=1.6.0",
"coverage>=7.15.4",
"mypy>=2.3.0",
"pip-audit>=2.10.1",
"pre-commit>=4.0",
"pytest>=9.1.1",
"ruff>=0.16.4",
]
[project.scripts]
gcode = "gcode.cli:main"
[build-system]
requires = ["setuptools>=83.0.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["."]
include = ["gcode*"]
[tool.ruff]
target-version = "py310"
line-length = 100
src = ["gcode", "tests"]
extend-exclude = ["demo"]
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM"]
ignore = [
"SIM102", # nested if reads clearer than a combined condition
]
[tool.mypy]
python_version = "3.10"
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
[tool.bandit]
exclude_dirs = ["tests", "demo"]
skips = [
"B404", # subprocess import is intentional (git + bash tools)
"B603", # list-argument subprocess calls are safe (no shell)
]
[tool.coverage.run]
source = ["gcode"]
omit = ["tests/*"]
[tool.coverage.report]
fail_under = 30
show_missing = true
skip_covered = true