[bug/qa] Fix lint errors being ignored (follow-up to #571)#598
[bug/qa] Fix lint errors being ignored (follow-up to #571)#598Varadraj75 wants to merge 4 commits intoopenwisp:masterfrom
Conversation
WalkthroughThis pull request adds Flake8 linting configuration and updates the QA check workflow. Two configuration files are created/updated: a new Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
🔇 Additional comments (5)
✏️ Tip: You can disable this entire section by setting Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR aims to ensure QA/lint failures are no longer silently skipped by running the full openwisp-qa-check suite and addressing a few currently-fixable formatting issues so CI results are actionable.
Changes:
- Updates
run-qa-checksto runopenwisp-qa-checkwithout skip flags. - Adds flake8 configuration (via both
pyproject.tomland a new.flake8file). - Applies minor Python formatting fixes (docstring spacing and quote style).
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
templates/load_initial_data.py |
Adds a blank line after the module docstring to satisfy formatting/lint expectations. |
run-qa-checks |
Stops skipping linters/QA checks by invoking openwisp-qa-check directly. |
pyproject.toml |
Adds [tool.flake8] configuration section. |
files/generate_django_secret_key.py |
Adjusts string quoting style for formatting consistency. |
.flake8 |
Introduces a flake8 config with excludes (including templates/**). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@nemesifier |
There was a problem hiding this comment.
This PR is completely missing the point and doesn't really pick up from where #571 stalled. Please revise the changes in that PR and you'll see that yaml and ansible linting is completely missing.
@Varadraj75 I prefer that you pull all the commits from that PR and add your commtis on top of it. We'll save a lot of time and also give credit to the other contributor which is fair.
|
Thanks for the clarification @nemesifier, that makes sense. I’ll rework this by pulling all commits from PR #571 and then applying my fixes on top of it, so we keep the full lint scope (including yaml and ansible linting) and preserve credit for the original contributor. I’ll update the PR accordingly once done. |
Checklist
Reference to Existing Issue
Closes #485 .
Description of Changes
This PR addresses issue #485 by ensuring QA and lint checks are no longer ignored and by fixing the currently solvable lint failures so that CI errors are real and actionable.
Key changes
run-qa-checksproperly fails on lint and QA errors|| true) so failures are correctly reportedScreenshot
Local

run-qa-checksexecution showing that QA and documentation lint checksare properly enforced and errors are no longer ignored (RST files reported
as needing reformatting).