Metadata-Version: 2.4
Name: polint
Version: 0.5
Summary: Linter for gettext PO files
Home-page: https://github.com/ziima/polint
Author: Vlastimil Zíma
Author-email: vlastimil.zima@gmail.com
License: GPLv3+
Keywords: gettext,linter
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Build Tools
Classifier: Topic :: Software Development :: Internationalization
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Utilities
Requires-Python: ~=3.9
License-File: LICENSE
Requires-Dist: docopt
Requires-Dist: polib
Provides-Extra: quality
Requires-Dist: flake8; extra == "quality"
Requires-Dist: isort; extra == "quality"
Requires-Dist: pydocstyle; extra == "quality"
Provides-Extra: tests
Requires-Dist: mock; extra == "tests"
Dynamic: author
Dynamic: license-file

======
polint
======

.. image:: https://img.shields.io/pypi/v/polint.svg
    :target: https://pypi.org/project/polint/
    :alt: PyPI
.. image:: https://img.shields.io/pypi/l/polint.svg
    :target: https://pypi.org/project/polint/
    :alt: Licence
.. image:: https://img.shields.io/pypi/pyversions/polint.svg
    :target: https://pypi.org/project/polint/
    :alt: Python versions
.. image:: https://travis-ci.org/ziima/polint.svg?branch=master
    :target: https://travis-ci.org/ziima/polint
    :alt: Travis CI
.. image:: https://codecov.io/gh/ziima/polint/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/ziima/polint
    :alt: Codecov

``polint`` is a linter for gettext PO files. It validates PO files against defined convensions.

-----
Usage
-----
::

    polint.py [options] <path>...
    polint.py -h | --help
    polint.py --version

To print complete usage use ``--help`` option.

------
Errors
------

* ``fuzzy`` - Translation is fuzzy
* ``obsolete`` - Entry is obsolete
* ``untranslated`` - Translation is missing. That includes ``fuzzy`` or ``obsolete``.
* ``location`` - Entry contains location data
* ``unsorted`` - Entry is not properly sorted

---------
Changelog
---------

0.4
===
* Fix installation in environment with C locales.

0.3
===
* Use ``docopt`` for argument parsing.
* Recursively search directories for ``.po`` files.

0.2
===
* Add sort validator

0.1
===
* Initial version
