hhatto / autopep8

A tool that automatically formats Python code to conform to the PEP 8 style guide.

Home Page:https://pypi.org/project/autopep8/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide a way to ignore recursive.

karthiknadig opened this issue · comments

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
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.