Fix flake8 incompatibility with Python 3.14 in Alpine CI image#35
Open
Fix flake8 incompatibility with Python 3.14 in Alpine CI image#35
Conversation
Co-authored-by: zaxlofful <33877007+zaxlofful@users.noreply.github.com>
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
simplewish | d3388f1 | Feb 03 2026, 05:54 AM |
…bdirectories Co-authored-by: zaxlofful <33877007+zaxlofful@users.noreply.github.com>
Co-authored-by: zaxlofful <33877007+zaxlofful@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix testing pipelines failing after switching to Alpine
Fix flake8 incompatibility with Python 3.14 in Alpine CI image
Feb 3, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes CI pipeline failures caused by flake8 5.0.4's incompatibility with Python 3.14, which removes deprecated AST nodes. The fix updates flake8 to version 7.3.0 and corrects GitHub Actions workflow path patterns to properly match requirements files in subdirectories.
Changes:
- Upgraded flake8 from version 5.0.4 to 7.3.0 for Python 3.14 compatibility
- Fixed workflow path patterns from
requirements*.txtto**/requirements*.txtto match files in subdirectories
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| scripts/requirements-dev.txt | Updates flake8 dependency from 5.0.4 to 7.3.0 |
| .github/workflows/build-ci-image.yml | Corrects path pattern to match requirements files in subdirectories |
| .github/workflows/lint.yml | Corrects path pattern to match requirements files in subdirectories |
| .github/workflows/pytest.yml | Corrects path pattern to match requirements files in subdirectories |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
CI pipelines failing after Alpine switch due to
flake8==5.0.4using deprecated Python 3.14 AST nodes (ast.Str,ast.Num, etc. removed in 3.14).Changes
5.0.4→7.3.0inscripts/requirements-dev.txt(includes pyflakes 3.4.0 with Python 3.14 support)requirements*.txtto**/requirements*.txtinbuild-ci-image.yml,lint.yml, andpytest.ymlto match requirements files in subdirectoriesThe updated Docker image will be built automatically on merge due to the corrected path pattern triggering
build-ci-image.yml.💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.