Skip to content
This repository was archived by the owner on Aug 13, 2026. It is now read-only.

Sort imports to satisfy ruff check - #7

Merged
Pomax merged 1 commit into
mainfrom
fix-ruff-import-sort
Aug 10, 2026
Merged

Pomax merged 1 commit into
mainfrom
fix-ruff-import-sort

Conversation

@kailan

@kailan kailan commented Aug 7, 2026 •

Copy link
Copy Markdown
Member

Change summary

The Test workflow's lint step runs uvx ruff check ., which resolves the latest ruff at run time. Current ruff flags I001 (un-sorted import block) on main.py, so the step fails on every pull request:

I001 [*] Import block is un-sorted or un-formatted
 --> main.py:1:1

This applies ruff check --fix, which moves from flask import Flask below from fastly_compute.wsgi import ... and separates the stdlib and third-party groups. No behaviour change.

Verified locally:

  • uvx ruff check . → All checks passed!
  • uvx ruff format --check . → 3 files already formatted
  • fastly compute build (CLI v15.5.0) → SUCCESS: Built package

Found while working on #6 / CDTOOL-1707, where this pre-existing failure turned that PR's CI red. Unrelated to the change there, so it's split out here. Merging this first and rebasing #6 should get both green.

FWIW the Test workflow has never passed on this repo: earlier runs got past lint but failed at Build (using CLI), which looks like it was the released CLI not yet supporting language = "python". That shipped in CLI v15.5.0, and the build now succeeds locally, so this lint fix should be the last thing standing between the workflow and a green run.

🤖 Generated with Claude Code

The Test workflow's lint step runs `uvx ruff check .`, which resolves the
latest ruff at run time. Current ruff flags I001 on main.py's import
block, so the step fails on every pull request.

Apply `ruff check --fix`. No behaviour change; `ruff format --check` and
`fastly compute build` both still pass.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@kailan
kailan requested a review from a team as a code owner August 7, 2026 14:23
@kailan
kailan requested a review from Pomax August 7, 2026 14:23

@Pomax Pomax left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lol wut

@Pomax
Pomax merged commit 0d6545c into main Aug 10, 2026
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants