Skip to content

Add daily Persian website report with Jalali dates - #13

Open
brunnojob wants to merge 1 commit into
mrzroot:mainfrom
brunnojob:add-daily-report-jalali
Open

brunnojob wants to merge 1 commit into
mrzroot:mainfrom
brunnojob:add-daily-report-jalali

Conversation

@brunnojob

Copy link
Copy Markdown

What does this change?

Closes #11.

Add daily-report-jalali.yaml: check a configurable website at 09:00 Asia/Tehran and send a Persian Telegram report with the Jalali date, Persian digits, HTTP status and elapsed time. HTTP error responses are reported; connection failures and timeouts fail the run. Escape the configured URL for Telegram HTML.

Document configuration and manual execution, and add two mocked end-to-end cases (HTTP 200 and 503), including a fixed Nowruz date, Tehran timezone and HTML escaping. No runtime code or dependencies change.

Validation

Python 3.12.14:

  • pytest --cov=flowpilot -q: 152 passed, 96% coverage. Proxy environment variables were unset for mocked HTTP tests.
  • mypy: passed (38 source files).
  • flowpilot -p examples validate: all 8 workflows valid.
  • Ruff lint and formatting pass for the new test; git diff --check passes.

Full-repository Ruff currently fails on pre-existing test docstrings from 89d7285 (7 E501 errors and 13 files needing a blank line). This example does not alter those files.

Checklist

  • Tests added or updated (pytest)
  • ruff check ., ruff format --check . and mypy pass (pre-existing Ruff failures noted above)
  • Docs / README / CHANGELOG updated if behaviour changed

Prepared with AI assistance; all HTTP and Telegram requests in tests are mocked.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Example: daily report with Jalali dates

1 participant