Skip to content

Fix flake8 incompatibility with Python 3.14 in Alpine CI image#35

Open
Copilot wants to merge 4 commits intomainfrom
copilot/fix-testing-pipeline-issues
Open

Fix flake8 incompatibility with Python 3.14 in Alpine CI image#35
Copilot wants to merge 4 commits intomainfrom
copilot/fix-testing-pipeline-issues

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 3, 2026

CI pipelines failing after Alpine switch due to flake8==5.0.4 using deprecated Python 3.14 AST nodes (ast.Str, ast.Num, etc. removed in 3.14).

Changes

  • Update flake8: 5.0.47.3.0 in scripts/requirements-dev.txt (includes pyflakes 3.4.0 with Python 3.14 support)
  • Fix workflow triggers: Change path patterns from requirements*.txt to **/requirements*.txt in build-ci-image.yml, lint.yml, and pytest.yml to match requirements files in subdirectories

The 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.

Co-authored-by: zaxlofful <33877007+zaxlofful@users.noreply.github.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Feb 3, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
simplewish d3388f1 Feb 03 2026, 05:54 AM

Copilot AI and others added 2 commits February 3, 2026 05:52
…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
Copilot AI requested a review from zaxlofful February 3, 2026 05:56
@zaxlofful zaxlofful marked this pull request as ready for review February 3, 2026 19:31
Copilot AI review requested due to automatic review settings February 3, 2026 19:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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*.txt to **/requirements*.txt to 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants