riscv / docs-spec-template

https://lists.riscv.org/g/sig-documentation
Creative Commons Attribution 4.0 International
18 stars 19 forks source link

format yaml files consistently (with a pre-commit hook) #22

Closed kbroch-rivosinc closed 5 months ago

kbroch-rivosinc commented 5 months ago

I don't know if there needs to be a discussion on the settings but I'll describe here my thoughts.

My PR would have the folllowing settings:

  - repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
    rev: 0.2.3
    hooks:
      - id: yamlfmt
        args: [--mapping, '2', --sequence, '4', --offset, '2']

Based on:

PR to follow...