-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpyproject.toml
70 lines (63 loc) · 1.49 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
[project]
name = "GEP"
version = "2025.01.10"
description = "GDB Enhanced Prompt"
readme = "README.md"
authors = [
{name = "Alan Li", email = "[email protected]"},
]
requires-python = "<4.0,>=3.8"
dependencies = [
"prompt-toolkit==3.0.46",
]
[dependency-groups]
dev = [
"ruff<1.0.0,>=0.4.4",
"mypy<2.0.0,>=1.10.0",
"types-gdb<13.0.0.0,>=12.1.4.20240408",
"vermin<2.0.0,>=1.6.0",
"pytest==8.2.0",
]
[tool.uv]
default-groups = []
[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"
]