Add SIX Swiss Exchange (SIX) holidays#3692
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughAdds SIX Swiss Exchange holiday support for Zurich, including aliases, registry exposure, localized names, documentation, observed-day handling, and comprehensive tests. ChangesSIX Swiss Exchange support
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@holidays/locale/de/LC_MESSAGES/XSWX.po`:
- Around line 30-32: Update the translator comment for Berchtoldstag in the
Python source symbol containing “Saint Berchtold's Day” to end with a period,
then run make l10n to regenerate all locale .po files consistently.
In `@holidays/locale/en_US/LC_MESSAGES/XSWX.po`:
- Around line 30-32: Update the Saint Berchtold’s Day translator comment in
six_swiss_exchange.py to end with a period, then regenerate the locale files
with make l10n so the en_US XSWX.po comment becomes punctuated consistently.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: 5125c8b9-dbfb-4ec4-975a-545cceecd626
📒 Files selected for processing (11)
README.mdholidays/financial/__init__.pyholidays/financial/six_swiss_exchange.pyholidays/locale/de/LC_MESSAGES/XSWX.poholidays/locale/en_US/LC_MESSAGES/XSWX.poholidays/locale/fr/LC_MESSAGES/XSWX.poholidays/locale/it/LC_MESSAGES/XSWX.poholidays/locale/th/LC_MESSAGES/XSWX.poholidays/locale/uk/LC_MESSAGES/XSWX.poholidays/registry.pytests/financial/test_six_swiss_exchange.py
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #3692 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 319 320 +1
Lines 19207 19240 +33
Branches 2458 2461 +3
=========================================
+ Hits 19207 19240 +33 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@holidays/financial/six_swiss_exchange.py`:
- Line 42: Update the _add_holiday method signature by annotating its variadic
*args parameter with Any, importing Any from typing if needed, while preserving
the existing return annotation and behavior.
In `@tests/financial/test_six_swiss_exchange.py`:
- Around line 30-35: Replace the unnecessary self.full_range instance attribute
with a local full_range variable in test_berchtolds_day, test_christmas_eve, and
test_new_years_eve at tests/financial/test_six_swiss_exchange.py ranges 30-35,
39-44, and 48-53 respectively, and update each generator to use the local
variable.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: ce66b938-2fe3-4632-b67c-d56e4f1705d5
📒 Files selected for processing (2)
holidays/financial/six_swiss_exchange.pytests/financial/test_six_swiss_exchange.py
|



Proposed change
This PR adds the holidays for the SIX Swiss Exchange (XSWX) financial calendar and l10n support.
Part of GSoC (#3424)
holidaysfunctionality in general)Checklist
make checklocally; all checks and tests passed.