Skip to content

docs: honest README test output + correct OPENAI_MODEL default#1

Merged
royavrahami merged 2 commits into
mainfrom
fix/readme-test-honesty
Jun 1, 2026
Merged

docs: honest README test output + correct OPENAI_MODEL default#1
royavrahami merged 2 commits into
mainfrom
fix/readme-test-honesty

Conversation

@royavrahami

Copy link
Copy Markdown
Owner

Summary

P1 (credibility) fix from a deep-review pass: the README contained fabricated test evidence and a wrong default in the config table.

Changes

📝 docs — honest "Example Test Output"

The block claimed 44 passed / 85% coverage and listed test files that don't exist (test_article_repository.py, test_agent/test_trend_analyzer.py, test_notifications/test_notifier.py). Replaced with real pytest output: 52 passed / 29% coverage and the actual file list, plus an honest note on coverage scope.

⚙️ docs — correct OPENAI_MODEL default

Config table listed gpt-4o, but settings.py and .env.example both default to gpt-4o-mini (the cost-efficient default actually used by the scheduled run). Fixed the table to gpt-4o-mini.

Verification

52 passed in 2.63s
coverage: 29%

Docs-only change; no source or test behaviour modified.

Out of scope (tracked separately)

CI test/lint gate, broader coverage, notifier.py decomposition.

🤖 Generated with Claude Code

royavrahami and others added 2 commits June 1, 2026 09:59
The README "Example Test Output" claimed 44 passing tests, 85% coverage,
and listed test files that do not exist (test_article_repository.py,
test_agent/test_trend_analyzer.py, test_notifications/test_notifier.py).
Replace it with real pytest output: 52 passed, 29% coverage, and the
actual test-file list, plus an honest note on coverage scope.

Also fix the OPENAI_MODEL default in the config table (was gpt-4o) to
match settings.py and .env.example (gpt-4o-mini).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- Add .github/workflows/quality.yml running ruff + pytest (hard gates)
  and mypy (non-blocking) on every push/PR, so the build status reflects
  real lint/test results instead of only that the agent ran.
- Fix all ruff findings: remove unused imports (pathlib.Path, urljoin,
  models.Article) and move a module constant below the imports in
  trend_analyzer.py (E402).

Verified locally: ruff clean, 52 tests pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@royavrahami

Copy link
Copy Markdown
Owner Author

Follow-up commit — CI + lint (P2)

Added on top of the README fix:

  • New Quality Gate workflow (.github/workflows/quality.yml) — runs ruff + pytest (hard gates) and mypy (non-blocking) on every push/PR. It is green on this PR ✅, so the badge now reflects real lint/test status rather than only that the scheduled agent ran.
  • Cleared all ruff findings: removed unused imports (pathlib.Path, urljoin, models.Article) and moved a module constant below the imports in trend_analyzer.py (E402).

Verified locally and in CI: ruff clean, 52 tests pass.

@royavrahami royavrahami merged commit 8ed7b97 into main Jun 1, 2026
1 check passed
@royavrahami royavrahami deleted the fix/readme-test-honesty branch June 1, 2026 08:50
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.

1 participant