Skip to content

Use pyhocon CLI as a formatter #336

@zmeir

Description

@zmeir

I was looking for an auto-formatter for HOCON files, similar to black/ruff for python files.

I thought I would give it a go:

pyhocon -f hocon -n 4 -i app.conf -o app.conf

And it sort of works. The only problem is that it strips away any comments and resolved all variable substitutions.

Will it be possible to support an option to just format the file, without also resolving it?

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