Skip to content

Conversation

@araggohnxd
Copy link
Contributor

@araggohnxd araggohnxd commented Nov 6, 2024

Proposed change

Add "Brasil, Bolsa, Balcão" - Brazil Stock Exchange and Over-the-Counter Market (B3) - to the list of available financial markets holidays.

This is still a work in progress, so I'm opening a draft PR just in case anyone else feels like contributing.

Type of change

  • New country/market holidays support (thank you!)
  • Supported country/market holidays update (calendar discrepancy fix, localization)
  • Existing code/documentation/test/process quality improvement (best practice, cleanup, refactoring, optimization)
  • Dependency update (version deprecation/pin/upgrade)
  • Bugfix (non-breaking change which fixes an issue)
  • Breaking change (a code change causing existing functionality to break)
  • New feature (new holidays functionality in general)

Checklist

@github-actions github-actions bot added the test label Nov 6, 2024
@codecov
Copy link

codecov bot commented Nov 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (f9851fa) to head (d24922f).
Report is 2 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff            @@
##               dev     #2109   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          192       193    +1     
  Lines        11599     11639   +40     
  Branches      1749      1756    +7     
=========================================
+ Hits         11599     11639   +40     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@PPsyrius
Copy link
Collaborator

PPsyrius commented Nov 7, 2024

@araggohnxd I've created a PR on your repo with some suggestions inside (testcases refractors, add your name to AUTHORS list, add snapshot, ...), nice to see new market support :)

@KJhellico
Copy link
Collaborator

@araggohnxd, thank you for your contribution to Holidays!

As I can see, this list of BVMF holidays is based on the current list of Brazil holidays. I have just created PR #2113, where I made some changes to holidays of the first half of the 20th century (based on available legal sources). If you have the time and opportunity, I would be grateful if you could review these changes, perhaps I have missed something or misunderstood. Also, you can use info from this PR to add localization of BVMF holidays if you would like to.

@PPsyrius
Copy link
Collaborator

PPsyrius commented Nov 7, 2024

@KJhellico AFAIK I don't think our existing make l10n even have localization support for markets yet

@araggohnxd
Copy link
Contributor Author

Yeah, I think the next step is indeed adding localization, even though I remember not quite understanding how to do it for financial markets. I'll check out the related PR to see if it can throw some light on the issue for me.

@araggohnxd
Copy link
Contributor Author

@KJhellico Good job on spotting the Our Lady of Aparecida related law on your PR. I also added some Tiradentes' day sources on this PR, you may want to check that out.

I think the feature is pratically done, the only thing I'm not really sure about is the Holy Thursday, because I couldn't find any source backing up its existence as a holiday, other than this resolution from the central bank:

PT: Parágrafo único. A Quinta-Feira da Semana Santa será considerada dia útil somente a partir do ano 2000.
EN: Sole paragraph. The Holy Thursday will be considered a business day only from the year 2000 onwards.

About localization, I couldn't really make it work, so any help is appreciated.

@github-actions github-actions bot added the l10n label Nov 9, 2024
@araggohnxd araggohnxd marked this pull request as ready for review November 9, 2024 00:38
@arkid15r arkid15r requested a review from PPsyrius November 11, 2024 21:04
  - Remove entity aliases
  - Clean up existing contents before generation
arkid15r and others added 3 commits November 11, 2024 13:52
Co-authored-by: ~Jhellico <KJhellico@users.noreply.github.com>
Co-authored-by: ~Jhellico <KJhellico@users.noreply.github.com>
@sonarqubecloud
Copy link

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.

LGTM!

Copy link
Collaborator

@arkid15r arkid15r left a comment

Choose a reason for hiding this comment

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

@araggohnxd thanks for adding B3 and bringing more improvements to the snapshot generation with this!

@arkid15r arkid15r enabled auto-merge November 11, 2024 22:05
@arkid15r arkid15r added this pull request to the merge queue Nov 11, 2024
Merged via the queue into vacanza:dev with commit 2482d99 Nov 11, 2024
29 checks passed
@KJhellico KJhellico mentioned this pull request Nov 18, 2024
mstuttgart pushed a commit to multidadosti-erp/python-holidays that referenced this pull request Nov 18, 2024
Co-authored-by: PPsyrius <19505219+PPsyrius@users.noreply.github.com>
Co-authored-by: ~Jhellico <KJhellico@users.noreply.github.com>
Co-authored-by: Arkadii Yakovets <ark@cho.red>
Co-authored-by: Arkadii Yakovets <2201626+arkid15r@users.noreply.github.com>
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.

4 participants