aserper
16318f89cf
Fix linting errors: Remove unused imports and reformat with black
2025-12-13 23:20:03 -05:00
aserper
594b0be317
Modernize codebase: Use pathlib, logging, dataclasses, and update dependencies
2025-12-13 23:15:22 -05:00
aserper
37da450194
style: fix code formatting with black
2025-12-13 00:30:14 -05:00
aserper
9439b6c8fb
feat: add support for multiple RSS feeds
2025-12-13 00:27:36 -05:00
aserper
8703e30957
Fix flake8 F541 error - remove unnecessary f-string
2025-12-13 00:00:03 -05:00
aserper
961a6975ac
Fix container logging visibility
...
Changes:
- Add -u flag to Python in Dockerfile to disable output buffering
- Add startup messages in main.py showing bot configuration
- Logs now appear immediately in kubectl logs output
This fixes the issue where no logs were visible when running
in Kubernetes pods due to Python's default stdout buffering.
2025-12-12 23:59:03 -05:00
aserper
abfdeb4b9c
Fix test failures and code quality issues
...
- Fix XML parsing in integration tests using textwrap.dedent
- Fix Docker build test by adding load:true to buildx action
- Apply black formatting to all Python files
- All tests should now pass successfully
2025-12-12 23:34:10 -05:00
aserper
f2056b90f2
Add comprehensive test suite with GitHub Actions CI/CD
...
- Refactor code into testable bot.py module with MastodonRSSBot class
- Create 20+ unit tests covering core functionality and edge cases
- Create 10+ integration tests for RSS parsing and Mastodon posting
- Add GitHub Actions workflow for automated testing
- Unit tests on Python 3.10, 3.11, 3.12
- Integration tests with mocked external services
- Code quality checks (flake8, black, mypy)
- Docker build validation
- Configure pytest with 80% minimum coverage requirement
- Add test dependencies in requirements-test.txt
- Update .gitignore to exclude test artifacts
- Add comprehensive TESTING.md documentation
- Add test status badge to README
- Maintain full backward compatibility with existing setup
2025-12-12 23:30:38 -05:00
Amit Serper
a32c437066
Added toot visibility environment variable
2024-01-02 12:56:29 -05:00
Amit Serper
96414a8d46
Added toot visibility environment variable
2024-01-02 12:55:11 -05:00
Amit Serper
420dfc1f72
Update main.py - removed unlisted
2024-01-01 13:36:22 -05:00
Amit Serper
aa4463abb2
File is now saved persistenetly
2023-12-05 15:21:42 -05:00
Amit Serper
21e39117eb
Visibility of post set to unlisted to prevent spam of the local feed
2023-12-05 07:36:44 -05:00
Amit Serper
4411afb64c
casting
2023-12-04 21:18:35 -05:00
Amit Serper
6eda268557
changed post text
2023-12-04 21:07:16 -05:00
Amit Serper
d7a71f9a30
import time
2023-12-04 21:03:13 -05:00
Amit Serper
7ab5401c97
initial commit
2023-12-04 20:51:18 -05:00