forked from ChrisTimperley/RepairChain
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
118 lines (109 loc) · 4.15 KB
/
pyproject.toml
File metadata and controls
118 lines (109 loc) · 4.15 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
[tool.poetry]
name = "repairchain"
version = "0.2.1"
description = "automated vulnerability repair via LLMs, search, and static analysis"
authors = [
"Chris Timperley <ctimperley@cmu.edu>",
"Ruben Martins <rubenm@cs.cmu.edu>",
"Claire Le Goues <clegoues@cs.cmu.edu>"
]
license = "Apache-2.0"
repository = "https://github.com/ChrisTimperley/RepairChain"
readme = "README.md"
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
]
[tool.poetry.scripts]
repairchain = 'repairchain.cli:cli'
[tool.poetry.dependencies]
python = ">=3.11,<3.13"
# darjeeling = { path = "./extern/darjeeling", develop = true }
dockerblade = { path = "./extern/dockerblade", develop = true }
kaskara = { path = "./extern/kaskara", develop = true }
sourcelocation = { path = "./extern/sourcelocation", develop = true }
pydantic = "^2.7.3"
loguru = "^0.7.2"
gitpython = "^3.1.43"
click = "^8.1.7"
openai = "^1.35.5"
tiktoken = "^0.7.0"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
mypy = ">=1.10.0"
pytest = "^7.4.3"
python = "^3.11"
ruff = ">=0.4.4"
pyinstaller = "^6.8.0"
litellm = {extras = ["proxy"], version = "^1.40.29"}
pytest-xdist = "^3.6.1"
[tool.mypy]
ignore_missing_imports = false
strict = true
implicit_reexport = true
[tool.ruff]
line-length = 120
indent-width = 4
target-version = "py312"
src = ["src"]
[tool.ruff.format]
docstring-code-line-length = 200
quote-style = "double"
[tool.ruff.lint]
select = [
"E271",
"ALL", # includes all rules (including new ones)
]
extend-ignore = [
"ARG003", # unused class method argument
"TRY300", # consider moving this statement to an 'else' block
"PLR6301", # no-self-use
"S404", # `subprocess` module is possibly insecure
"S603", # `subprocess` call: check for execution of untrusted input
"PLR6301", # no-self-use
"ERA001", # commented-out code
"CPY001", # missing copyright notice at top of file
"ANN101", # missing type annotation for 'self' in method
"ANN102", # missing type annotation for 'cls' in classmethod
"B024", # use of abstract base class without abstract methods
"D100", # missing docstring in public module
"D101", # missing docstring in public class
"D102", # missing docstring in public method
"D103", # missing docstring in public function
"D104", # missing docstring in public package
"D105", # missing docstring in magic method
"D203", # one-blank-line-before-class
"D213", # multi-line-summary-second-line
"D401", # first line of docstring should be in imperative mood
"D413", # missing blank line after last section
"FIX001", # unresolved FIXME
"FIX002", # TODO found
"TD001", # invalid TODO tag: `FIXME`
"TD002", # missing author in TODO
"TD003", # missing issue link on line following TODO
"TD004", # missing colon in TODO
"TRY003", # avoid specifying long messages outside the exception class
"S101", # use of assertions
"SLF001", # private member accessed
"T201", # use of print
"D204", # 1 blank line required after class docstring
"C901", # function is too complex (cyclomatic complexity)
"PLR0912", # too many branches
"PGH003", # use specific rule codes when ignoring type issues
"FBT001", # boolean typed positional argument in function definition
"ARG001", # unused function argument
"PLR0913", # too many arguments in function definition
"PLR0911", # too many return statements
"PTH118", # `os.path.join()` should be replaced by `Path` with `/` operator
"S604", # function call with `shell=True` parameter identified, security issue
"S602", # subprocess call with shell=True identified, security issue
"D107", # missing docstring in `__init__`
"N818", # exception name should be named with an Error suffix
"PTH117", # `os.path.isabs()` should be replaced by `Path.is_absolute()`
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"