Provide a way to ignore recursive.
karthiknadig opened this issue · comments
Karthik Nadig commented
There is no way to turn off recursive when running from using standard input. This is an issue for VS Code extension trying to run autopep8 on unsaved files which have to use the stdin
to format before saving.
Command Line and Configuration
.pep8
, setup.cfg
, ...
[tool.autopep8]
recursive = true
Command Line
python.exe -m autopep8 --max-line-length=120 -
--recursive cannot be used with standard input
Your Environment
- Python version: 3.11
- autopep8 version: 2.0.0
- Platform: windows
Gram commented
The same goes for if there is in-place = true
in the config. The VSCode extension just doesn't do anything if either option is present in the config: no formatting and no error.