-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
58 lines (48 loc) · 1.61 KB
/
Copy pathpyproject.toml
File metadata and controls
58 lines (48 loc) · 1.61 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
[project]
name = "objdump-gui"
version = "1.0.0"
description = "A professional PySide6 front-end for GNU binutils objdump"
readme = "README.md"
requires-python = ">=3.10"
dependencies = ["PySide6>=6.5"]
[project.scripts]
objdump-gui = "objdump_gui.app:main"
[project.optional-dependencies]
dev = ["pytest>=7", "ruff>=0.5", "mypy>=1.8", "bandit[toml]>=1.7"]
[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["objdump_gui*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q"
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B"]
# B008: Qt defaults like QModelIndex() in signatures are intentional.
ignore = ["B008"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["E501"]
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = true # PySide6 ships partial stubs
warn_unused_ignores = false
check_untyped_defs = false
# PySide6's stubs use scoped enums (Qt.DockWidgetArea.X) while the runtime also
# accepts the short form (Qt.X), producing many false attr-defined errors. Type
# checking therefore targets the pure-logic modules (see the `files` list), which
# carry the real correctness risk; the Qt view layer is covered by the tests.
files = [
"objdump_gui/options.py",
"objdump_gui/parsers.py",
"objdump_gui/prettyprint.py",
"objdump_gui/introspect.py",
]
[tool.bandit]
# B101: asserts are how pytest works; B404/B603: we invoke objdump as a list
# argv with no shell, which is the safe pattern.
skips = ["B101", "B404", "B603"]
exclude_dirs = ["tests"]