Skip to content

Add --check flag#1027

Closed
berzi wants to merge 4 commits intoasottile:mainfrom
berzi:check-mode
Closed

Add --check flag#1027
berzi wants to merge 4 commits intoasottile:mainfrom
berzi:check-mode

Conversation

@berzi
Copy link
Copy Markdown

@berzi berzi commented Aug 8, 2025

This pull requests adds a simple --check flag to allow running the program to verify whether any upgrade would be made without actually writing to file. This can be useful if users want to add pyupgrade in their code quality pipeline. It should play nicely with any other existing flag.

Additionally, I documented all flags in the README, including the new one.

A test for the new flag is included.

@asottile asottile closed this Aug 8, 2025
Repository owner locked as off-topic and limited conversation to collaborators Aug 8, 2025
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