Add `--fix` flag to `astro dev upgrade-test` by jeremybeard · Pull Request #1997 · astronomer/astro-cli

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@jeremybeard

Copy link

Contributor

Description

This change adds a new --fix flag to the astro dev upgrade-test command to automatically fix linting issues reported by ruff.

🧪 Functional Testing

  • Added unit test coverage for ruff command
  • Tested on example Airflow 2 DAG, which fixed all identified issues

📸 Screenshots

Screenshot 2026-01-05 at 12 01 52 PM

📋 Checklist

  • Rebased from the main (or release if patching) branch (before testing)
  • Ran make test before taking out of draft
  • Ran make lint before taking out of draft
  • Added/updated applicable tests
  • Tested against Astro-API (if necessary).
  • Tested against Houston-API and Astronomer (if necessary).
  • Communicated to/tagged owners of respective clients potentially impacted by these changes.
  • Updated any related documentation
Copy link

Contributor

@neel-astro neel-astro left a comment

Choose a reason for hiding this comment

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

Looks like a straightforward, simple flag addition

@jeremybeard jeremybeard merged commit a78829b into main

Jan 5, 2026

5 of 6 checks passed

@jeremybeard jeremybeard deleted the upgrade-test-fix-flag branch

January 5, 2026 17:27

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

Reviewers

@neel-astro neel-astro neel-astro approved these changes

@kushalmalani kushalmalani Awaiting requested review from kushalmalani

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@jeremybeard @neel-astro