-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
73 lines (64 loc) · 1.56 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
[tool.poetry]
name = "GEP"
version = "2024.05"
description = "GDB Enhanced Prompt"
authors = ["Alan Li <[email protected]>"]
readme = "README.md"
packages = [
{ include = "gdbinit-gep.py" },
]
[tool.poetry.dependencies]
python = "^3.8"
prompt-toolkit = "3.0.46"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
ruff = "^0.4.4"
mypy = "^1.10.0"
types-gdb = "^12.1.4.20240408"
vermin = "^1.6.0"
pytest = "8.2.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 100
target-version = "py38"
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"E", # pycodestyle
"F", # pyflakes
"W", # pycodestyle
"C4", # flake8-comprehensions
"I", # isort
"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
"UP" # pyupgrade
]
ignore = [
"E402", # Module level import not at top of file
"E501" # Line too long
]
[tool.ruff.lint.isort]
known-third-party = ["gdb", "prompt_toolkit"]
force-single-line = true
[tool.mypy]
files = ["gdbinit-gep.py", "example/geprc.py"]
strict_optional = false
check_untyped_defs = true
allow_redefinition = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
show_error_context = true
pretty = true
show_error_codes = true
disable_error_code = [
# https://github.com/python/mypy/issues/6232
"assignment"
]