Skip to main content

Linter for gettext files

Project description

padpo

PyPI PyPI Travis Code style: Black Downloads Test Coverage Maintainability

Linter for gettext files (*.po)

Created to help the translation of official Python docs in French: https://github.com/python/python-docs-fr

Il faut demander aux traducteurs s'ils n'ont pas de pot quand ils traduisent, maintenant ils ont padpo… :smile: :laughing: :stuck_out_tongue_winking_eye: :joy: (note : il était tard le soir quand j'ai trouvé le nom).

WORK IN PROGRESS

License

BSD 3-clause

Pull request are welcome.

Usage

Using the activated virtual environment created during the installation:

For a local input file:

padpo --input-path a_file.po

or for a local input directory:

padpo --input-path a_directory_containing_po_files

or for a pull request in python-docs-fr repository (here pull request #978)

padpo --python-docs-fr 978

or for a pull request in a GitHub repository (here python/python-docs-fr/pull/978)

padpo --github python/python-docs-fr/pull/978

Screenshot

Color

By default, the output is colorless, and formatted like GCC messages. You can use -c or --color option to get a colored output.

Installation

Automatic installation

pip install padpo

Manual installation

  1. Install dependencies

    poetry install
    

    Note: this uses poetry that you can get here: https://poetry.eustace.io/docs/

  2. Use virtual environment$

    poetry shell
    

Update on PyPI

./deliver.sh

Changelog

v0.9.0 (2020-09-07)

  • use pygrammalecte default message for spelling errors

v0.8.0 (2020-08-25)

  • use pygrammalecte
  • add continuous integration
  • fix #12, #13, #14, #15, #17, #18, #20
  • add --color CLI option to get a colored output (default is colorless)

v0.7.0 (2019-12-11)

  • add --version CLI option to display the current version of padpo
  • --input-path CLI option now accepts several paths as in padpo --input-path file1.po file2.po directory1 directory2 or padpo -i file1.po file2.po directory1 directory2

v0.6.0 (2019-12-9)

  • check errors against defined glossaries

v0.5.0 (2019-12-3)

  • check spelling errors with grammalecte
  • tag releases!

v0.4.0 (2019-12-2)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

padpo-0.9.0.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

padpo-0.9.0-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file padpo-0.9.0.tar.gz.

File metadata

  • Download URL: padpo-0.9.0.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/4.15.0-112-generic

File hashes

Hashes for padpo-0.9.0.tar.gz
Algorithm Hash digest
SHA256 4d3eac59a7f06bc85a32c38884b4f9a2b4e7bcb16751a7a4ba811bce436273c3
MD5 6b5314e6fc5aeb5abfaa76f712a3bf1c
BLAKE2b-256 8329efe84599d2ce0d6347bf27d6124dda7580a7a68ddbfa69d373c8cad8512d

See more details on using hashes here.

File details

Details for the file padpo-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: padpo-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/4.15.0-112-generic

File hashes

Hashes for padpo-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9395e4e9d22cf0161aa4f65e1b0f0e647dbd6206a8350fd77bfed2a2591dd2f
MD5 a3c74cf60b446ac6eb3bd383360a89df
BLAKE2b-256 26f556e5c341a3358f5bb0ccd9e88992f0d802028a97789379c70b1049d4b2ba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page