Skip to content

Provide a way of checking if the catalogs are up-to-date - #831

Merged
akx merged 2 commits into
python-babel:masterfrom
kjagiello:update-check
Apr 8, 2022
Merged

Provide a way of checking if the catalogs are up-to-date#831
akx merged 2 commits into
python-babel:masterfrom
kjagiello:update-check

Conversation

@kjagiello

@kjagiello kjagiello commented Jan 26, 2022

Copy link
Copy Markdown
Contributor

I was missing a way to, as a part of CI-pipeline, check if the translations files are up to date. This PRs attempts to implement it in form of a --check flag for pybabel update.

Comment thread babel/messages/catalog.py Outdated
Comment thread babel/messages/frontend.py Outdated

@akx akx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution, seems like a good addition. Some comments around naming and so on...

Comment thread babel/messages/catalog.py Outdated
Comment thread babel/messages/catalog.py Outdated
Comment thread babel/messages/catalog.py Outdated
Comment thread babel/messages/frontend.py Outdated
Comment thread babel/messages/catalog.py Outdated

@akx akx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in is_identical... :)

Comment thread babel/messages/catalog.py Outdated
@kjagiello

Copy link
Copy Markdown
Contributor Author

@akx Let me know if there is anything else that needs to be taken care of before we can merge this PR

@akx
akx self-requested a review February 20, 2022 14:57

@akx akx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay! Could you rebase this?

@kjagiello

Copy link
Copy Markdown
Contributor Author

Sure thing, done!

@akx

akx commented Apr 8, 2022

Copy link
Copy Markdown
Member

@kjagiello Tests are unhappy 😭

@kjagiello

kjagiello commented Apr 8, 2022

Copy link
Copy Markdown
Contributor Author

This will hopefully do the trick! Forgot to do init.

@codecov

codecov Bot commented Apr 8, 2022

Copy link
Copy Markdown

Codecov Report

Merging #831 (1f46a54) into master (4a6e86f) will increase coverage by 0.02%.
The diff coverage is 89.18%.

@@            Coverage Diff             @@
##           master     #831      +/-   ##
==========================================
+ Coverage   91.09%   91.12%   +0.02%     
==========================================
  Files          23       23              
  Lines        4156     4190      +34     
==========================================
+ Hits         3786     3818      +32     
- Misses        370      372       +2     
Impacted Files Coverage Δ
babel/messages/frontend.py 86.32% <84.61%> (+0.22%) ⬆️
babel/messages/catalog.py 95.43% <100.00%> (+0.13%) ⬆️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@akx akx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants