meta: revise project structure; pin deps

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I2133dbb2ae6c7bd27cd94638d61af2686a6a6964
This commit is contained in:
raf 2026-04-07 12:30:57 +03:00
commit 4d205723f6
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
9 changed files with 390 additions and 150 deletions

View file

@ -2,12 +2,31 @@
name = "flipoff"
version = "0.1.0"
description = "Begone, clanker"
readme = "README.md"
requires-python = ">=3.11"
dependencies = ["mediapipe", "opencv-contrib-python", "dbus-next", "numpy"]
dependencies = [
"mediapipe>=0.10.33",
"opencv-contrib-python>=4.13.0",
"dbus-next>=0.2.3",
"numpy>=2.4.4",
]
[project.optional-dependencies]
dev = ["black>=26.3.1", "isort>=8.0.1", "mypy>=1.20.0"]
[project.scripts]
flipoff = "flipoff.cli:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = ["black>=26.3.1", "isort>=8.0.1", "mypy>=1.20.0"]
[tool.hatch.build.targets.wheel]
packages = ["src/flipoff"]
[tool.black]
line-length = 100
target-version = ["py311"]
@ -17,7 +36,6 @@ force_single_line = true
force_sort_within_sections = true
known_first_party = []
known_third_party = ["cv2", "dbus_next", "mediapipe"]
lines_after_imports = 2
profile = "black"
[tool.mypy]
@ -33,11 +51,6 @@ no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
show_error_codes = true
[tool.basedpyright]
typeCheckingMode = "off"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
typeCheckingMode = "off" # too overzealous