pre-commit hooks

For all hooks, there are two different ways to set input paths, using first positional arguments inside args property or the files property as a regex.

md2po

The --save and --quiet options are passed automatically to md2po, so you don’t need to specify them.

- repo: https://github.com/mondeja/mdpo
  rev: v2.1.0
  hooks:
    - id: md2po
      args:
        - README.md
        - -p
        - README.es.po

See also

po2md

- repo: https://github.com/mondeja/mdpo
  rev: v2.1.0
  hooks:
    - id: po2md
      args:
        - README.md
        - -p
        - README.es.po
        - -s
        - README.es.md

See also

md2po2md

- repo: https://github.com/mondeja/mdpo
  rev: v2.1.0
  hooks:
    - id: md2po2md
      args:
        - README.md
        - -l
        - es
        - fr
        - -o
        - locale/{lang}

See also

mdpo2html

- repo: https://github.com/mondeja/mdpo
  rev: v2.1.0
  hooks:
    - id: mdpo2html
      args:
        - README.html
        - -p
        - README.po
        - -s
        - README.es.html

See also