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: v0.3.69
  hooks:
    - id: md2po
      args:
        - README.md
        - -po
        - README.es.po
- repo: https://github.com/mondeja/mdpo
  rev: pc-hooks
  hooks:
    - id: md2po
      args:
        - -po
        - README.es.po
      files: README\.md

See also

po2md

- repo: https://github.com/mondeja/mdpo
  rev: v0.3.69
  hooks:
    - id: po2md
      args:
        - README.md
        - -po
        - README.es.po
        - -s
        - README.es.md
- repo: https://github.com/mondeja/mdpo
  rev: v0.3.69
  hooks:
    - id: po2md
      files: README\.md
      args:
        - -po
        - README.es.po
        - -s
        - README.es.md

See also

md2po2md

- repo: https://github.com/mondeja/mdpo
  rev: v0.3.69
  hooks:
    - id: md2po2md
      args:
        - README.md
        - -l
        - es
        - -o
        - locale/{lang}
- repo: https://github.com/mondeja/mdpo
  rev: v0.3.69
  hooks:
    - id: md2po2md
      files: README\.md
      args:
        - -l
        - es
        - -o
        - locale/{lang}

See also