hhatto / autopep8

A tool that automatically formats Python code to conform to the PEP 8 style guide.
https://pypi.org/project/autopep8/
MIT License
4.54k stars 291 forks source link

Exclude Regex is not working for formatOnSave with vscode autopep8 extension #698

Open kirankumarmanku opened 11 months ago

kirankumarmanku commented 11 months ago

The issue is explained here: https://github.com/microsoft/vscode-autopep8/issues/141

VSCode Extension sends the content of file from std-in, and because of this, autopep8's exclude regex doesn't work. Is it possible to add a std-in-filename option like black-formatter to fix this annoyance? Without this, autopep8 and vscode's auto format don't work together well.