vacanza / holidays

Generate and work with holidays in Python
https://pypi.org/project/holidays
MIT License
1.45k stars 460 forks source link

Add 1991-2022 Russian substituted holidays #1957

Closed PPsyrius closed 1 month ago

PPsyrius commented 1 month ago

Proposed change

Add 1991-2022 Russian substituted holidays, 1991-2025 Russian observed holidays.

Resolves #432 .

Type of change

Checklist

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (1a6a764) to head (8d4808e). Report is 3 commits behind head on dev.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev #1957 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 188 188 Lines 11421 11422 +1 Branches 1794 1794 ========================================= + Hits 11421 11422 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

PPsyrius commented 1 month ago

I don't think there's a way to reduce "new code duplication" for our test suite here without changing how def test_special_holidays(self) is coded, so ignore sonarcloud results for now.

KJhellico commented 1 month ago

@PPsyrius, thank you for this addition. Although I like researching substituted holidays in different countries, I prefer not to make changes to RU holidays myself for personal reasons.

If you are interested, you can look for more complete list here.

PPsyrius commented 1 month ago

@KJhellico Understandable, in any case I've expanded and updated Russian substituted holidays down to 1991, as well as adding in-lieu observance for 1991-2025 from the Wikipedia source you posted above. :pray:

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
1.6% Duplication on New Code

See analysis details on SonarCloud