Refactor API into modular package with metrics and tests #1

Merged
quentinreytinas merged 2 commits from codex/review-project into main 2025-10-10 15:53:00 +02:00
quentinreytinas commented 2025-10-10 15:50:53 +02:00 (Migrated from github.com)

Summary

  • replace the monolithic script with a Flask application factory that wires services and routes from a dedicated borgmatic_api_app package
  • enforce mandatory API tokens, improve the in-memory rate limiter, and expose a /metrics endpoint with basic counters
  • add pytest-based coverage (with offline skips), development requirements, and a CI workflow for linting plus tests
  • refresh the README and compose example with socket-proxy guidance and updated usage notes

Testing

  • black --check .
  • ruff check .
  • pytest

https://chatgpt.com/codex/tasks/task_e_68e9063e99208332847bd1d59629612f

## Summary - replace the monolithic script with a Flask application factory that wires services and routes from a dedicated `borgmatic_api_app` package - enforce mandatory API tokens, improve the in-memory rate limiter, and expose a `/metrics` endpoint with basic counters - add pytest-based coverage (with offline skips), development requirements, and a CI workflow for linting plus tests - refresh the README and compose example with socket-proxy guidance and updated usage notes ## Testing - `black --check .` - `ruff check .` - `pytest` ------ https://chatgpt.com/codex/tasks/task_e_68e9063e99208332847bd1d59629612f
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
quentinreytinas/borgmatic-api-nextcloud-aio!1
No description provided.