Add a formatter for TOML (pyproject.toml) and YAML (workflow files)?

Open
#5,006 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python, yaml
Domain
tooling

Research direction

Start by reviewing the listed TOML and YAML formatter options and discussing whether the project should add either formatter. If the project decides to proceed, compare the candidates and propose a choice; done means the team has agreed on whether to enable formatters and, if so, which ones.

Written by the indexing model from the issue text.

Description

discussions maintenance

Currently, we don't have a formatter for TOML and YAML, perhaps we should do so that these files are consistenly formatted.

I found the following formatters.

TOML:

YAML:

Need to discuss whether we want to enable the related formatters first. If yes, then need to explore which formatter is better.

Dominant language
Python
Stars
882
Forks
261
Avg merge
1d 3h
Merged PRs (30d)
29

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GenericMappingTools/pygmt

All issues in GenericMappingTools/pygmt

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.