-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
113 lines (99 loc) · 2.35 KB
/
pyproject.toml
File metadata and controls
113 lines (99 loc) · 2.35 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "codestory-cli"
version = "0.0.1"
description = "Every project should have a good story behind it. With a good story (git history), you can reason about changes in a way that would be impossible just looking at a codebase. But let us do the work in creating that story"
authors = [
{ name = "Adem Can", email = "ademfcan@gmail.com" }
]
readme = "README.md"
license = "GPL-2.0-only"
license-files = ["LICENSE.txt"]
requires-python = ">=3.11"
dependencies = [
"typer-slim==0.20.0",
"colorama==0.4.6",
"loguru==0.7.3",
"tree-sitter==0.25.2",
"tree-sitter-language-pack==0.13.0",
"platformdirs==4.5.0",
"tqdm==4.67.1",
"fastembed>=0.7.4",
"scikit-learn<1.9.0,>=1.8.0",
"networkx<4.0,>=3.0",
"python-dotenv>=1.2.1",
"aisuite-extendedmodels[anthropic,aws,azure,cerebras,cohere,deepseek,googlegenai,groq,huggingface,mistral,ollama,openai,watsonx,mcp]>=0.1.15"
]
[project.scripts]
cst = "codestory.cli:run_app"
[tool.setuptools.packages.find]
where = ["src"]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"ruff",
"mypy",
"mkdocs",
"mkdocs-material",
"mkdocs-typer2"
]
[tool.setuptools.package-data]
codestory = ["resources/**"]
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
show_error_codes = true
pretty = true
[[tool.mypy.overrides]]
module = [
"tree_sitter.*",
]
ignore_missing_imports = true
[tool.ruff]
line-length = 88
target-version = "py311"
src = ["src"]
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
# pycodestyle warnings
"W",
# flake8-comprehensions
"C4",
# Enforce absolute imports
"I001",
]
ignore = [
"B904", # force raise from ...
"E501", # line too long
"B008", # function call in argument defaults (typer)
]
[tool.ruff.lint.isort]
known-local-folder = ["codestory"]
[tool.pytest.ini_options]
pythonpath = ["src"]