Files
receipt_maker/pyproject.toml
T
adamfandClaude Code e333d6729f Fix security, robustness, and config-drift issues
- Close printer handles (contextlib.closing) in CLI and TUI
- Whitelist 4chan image extensions + numeric tim (path traversal)
- Cap downloads at 16 MB
- clean: unlink instead of rmtree, cover legacy dir, add -y flag
- TUI: escape captured output as rich Text; propagate failure exit code
- Pass --ip/--port through to connect_receipt.sh via env
- Fix double-space textln calls
- CI matrix 3.10/3.12/3.13
- pytest pythonpath so tests run without editable install
- Print retry narrowed to OSError/escpos errors

Co-Authored-By: Claude Code <[email protected]>
2026-09-22 22:20:51 +01:00

42 lines
826 B
TOML

[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"]
pythonpath = ["."] # tests import receipt/receipt_tui without an editable install