Add tests, TUI, packaging, and CI
CI / test (push) Failing after 6m11s

- receipt_tui.py: Textual terminal UI (tui subcommand), optional [tui] extra
- tests/: pytest suite for CLI and TUI using fakes; no hardware needed
- pyproject.toml: packaging with dev/tui extras, ruff config
- GitHub Actions CI running ruff and pytest
- Rename connect_recipt.sh -> connect_receipt.sh
- CLAUDE.md project instructions; README updates

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
2026-08-11 19:53:18 +01:00
co-authored by Claude Fable 5
parent 5fdbcb7468
commit 71686e8ad4
11 changed files with 1114 additions and 158 deletions
+40
View File
@@ -0,0 +1,40 @@
[project]
name = "receipt-maker"
version = "1.0.0"
description = "Print images and text notes to an Epson TM-T20II thermal receipt printer"
requires-python = ">=3.10"
dependencies = [
"python-escpos>=3.0",
"Pillow>=10.0",
"requests>=2.31",
]
[project.optional-dependencies]
tui = [
"textual>=1.0",
]
dev = [
"pytest>=8.0",
"ruff>=0.4",
"textual>=1.0",
]
[project.scripts]
receipt = "receipt:main"
[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
py-modules = ["receipt", "receipt_tui"]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "SIM"]
[tool.pytest.ini_options]
testpaths = ["tests"]