-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
148 lines (124 loc) · 3.72 KB
/
pyproject.toml
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
[tool.poetry]
name = "Github-Search-Engine"
version = "0.3.0"
description = "Search through github issues and PRs like never before."
authors = ["Sacha hu <[email protected]>"]
packages = [
{ include = "github_search_engine" }
]
readme = "README.md"
maintainers = ["Sacha hu <[email protected]>"]
repository = "https://github.com/sachahu1/Github-Search-Engine"
documentation = "https://www.sachahu.com/docs/Github-Search-Engine/latest/index.html"
[tool.poetry.dependencies]
python = ">=3.10,<3.14"
ollama = "^0.4.0"
githubkit = "^0.11.14"
qdrant-client = [
{extras = ["fastembed"], markers = "extra == 'cpu'", version = "^1.12.1", optional = true},
{extras = ["fastembed-gpu"], markers = "extra == 'gpu'", version = "^1.12.1", optional = true}
]
onnxruntime-gpu = {version = "^1.19.2", source = "onnx", optional = true}
chevron = "^0.14.0"
cleo = "^2.1.0"
python-dotenv = "^1.0.1"
fastapi = {extras = ["standard"], version = "^0.115.5", optional = true}
[tool.poetry.extras]
api = ["fastapi"]
cpu = ["qdrant-client"]
gpu = ["onnxruntime-gpu", "qdrant-client"]
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
ruff = "^0.5.5"
pre-commit = "^3.7.1"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest = "^6.2.5"
pytest-mock = "^3.14.0"
coverage = {version = "^6.4.2", extras = ["toml"]}
[tool.poetry.group.documentation]
optional = true
[tool.poetry.group.documentation.dependencies]
Sphinx = "^7.3.7"
sphinxcontrib-napoleon = "^0.7"
sphinx-rtd-theme = "^2.0.0"
myst-parser = "^3.0.1"
sphinx-copybutton = "^0.5.2"
sphinx-autoapi = "^3.2.1"
gitpython = "^3.1.43"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q --junit-xml=test_results/tests.xml"
testpaths = ["tests"]
[tool.coverage.run]
source = ["github_search_engine"]
[tool.poetry.scripts]
github_search_engine = "github_search_engine.cli:_run"
[tool.ruff]
line-length = 79
indent-width = 2
exclude = [".venv", ".env", ".git", "tests"]
[tool.ruff.lint]
# Add the `line-too-long` rule to the enforced rule set. By default, Ruff omits rules that
# overlap with the use of a formatter, like Black, but we can override this behavior by
# explicitly adding the rule.
extend-select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"ERA", # flake8-eradicate/eradicate
"I", # isort
"N", # pep8-naming
"PIE", # flake8-pie
"PGH", # pygrep
"RUF", # ruff checks
"SIM", # flake8-simplify
"T20", # flake8-print
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
]
fixable = ["ALL"]
ignore = ["SIM117"]
[tool.ruff.lint.isort]
force-single-line = true
lines-after-imports = 2
known-first-party = ["github_search_engine"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true
[[tool.poetry.source]]
name = "onnx"
url = "https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/"
priority = "supplemental"
[tool.semantic_release]
version_variables = [
"github_search_engine/__init__.py:__version__",
"docs/source/conf.py:release",
"docs/source/conf.py:html_context.current_version",
]
version_toml = [
"pyproject.toml:tool.poetry.version"
]
upload_to_pypi = false
upload_to_release = true
[tool.semantic_release.branches.main]
match = "(main|master)"
prerelease = false
[tool.semantic_release.branches.dev]
match = "dev"
prerelease = true
prerelease_token = "rc"
[tool.semantic_release.branches."feature/*"]
match = "(feature/*)"
prerelease = true
prerelease_token = "alpha"