-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
127 lines (111 loc) · 3.58 KB
/
pyproject.toml
File metadata and controls
127 lines (111 loc) · 3.58 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# pyproject.toml
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "codebrief"
version = "1.1.0"
description = "A CLI toolkit to generate comprehensive project context for LLMs."
authors = ["Shourya Maheshwari <shorz2905@gmail.com>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/Shorzinator/CodeBrief"
repository = "https://github.com/Shorzinator/CodeBrief"
documentation = "https://shorzinator.github.io/CodeBrief/"
keywords = ["llm", "cli", "context", "toolkit", "documentation"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Documentation",
"Topic :: Utilities"
]
packages = [{include = "codebrief", from = "src"}]
[tool.poetry.dependencies]
python = ">=3.9,<4.0"
typer = ">=0.15.0,<1.0.0"
rich = "^13.0.0"
pathspec = "^0.12.1"
toml = "^0.10.2"
pyperclip = "^1.9.0"
tomli = {version = "^2.0.0", python = "<3.11"}
[tool.poetry.group.dev.dependencies]
ruff = "^0.1.0"
mypy = "^1.0.0"
pytest = "^7.0.0"
bandit = "^1.7.0"
pytest-cov = "^4.0.0"
pre-commit = "^4.2.0"
pytest-snapshot = "^0.9.0"
types-toml = "^0.10.8.20240310"
twine = "^6.1.0"
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.6.1"
mkdocs-material = "^9.6.14"
mkdocstrings = "^0.29.1"
mkdocstrings-python = "^1.16.12"
mike = "^2.1.3"
mkdocs-minify-plugin = "^0.8.0"
mkdocs-git-revision-date-localized-plugin = "^1.2.9"
[tool.ruff]
line-length = 88
target-version = "py311"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.ruff.lint]
select = ["E", "W", "F", "I", "B", "C4", "N", "S"]
ignore = [
"E501",
"B008",
"B904",
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "S603", "S607"]
"src/codebrief/tools/git_provider.py" = ["S603", "S607"]
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
strict = true
exclude = ["tests/"]
mypy_path = "src"
packages = ["codebrief"]
namespace_packages = true
explicit_package_bases = true
# Configuration for Pytest (optional, many things are auto-discovered)
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q --cov=src/codebrief --cov-report=term-missing --cov-report=xml" # Ensure xml for CI later
testpaths = [
"tests",
]
# Configuration for Coverage
[tool.coverage.run]
source = ["src/codebrief"] # Directory where your source code lives
branch = true
[tool.coverage.report]
# fail_under = 80 # Example: Fail CI if coverage drops below 80%
show_missing = true
[tool.bandit]
# Example: Exclude certain tests if they are too noisy or not applicable.
# Refer to Bandit documentation for available test IDs:
# https://bandit.readthedocs.io/en/latest/plugins/index.html
skips = ["B101"] # Skip assert_used since we use asserts in tests
exclude_dirs = ["tests"]
# tests = [] # To run only specific tests
# Example: Set confidence level to MEDIUM or HIGH to reduce noise from LOW findings.
# severity = ["MEDIUM", "HIGH"]
# confidence = ["MEDIUM", "HIGH"]
# For now, let's start with a simple config.
# You can specify which directories to scan or exclude here as well.
# By default, it scans all Python files in the repo.
# We'll let pre-commit pass files, but this section is good for global config.
# exclude_dirs = ["tests", "docs"] # If you want to exclude directories globally
# Add a script entry point for your CLI
[tool.poetry.scripts]
codebrief = "codebrief.main:app"