Skip to content

Allow for reading from stdin #238

@fniessink

Description

@fniessink

I'd like to configure pyproject-fmt as formatter in Zed. Formatters in Zed need to be able to read from stdin and write to stdout. It seems pyproject-fmt can do the latter, but not the former.

Is this something you would consider adding? I can provide a PR if you'd like.

I was thinking of adding this as flag under run mode:

run mode:
   -s, --stdout          print the formatted TOML to the stdout (default: False)
   -i, --stdin           read the TOML to format from the stdin (default: False)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions