python-docs-uk icon indicating copy to clipboard operation
python-docs-uk copied to clipboard

Use sphinx-lint

Open JulienPalard opened this issue 3 years ago • 1 comments

Hi!

I'm developping https://pypi.org/project/sphinx-lint/, and it's now able to lint .po files. We use it on python-docs-fr, it's able to spot many typos, like:

library/ctypes.po:2763: missing space before role ( C:c:type:`). (missing-space-before-role)
library/ctypes.po:2770: missing space before role ( C:c:type:`). (missing-space-before-role)
library/ctypes.po:2825: missing space before role ( C:c:type:`). (missing-space-before-role)
library/ctypes.po:2832: missing space before role ( C:c:type:`). (missing-space-before-role)
library/ctypes.po:2839: missing space before role ( C:c:type:`). (missing-space-before-role)

sphinx-lint show never ever give a false positive (I know, I know, utopia...) but please, please, report any false positive to https://github.com/sphinx-contrib/sphinx-lint/issues if you find one.

JulienPalard avatar Nov 14 '22 22:11 JulienPalard

Wow, this is going to be useful in https://github.com/pypa/packaging.python.org too.

webknjaz avatar Nov 19 '22 14:11 webknjaz