automate app-summary article and name-repeat quality checks#6507
Draft
razzeee wants to merge 4 commits intoflathub-infra:mainfrom
Draft
automate app-summary article and name-repeat quality checks#6507razzeee wants to merge 4 commits intoflathub-infra:mainfrom
razzeee wants to merge 4 commits intoflathub-infra:mainfrom
Conversation
Mark app-summary-dont-start-with-an-article and app-summary-dont-repeat-app-name as read_only in the DB and evaluate them automatically in the update_quality_moderation worker. Check logic lives in a new dependency-free module (app/quality_moderation_checks.py) so it can be unit-tested without requiring a broker or database. A new unittests job in backend_ci.yml runs all unit tests (excluding the Docker-based smoke tests) on every push/PR.
- Move test_quality_moderation.py to tests/unit/ so the CI job can point at that directory directly, with no fragile ignore list that breaks when other infra-dependent test files are added - Add [tool.pytest.ini_options] pythonpath=["."] so 'app' is importable without installing the full project deps - CI runs: uv run --only-group dev pytest tests/unit/ -v
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.