Skip to content

Add flag to ignore POT-Creation-Date for updates#999

Merged
akx merged 3 commits into
python-babel:masterfrom
joeportela:joe/updates-ignore-pot-creation-date
Jul 27, 2023
Merged

Add flag to ignore POT-Creation-Date for updates#999
akx merged 3 commits into
python-babel:masterfrom
joeportela:joe/updates-ignore-pot-creation-date

Conversation

@joeportela

Copy link
Copy Markdown
Contributor

Adding a flag to ignore changes to POT-Creation-Date when performing updates or checks.
I use a CI check that ensures my .po files are updated before merging, but there is always a diff on POT-Creation-Date.

Related to #725 - but solving (my) problem via update instead of extract.

@joeportela

Copy link
Copy Markdown
Contributor Author

Ping @akx
Any interest in this PR?

@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.

Thank you for the contribution! As mentioned inside, I think it could be more intuitive for the kwarg to be positive (and default to True).

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

Copy link
Copy Markdown
Contributor Author

Thank you for the contribution! As mentioned inside, I think it could be more intuitive for the kwarg to be positive (and default to True).

My pleasure, thanks for taking a look! Just updated per your suggestion.

@joeportela joeportela requested a review from akx July 5, 2023 19:18
@codecov

codecov Bot commented Jul 14, 2023

Copy link
Copy Markdown

Codecov Report

Merging #999 (620fc1d) into master (1747d22) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #999   +/-   ##
=======================================
  Coverage   90.90%   90.91%           
=======================================
  Files          25       25           
  Lines        4356     4358    +2     
=======================================
+ Hits         3960     3962    +2     
  Misses        396      396           
Impacted Files Coverage Δ
babel/messages/catalog.py 95.72% <100.00%> (+0.01%) ⬆️
babel/messages/frontend.py 87.40% <100.00%> (+0.02%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. 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, sorry for the delay!

@akx akx merged commit 9ef53c6 into python-babel:master Jul 27, 2023
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