Commit graph

14 commits

Author SHA1 Message Date
Sebastian Andersson
f44f349d8a Fix nfc2klipper_api with gunicorn and formatting 2026-02-09 09:18:56 +01:00
copilot-swe-agent[bot]
a4389df92d Add pylint disable comments for duplicate-code warnings
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-28 15:02:27 +01:00
copilot-swe-agent[bot]
2a2be64074 Keep original default config directory, only add CLI option
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-28 15:02:27 +01:00
copilot-swe-agent[bot]
f4ce7647a5 Add configurable config directory with command-line option
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-28 15:02:27 +01:00
Sebastian Andersson
d41b5f7888 Add python deps in the scripts 2025-11-10 16:19:04 +01:00
Sebastian Andersson
00df5e0c8b Fix copyright year 2025-11-06 20:30:30 +01:00
copilot-swe-agent[bot]
a7db1019f1 Extract IPC handling code to reusable lib/ipc.py module
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-06 20:30:30 +01:00
copilot-swe-agent[bot]
beb3ee2225 Refactor request handlers to use proper arguments with introspection, add mock objects, and nosec comments
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-06 20:30:30 +01:00
copilot-swe-agent[bot]
80029334d8 Fix security vulnerabilities - prevent stack trace exposure and add workflow permissions
Allow some error messages to be shown to users for better debugging

Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-06 20:30:30 +01:00
copilot-swe-agent[bot]
973c4c21bc Add mypy type checking infrastructure and fix all type errors
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-06 20:30:30 +01:00
copilot-swe-agent[bot]
b82cd035c8 Add comprehensive type annotations to all Python files
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-06 20:30:30 +01:00
copilot-swe-agent[bot]
91923229cc Make socket path configurable
Default to ~/nfc2klipper/nfc2klipper.sock

Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-06 20:30:30 +01:00
copilot-swe-agent[bot]
aeb1af8244 Fix security issue: prevent stack trace exposure in API responses
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-06 20:30:30 +01:00
copilot-swe-agent[bot]
b2146c90aa Split nfc2klipper.py into backend and API services communicating via Unix socket
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-06 20:30:30 +01:00