-
Notifications
You must be signed in to change notification settings - Fork 71
/
pyproject.toml
136 lines (122 loc) · 3.43 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
[tool.poetry]
name = "patchwork-cli"
version = "0.0.76"
description = ""
authors = ["patched.codes"]
license = "AGPL"
readme = "README.md"
packages = [
{ include = "patchwork", from = "." }
]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
"Topic :: Utilities"
]
[tool.poetry.dependencies]
python = "^3.9"
typing-extensions = "^4.11.0"
click = "~8.1.0"
openai = "^1.46.1"
tree-sitter-languages = "~1.10.2"
python-gitlab = "^4.4.0"
pygithub = "~2.1.1"
gitpython = "~3.1.40"
pydantic = "~2.8.2"
libcst = "~1.1.0"
patched-code2prompt = "~0.9.0.dev1"
pyyaml = "^6.0.1"
packageurl-python = "~0.15.0"
semver = "~3.0.2"
requests = "~2.31.0"
chardet = "~5.2.0"
attrs = "~23.2.0"
google-generativeai = "~0.8.1"
anthropic = "~0.34.2"
rich = "~13.7.1"
chevron = "~0.14.0"
giturlparse = "~0.12.0"
scikit-learn = "^1.3.2"
# pinning transitive dependencies
tree-sitter = "~0.21.3"
numpy = [
{ version = "^1.26", python = "^3.12", optional = true},
{ version = "^1.24", python = "^3.9, <=3.11", optional = true}
]
pandas = [
{ version = "^2.1.4", python = "^3.12", optional = true},
{ version = "^2.0.3", python = "3.9, <=3.11", optional = true}
]
scipy = [
{ version = "^1.7.3", python = "^3.12", optional = true},
{ version = "^1.6.1", python = "3.9, <=3.11", optional = true}
]
# extras
# security
semgrep = {version = "^1.51.0", optional = true}
owasp-depscan = {version = "5.2.15", optional = true }
# rag
chromadb = {version = "~0.4.24", optional = true }
sentence-transformers = {version = "~2.7.0", optional = true }
# pinning transitive dependencies
torch = {version = "~2.4.1", optional = true }
orjson = {version = "~3.9.15", optional = true }
# notifications
slack-sdk = {version = "~3.28.0", optional = true }
[tool.poetry.extras]
security = ["semgrep", "owasp-depscan"]
rag = ["chromadb", "sentence-transformers", "torch", "orjson"]
notifications = ["slack-sdk"]
all = [
"semgrep", "owasp-depscan",
"chromadb", "sentence-transformers", "torch", "orjson",
"slack-sdk",
]
[tool.poetry.group.dev.dependencies]
setuptools = "*"
poethepoet = { version = "^0.27.0", extras = ["poetry-plugin"] }
mypy = "^1.7.1"
types-requests = "~2.31.0"
black = "^23.12.0"
isort = "^5.13.2"
autoflake = "^2.3.1"
pytest = "^8.1.1"
pytest-mock = "^3.8.0"
pytest-localserver = "^0.8.1"
datasets = "^1.14.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
patchwork = 'patchwork.app:cli'
[tool.poe.poetry_hooks]
#pre_build = "mypy"
post_update = "lint"
[tool.poe.env]
PROJ_PATH.default = "patchwork"
TEST_PATH.default = "tests"
[tool.poe.tasks]
#mypy = "mypy ${PROJ_PATH}"
lint = [
{cmd = "autoflake --recursive ${PROJ_PATH} ${TEST_PATH}"},
{cmd = "isort ${PROJ_PATH} ${TEST_PATH}"},
{cmd = "black ${PROJ_PATH} ${TEST_PATH}"}
]
[tool.black]
target-version = ['py310']
line-length = 120
[tool.isort]
profile = "black"
[tool.autoflake]
in-place = true
remove-all-unused-imports = true
expand-star-imports = true
ignore-init-module-imports = true