forked from pwndbg/pwndbg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
204 lines (185 loc) · 4.74 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
[tool.ruff]
line-length = 100
[tool.ruff.lint]
ignore = [
"A003",
"E402",
"E501",
"E731",
"F405",
"F821",
"W505",
]
select = [
"A", # flake8-builtins
"E", # pycodestyle
"F", # pyflakes
"W", # pycodestyle
"C4", # flake8-comprehensions
"ISC", # flake8-implicit-str-concat
"SLOT", # flake8-slots
"FLY", # flynt
"PGH", # pygrep-hooks
"RET506", # flake8-return: superfluous-else-raise
"RET507", # flake8-return: superfluous-else-continue
"RET508", # flake8-return: superfluous-else-break
# We want to enable the below lints, but they currently return too many errors
# "RET505", # flake8-return: superfluous-else-return
# "SLF" # flake8-self
# "SIM", # flake8-simplify
# "PTH", # flake8-use-pathlib
]
[tool.ruff.lint.flake8-builtins]
builtins-ignorelist = [
"all",
"bin",
"breakpoint",
"copyright",
"dir",
"exit",
"format",
"hex",
"map",
"max",
"min",
"next",
"type",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
[tool.mypy]
strict_optional = false
check_untyped_defs = true
allow_untyped_globals = false
allow_redefinition = true
allow_any_generics = false
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
# warn_return_any = true
# warn_unreachable = true
show_error_context = true
pretty = true
show_error_codes = true
incremental = false
disable_error_code = [
# https://github.com/python/mypy/issues/6232
"assignment"
]
[[tool.mypy.overrides]]
module = [
"pwndbg.disasm.*",
"pwndbg.gdblib.elf",
]
disable_error_code = ["name-defined"]
[[tool.mypy.overrides]]
module = [
"pwndbg.color.*",
"pwndbg.commands.context",
"pwndbg.commands.cymbol",
"pwndbg.commands.hexdump",
"pwndbg.commands.procinfo",
"pwndbg.commands.reload",
"pwndbg.commands.telescope",
"pwndbg.commands.version",
"pwndbg.exception",
"pwndbg.disasm.jump",
"pwndbg.gdblib.dt",
"pwndbg.gdblib.dynamic",
"pwndbg.gdblib.events",
"pwndbg.gdblib.got",
"pwndbg.gdblib.heap_tracking",
"pwndbg.gdblib.stack",
"pwndbg.heap.*",
"pwndbg.hexdump",
"pwndbg.ui",
"pwndbg.wrappers.*",
]
disable_error_code = ["attr-defined"]
[[tool.mypy.overrides]]
module = [
"pwndbg.gdblib.nearpc",
"pwndbg.gdblib.typeinfo",
]
disable_error_code = ["name-defined", "attr-defined"]
[[tool.mypy.overrides]]
module = ["capstone.*", "unicorn.*", "pwnlib.*", "elftools.*", "ipdb.*", "r2pipe", "rzpipe", "rich.*", "pt_gdb"]
ignore_missing_imports = true
[tool.isort]
profile = "black"
force_single_line = true
known_third_party = ["capstone", "unicorn", "psutil", "pycparser", "gdb"]
add_imports = "from __future__ import annotations"
[tool.coverage.run]
branch = true
parallel = true
disable_warnings = ["module-not-imported"]
source = ["${SRC_DIR-.}"]
omit = ["ida_script.py"]
data_file = ".cov/coverage"
[tool.coverage.report]
omit = ["ida_script.py", "tests/*"]
[tool.poetry]
name = "pwndbg"
description = "Exploit Development and Reverse Engineering with GDB Made Easy"
version = "2024.02.14"
authors = ["Dominik 'disconnect3d' Czarnota <[email protected]>"]
readme = "README.md"
packages = [
{ include = "pwndbg" },
]
[tool.poetry.dependencies]
python = "^3.8"
# Newer versions of capstone break tests
capstone = "5.0.0.post1"
# This is the last version of IPython that supports Python 3.8
ipython = "8.12.3"
# Needed by Capstone due to https://github.com/pwndbg/pwndbg/pull/1946#issuecomment-1921603947
setuptools = "^69.5.1"
psutil = "^5.9.8"
pwntools = "^4.12.0"
pycparser = "^2.22"
pyelftools = "^0.29"
pygments = "^2.17.2"
ropgadget = "7.3"
sortedcontainers = "^2.4.0"
tabulate = "^0.9.0"
typing-extensions = "^4.11.0"
unicorn = "^2.0.1.post1"
requests = "^2.32.0"
pt = {git = "https://github.com/martinradev/gdb-pt-dump", rev = "50227bda0b6332e94027f811a15879588de6d5cb"}
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
coverage = {version = "^7.5.0", extras = ["toml"]}
isort = "^5.13.2"
mypy = "^1.10.0"
# Newer versions of pytest break CI on GitHub
pytest = "8.0.2"
pytest-cov = "^4.1.0"
rich = "^13.7.1"
ruff = "^0.4.1"
sortedcontainers-stubs = "^2.4.2"
testresources = "^2.0.1"
tomli = "^2.0.1"
types-gdb = "^12.1.4.20240408"
types-psutil = "^5.9.5.20240423"
types-pygments = "^2.17.0.20240310"
types-requests = "^2.31.0.20240406"
types-tabulate = "^0.9.0.20240106"
vermin = "^1.6.0"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
mdutils = "*"
mkdocs = "*"
mkdocs-gen-files = "*"
mkdocs-material = "*"
mkdocs-minify-plugin = "*"
mkdocs-rss-plugin = "*"
mkdocstrings = "*"
mkdocstrings-python = "*"
pymdown-extensions = "*"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"