Skip to main content

apertium-lint

linter for Apertium source files

This package provides the command-line tool apertium-lint which statically analyzes Apertium source files for potential issues.

The linter can be run on a single file, giving output like

$ apertium-lint modes.xml
modes.xml
Error (install-deps) on line 8: Debug modes using files in .deps/ should not be installed.
Error (install-deps) on line 25: Debug modes using files in .deps/ should not be installed.
Error (install-deps) on line 91: Debug modes using files in .deps/ should not be installed.
Errors: 3 Warnings: 0 Suggestions: 0 Nitpicks: 0

or it can be run without arguments, which will apply it to the entire current directory

$ apertium-lint
./modes.xml
Error (install-deps) on line 8: Debug modes using files in .deps/ should not be installed.
Error (install-deps) on line 25: Debug modes using files in .deps/ should not be installed.
Error (install-deps) on line 91: Debug modes using files in .deps/ should not be installed.
./paper/paper.tex
Warning (unnorm) on line 113: Line contains non-normalized characters.
Errors: 3 Warnings: 1 Suggestions: 0 Nitpicks: 0

With option -s, statistics about the files will also be gathered.

$ apertium-lint -s apertium-kir.kir.twol
apertium-kir.kir.twol
Input alphabet symbols:	169
Output alphabet symbols:	139
Rules:	61
Sets:	35
Alphabet symbol pairs:	169
Errors: 0 Warnings: 0 Suggestions: 0 Nitpicks: 0

Prerequisites:

Installation:

If you have pipx installed, you can just do:

$ pipx install apertium-lint

(Alternatively, pip install apertium-lint should also work, but plain pip can make a bit of a mess if you have lots of packages installed on your user.)

Metadata

Release files for apertium-lint 1.0.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apertium-lint 1.0.13
File Size Uploaded Provenance Actions
apertium_lint-1.0.13.tar.gz 35.9 kB Without provenance Details for apertium_lint-1.0.13.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for apertium-lint 1.0.13
File Interpreter ABI Platform Actions
apertium_lint-1.0.13-py3-none-any.whl Python 3 none any Details for apertium_lint-1.0.13-py3-none-any.whl

Total release size: 79.0 kB

Release files / apertium_lint-1.0.13.tar.gz

Download URL apertium_lint-1.0.13.tar.gz
Size 35.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e8ebe688bafe995a853bc1b3fd57b60e673f958c5374c4a7c53536a52769e282
BLAKE2b-256 checksum
How to use checksums
c27d34b35dbeafb885f44f9f7d8ee995acd95483e7b8e508d3cb76bbe59193e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / apertium_lint-1.0.13-py3-none-any.whl

Download URL apertium_lint-1.0.13-py3-none-any.whl
Size 43.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e36d4f6f456f9f8e6f620a583f105cea9de016ba715923591f43c8d1051d219
BLAKE2b-256 checksum
How to use checksums
04e04175bb64f399af887066aa71be9a2dc609f2326f9b39aa03f3fff5cbcc48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Security for apertium-lint 1.0.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page