-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
146 lines (127 loc) · 3.05 KB
/
pyproject.toml
File metadata and controls
146 lines (127 loc) · 3.05 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
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
[build-system]
requires = ["setuptools>=64.0", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "sdb-debugger"
description = "The Slick/Simple Debugger"
readme = "README.md"
license = "Apache-2.0"
authors = [
{ name = "Serapheim Dimitropoulos", email = "serapheimd@gmail.com" }
]
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Debuggers",
"Topic :: System :: Operating System Kernels :: Linux",
]
dependencies = [
"drgn",
"kdumpling>=0.2.0",
"pyelftools>=0.29",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/sdimitro/sdb"
Repository = "https://github.com/sdimitro/sdb"
Issues = "https://github.com/sdimitro/sdb/issues"
[project.scripts]
sdb = "sdb.internal.cli:main"
[project.optional-dependencies]
dev = [
"pylint",
"pytest",
"pytest-cov",
"mypy",
"yapf",
"ruff",
]
# Setuptools configuration
[tool.setuptools]
packages = [
"sdb",
"sdb.commands",
"sdb.commands.internal",
"sdb.commands.linux",
"sdb.commands.linux.internal",
"sdb.commands.spl",
"sdb.commands.spl.internal",
"sdb.commands.zfs",
"sdb.commands.zfs.internal",
"sdb.internal",
]
# Setuptools SCM for version management from git tags
[tool.setuptools_scm]
write_to = "sdb/_version.py"
version_scheme = "guess-next-dev"
local_scheme = "no-local-version"
# Ruff configuration
# https://docs.astral.sh/ruff/
[tool.ruff]
extend-exclude = [
".git",
"__pycache__",
"build",
"dist",
"*.egg-info",
]
target-version = "py310"
line-length = 88
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
]
ignore = [
"E501", # line too long (handled by yapf)
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
# Mypy configuration
[tool.mypy]
python_version = "3.10"
strict = true
show_error_codes = true
[[tool.mypy.overrides]]
module = "tests.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "drgn.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "kdumpling.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "elftools.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "sdb._version"
ignore_missing_imports = true
# Pytest configuration
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = "-v"
# Coverage configuration
[tool.coverage.run]
source = ["sdb"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]