-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
56 lines (48 loc) · 1.81 KB
/
Copy pathpyproject.toml
File metadata and controls
56 lines (48 loc) · 1.81 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
[project]
name = "smeg-plus-patches"
version = "0.2.0"
description = "Reverse-engineering notes and tooling for PSA/Stellantis SMEG+ head units"
readme = "README.md"
requires-python = ">=3.10"
license = { text = "MIT" }
dependencies = []
[project.urls]
Homepage = "https://smeg.kroper.uk/"
Repository = "https://github.com/KRoperUK/smeg-plus-patches"
[project.optional-dependencies]
# the GUI needs Qt; the CLI tools need nothing beyond the standard library
gui = ["PySide6>=6.6"]
dev = ["pytest>=8", "ruff>=0.16", "unicorn>=2.0", "capstone>=5.0"]
[project.scripts]
smeg-ringtones = "tools.ringtones:main"
smeg-assets = "tools.assets:main"
smeg-patch = "tools.patch_smeg:main"
smeg-build = "tools.build_package:main"
smeg-preflight = "tools.preflight:main"
smeg-patch-media = "tools.patch_media:main"
smeg-splash = "tools.splash:main"
smeg-studio = "tools.patch_studio:main"
smeg-emu = "tools.ppcemu:main"
smeg-syms = "tools.elfsyms:main"
[tool.bandit]
# Run from the pre-push hook. The tools read and write files the user points them at and
# shell out to ffmpeg and to each other, which is the job, not a finding.
skips = [
"B404", # importing subprocess — build_package.py orchestrates the other tools
"B603", # subprocess without shell=True, which is the safe form
"B607", # partial executable path: `ffmpeg`, resolved from PATH deliberately
]
exclude_dirs = ["tests", ".venv", "site"]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
# errors + pyflakes: real problems, not a style war.
# SIM115 too: a file left open is the defect CodeQL keeps finding here. The seven
# remaining hits carry a `# noqa` saying why they are not leaks.
select = ["E9", "F", "SIM115"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["tools"]