Formatter skipping 'non python code' #21201
-
I'm just getting started with Python. Running Ubuntu 22.04 on wsl2.
This happens with both Black and Autopep formatters. I can provide more info but hoping this might be enough for someone to provide a hint. |
Beta Was this translation helpful? Give feedback.
Answered by
brettcannon
May 9, 2023
Replies: 1 comment 6 replies
-
It looks like you have a syntax error in your Python code (indenting in you're not supposed to), so the formatters can't format it since they can't parse it. |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
brettcannon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It looks like you have a syntax error in your Python code (indenting in you're not supposed to), so the formatters can't format it since they can't parse it.