Repository navigation
chore(ci): make Flake8 critical-error check blocking - #86
Merged
OkiriGabriel merged 1 commit intoOct 19, 2026
Merged
Conversation
The Flake8 step only selects E9, F63, F7 and F82 (syntax errors, invalid comparisons and asserts, misplaced control flow and undefined names), but continue-on-error: true meant a failure never failed the lint job. The codebase is clean for exactly these checks (0 findings on all tracked .py files), so removing continue-on-error turns the step into a real gate without any source changes. The Black step is left non-blocking on purpose: it currently reports 81 files that would be reformatted. Part of open-devops-agent#18
OkiriGabriel
approved these changes
Oct 19, 2026
OkiriGabriel
left a comment
Collaborator
There was a problem hiding this comment.
Thanks, this looks good. The Flake8 step only selects E9,F63,F7,F82, main is clean for those, and this PR's own Lint job passed with the step now blocking. Approving.
I'll answer the Black and Safety questions on #18.
4 tasks
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.
Description
Removes
continue-on-error: truefrom the "Run Flake8" step in.github/workflows/ci.yml, so that step now fails the lint job when it finds problems.The step only selects
E9,F63,F7,F82(syntax errors, invalid comparisons/asserts, misplaced control flow and undefined names). The codebase is clean for exactly these checks, so this makes the gate real without requiring any source changes. The Black step is intentionally left non-blocking: it currently reports 81 files that would be reformatted, which needs a decision from the maintainers first (asked on #18).Part of #18 (first of several small PRs; this does not close it)
Type of Change
CI configuration change (none of the listed types fit).
Platform/Component
Testing
Unit tests added/updated
Integration tests pass
Manual testing performed
Tested with dummy data
Tested in production-like environment
Ran the exact CI command from the repo root,
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics: count 0. Also 0 when run only on the 103 git-tracked.pyfiles.Parsed the workflow with
yaml.safe_load: valid.The diff is a single removed line.
This PR's own CI run also exercises the now-blocking step.
Full test suite locally: 296 passed, 2 skipped (the existing warnings are pre-existing and unrelated; this PR only changes a workflow file).
Test Configuration
Checklist
Screenshots (if applicable)
N/A
Breaking Changes
None. From now on, a PR that introduces a syntax error or an undefined name will fail the Lint job instead of passing with a hidden failure.
Additional Notes
|| echo "Expected to fail gracefully"webhook steps with real assertions. Black and Safety are waiting on the maintainer's answers in the issue thread.Reviewer Checklist