Skip to content

Continue checking files after standalone syntax errors - #479

Open
Boulea7 wants to merge 1 commit into
python-trio:mainfrom
Boulea7:fix/standalone-syntax-errors
Open

Boulea7 wants to merge 1 commit into
python-trio:mainfrom
Boulea7:fix/standalone-syntax-errors

Conversation

@Boulea7

@Boulea7 Boulea7 commented Dec 3, 2026

Copy link
Copy Markdown

Fixes #304.

On Python 3.10, passing a file with except* to the standalone CLI prints a traceback and stops the remaining files from being checked. The CLI now reports the syntax error with the filename and Python version, continues checking the other files, and returns exit code 1.

Tested with Python 3.10 and 3.14, including autofix on a valid file after malformed input.

Prepared and reviewed with Codex.

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.

helpful error message if parser crashes (e.g. due to syntax changes from future python version)

1 participant