Add a new CLI command to lint PO files#1168
Add a new CLI command to lint PO files#1168tomasr8 wants to merge 1 commit intopython-babel:masterfrom
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1168 +/- ##
==========================================
- Coverage 91.47% 91.34% -0.14%
==========================================
Files 27 27
Lines 4636 4728 +92
==========================================
+ Hits 4241 4319 +78
- Misses 395 409 +14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
Why the new checker is not added to babel/messages/checkers.py? It could check using (Side note: Trac provides |
Yeah, that might be a good idea. I'll look into that :) |
|
Perhaps it might make more sense to start with implementing the |
Partially addresses #1011
This adds a new
lintcommand to babel:Example output:
The implementation is based on my team's implementation in Indico.
Some notes:
input-paths. We might want to consider adding a parameter to ignore a specific file/msgid but that can again be added later.Feedback welcome!
(@akx would you mind taking a look?)