python-docs-zh-cn icon indicating copy to clipboard operation
python-docs-zh-cn copied to clipboard

Lint translation files

Open StanFromIreland opened this issue 8 months ago • 4 comments

There are currently 342 lint warnings when polint is ran, there are also a few build warnings.

transifex-automations has test building and linting workflows, they are simple to add, just the branch matrix's need to be updated.

StanFromIreland avatar May 18 '25 15:05 StanFromIreland

Will these lint issues block the doc buildings?

Dumeng avatar May 18 '25 16:05 Dumeng

The lint issues do not block anything, they have been around for a while ;-) They sometimes cause issues with how the translation renders, other times they are just quality issues. At pl, we keep the errors at 0.

StanFromIreland avatar May 18 '25 16:05 StanFromIreland

build warnings are fixed now but some lint warnings are hard to locate like "clones/rebased_translations/python/python-docs-zh-cn/reference/compound_stmts.po:2642: trailing whitespace (trailing-whitespace)", seems the ref number is not correct.

silkriver avatar May 23 '25 01:05 silkriver

The warnings on the dashboard may be slightly out of date.

transifex-automations has test building and linting workflows, they are simple to add, just the branch matrix's need to be updated, I highly suggest you add them. You can combine the two my merging the jobs.

StanFromIreland avatar May 23 '25 06:05 StanFromIreland