Repository navigation
Make flake8 fail CI and fix what it reports - #136
Merged
Merged
Conversation
Lint ran every check with --exit-zero, so its 64 findings never failed CI. Fix the whitespace, blank-line and line-length ones, mark the eight functions already over max-complexity with noqa so new code stays under 10, and switch .flake8 to extend-ignore so flake8's default ignores (like W503) apply again. Lint is now one flake8 run that fails on any problem. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Coverage for e2e tests for Python 3.14
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #136 +/- ##
=======================================
Coverage 66.45% 66.45%
=======================================
Files 29 29
Lines 2391 2391
=======================================
Hits 1589 1589
Misses 802 802 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
🚀 Staging Preview Deployed! URL: https://preview-seating-pr-136-137456085712.us-west1.run.app |
pancakereport
marked this pull request as draft
October 16, 2026 23:33
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.
lint.ymlranflake8twice: a strict run limited to syntax errors and undefined names, then every other check with--exit-zero. The second run reported 64 problems onmain, but CI stayed green, so nobody saw them. This fixes those problems and makes lint fail on any finding.Changes
lint.yml: a singleflake8 . --count --show-source --statisticsthat fails CI. The default checks already include syntax errors and undefined names, so the separate strict run isn't needed..flake8:ignorebecomesextend-ignore.ignorereplaced flake8's default ignore list instead of adding to it, which turnedW503back on, even though flake8 ignores it by default and it conflicts withW504.E722andF401stay ignored as before.Fixed findings:
tests/unit/test_assignment.pyandtest_email.py. A few were inside docstrings.forms.py,assign.pyandexport.py: wrapped.assign.pyandtest_assignment.py.Complexity:
max-complexity = 10stays for new code. The eight functions already over it get# noqa: C901rather than a higher limit:prepare_students(31)views.py(11 to 14)Refactoring them is a separate job.
Apart from the line wrapping, the code changes are whitespace and
noqamarkers only;git diff -wshows no changes to the test files.Testing
flake8with the new config finds 0 problems.🤖 Generated with Claude Code