-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
97 lines (89 loc) · 2.19 KB
/
Copy pathpyproject.toml
File metadata and controls
97 lines (89 loc) · 2.19 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
93
94
95
96
97
[build-system]
requires = ["setuptools>=82.0.1"]
build-backend = "setuptools.build_meta"
[project]
name = "AugmentedQuill"
version = "0.1.0"
description = "Web GUI for LLM assisted prose writing"
readme = "README.md"
requires-python = ">=3.12"
authors = [
{name = "StableLlamaAI"},
]
dependencies = [
"fastapi>=0.135.3",
"uvicorn[standard]>=0.44.0",
"pydantic>=2.12.5",
"jinja2>=3.1",
"httpx>=0.27",
"python-multipart>=0.0.26",
"jsonschema>=4.26.0",
"EbookLib>=0.18",
"beautifulsoup4>=4.12",
"ddgs>=9.5",
"Markdown>=3.6",
"jellyfish>=0.11",
]
[project.optional-dependencies]
dev = [
"pytest>=9.0.3",
"ruff>=0.16.1,<0.17.0",
"black>=26.3.1",
"requests>=2.33.0",
"pre-commit",
]
[project.scripts]
augmentedquill = "augmentedquill.main:main"
[tool.setuptools.packages.find]
where = ["src"]
include = ["augmentedquill*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
[tool.ruff]
line-length = 88
target-version = "py312"
[tool.ruff.lint]
# Deliberate project-wide conventions (kept for maintainability):
# - BLE001/S110/S112: best-effort defensive exception handling at integration
# and parsing boundaries (optional configs, LLM output). A failure to load or
# parse optional data must never crash the local-first app, so broad catches
# are intentional. Narrowing every site would reduce robustness.
# - TRY004: the codebase consistently raises ValueError for type validation and
# callers catch ValueError; switching to TypeError would alter error behavior.
# - ASYNC230: async handlers perform small bounded local file I/O; wrapping in
# asyncio.to_thread would add complexity without real benefit for a
# single-user local app.
ignore = [
"BLE001",
"S110",
"S112",
"TRY004",
"ASYNC230",
"E501",
"S101",
"S104",
"COM812",
"ISC001",
]
per-file-ignores = {"tests/**/*" = ["S101", "ARG", "FBT", "PLR2004"]}
[tool.black]
line-length = 88
target-version = ['py312']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''