forked from patched-codes/patchwork
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (67 loc) · 1.52 KB
/
pyproject.toml
File metadata and controls
77 lines (67 loc) · 1.52 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
[tool.poetry]
name = "patchwork-cli"
version = "0.0.3"
description = ""
authors = ["patched.code"]
license = "AGPL"
readme = "README.md"
packages = [
{ include = "patchwork", from = "." }
]
[tool.poetry.dependencies]
python = "^3.10"
click = "~8.1.0"
pygithub = "~2.1.1"
gitpython = "~3.1.40"
semgrep = "^1.51.0"
pydantic = "^2.6.4"
openai = "^1.13.3"
tree-sitter-languages = "^1.10.2"
tiktoken = "^0.6.0"
libcst = "~1.2.0"
python-gitlab = "^4.4.0"
owasp-depscan = "^5.2.12"
patched-code2prompt = "0.2.0"
pyyaml = "^6.0.1"
packageurl-python = "~0.15.0"
semver = "~3.0.2"
requests = "~2.31.0"
chardet = "^5.2.0"
# pinning transitive dependencies
orjson = "~3.9.15"
[tool.poetry.group.dev.dependencies]
setuptools = "*"
poethepoet = { version = "^0.24.2", 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"
[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"
[tool.poe.tasks]
#mypy = "mypy ${PROJ_PATH}"
lint = [
{cmd = "autoflake --recursive ${PROJ_PATH}"},
{cmd = "isort ${PROJ_PATH}"},
{cmd = "black ${PROJ_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