Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use native apostrophe for uk locale holiday names #1004

Merged
merged 319 commits into from
Mar 7, 2023

Conversation

arkid15r
Copy link
Collaborator

@arkid15r arkid15r commented Mar 3, 2023

Proposed change

Replace ' with ʼ for uk holiday names.

Type of change

  • New country holidays support (thank you!)
  • Supported country holidays update (calendar discrepancy fix, localization)
  • Existing code/tests/processes improvement (best practice, refactoring, optimization)
  • Dependency upgrade (version update)
  • Bugfix (non-breaking change which fixes an issue)
  • Breaking change (a code change causing existing functionality to break)
  • New feature (adds functionality to python-holidays in general)

Checklist

  • I've followed the contributing guidelines
  • This PR is filed against beta branch of the repository
  • This PR doesn't contain any merge conflicts
  • The code style looks good (make pre-commit)
  • I've added tests to verify that the new code works and all tests pass locally (make test)
  • The related documentation has been added/updated (check off the box for free if no updates is required)

arkid15r and others added 30 commits February 1, 2023 09:34
Upgrade dependency: change black version from 22.12.0 to 23.1.0
Replace `relativedelta` with `timedelta` for days offset calculation
Refactor days offset calculation: replace `relativedelta` with `timedelta` (tests)
Co-authored-by: Arkadii Yakovets <ark@cho.red>
Bosnia and Herzegovina holidays update
arkid15r and others added 15 commits February 27, 2023 18:30
* Initial ARG revamped logic + testcases

* AR: Ukranian Loc Part 1

Co-authored-by: ~Jhellico <KJhellico@users.noreply.github.com>

* AR: Ukranian Loc Part 2

Co-authored-by: ~Jhellico <KJhellico@users.noreply.github.com>

* AR: en_US Loc Part 1

Co-authored-by: ~Jhellico <KJhellico@users.noreply.github.com>

* AR: Ukranian Loc Part 3

Co-authored-by: ~Jhellico <KJhellico@users.noreply.github.com>

* AR: improve trigger Part 1

Co-authored-by: ~Jhellico <KJhellico@users.noreply.github.com>

* AR: improve test case

Co-authored-by: ~Jhellico <KJhellico@users.noreply.github.com>

* AR: Veterans Day logic improvements

Co-authored-by: ~Jhellico <KJhellico@users.noreply.github.com>

* AR: Belgrano/Flag Day logic improvements

Co-authored-by: ~Jhellico <KJhellico@users.noreply.github.com>

* AR: San Martin Day special case for 2011 check

Co-authored-by: ~Jhellico <KJhellico@users.noreply.github.com>

* AR:  Malvinas Sovereignty Day logic improvements

Co-Authored-By: ~Jhellico <KJhellico@users.noreply.github.com>

* AR: Implemented Arkid15r's suggestions

Co-Authored-By: Arkadii Yakovets <2201626+arkid15r@users.noreply.github.com>

* AR: Stricter PEP 8 Adherance

Co-Authored-By: Arkadii Yakovets <2201626+arkid15r@users.noreply.github.com>

---------

Co-authored-by: ~Jhellico <KJhellico@users.noreply.github.com>
Co-authored-by: Arkadii Yakovets <2201626+arkid15r@users.noreply.github.com>
Remove unused code from `tests/countries/__init__.py`.
* Refactor `HolidayBase::get_named`:
  - Add `lookup` parameter.
  - Add `contains/iexact/icontains/iexact` lookup types.
  - Keep the current behavior with `icontains` as default lookup type.

* Optimize holiday name lookups.
Use exact lookup for holiday name assertions.
* Use the built-in library for time zone functions

* Improve coverage

* Extend to JP
* Cleans up TH documentation & localization files

* TH: Stricter PEP 8 Adherance
* Add tox-ini-fmt to .pre-commit-config.yaml.

* Bump the version.
@arkid15r arkid15r requested a review from KJhellico March 3, 2023 22:47
Copy link
Collaborator

@KJhellico KJhellico left a comment

Choose a reason for hiding this comment

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

I was going to change it :)

@arkid15r arkid15r added the ready for beta Ready to merge on beta branch label Mar 7, 2023
@coveralls
Copy link

Coverage Status

Coverage: 100.0%. Remained the same when pulling 862e851 on arkid15r:fix-uk-apostrophe into d34e0b3 on dr-prodigy:beta.

@arkid15r arkid15r merged commit e6805e7 into vacanza:beta Mar 7, 2023
@arkid15r arkid15r deleted the fix-uk-apostrophe branch March 7, 2023 17:57
@arkid15r arkid15r added l10n and removed ready for beta Ready to merge on beta branch labels Mar 7, 2023
@arkid15r arkid15r mentioned this pull request Mar 13, 2023
arkid15r added a commit to arkid15r/python-holidays that referenced this pull request Mar 14, 2023
This was referenced Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants