Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
class Hesse(Germany):
"Hesse"
include_corpus_christi = True
class MecklenburgVorpommern(Germany):
"Mecklenburg-Vorpommern"
FIXED_HOLIDAYS = Germany.FIXED_HOLIDAYS + (
(10, 31, "Reformation Day"),
)
class LowerSaxony(Germany):
"Lower Saxony"
class NorthRhineWestphalia(Germany):
"North Rhine-Westphalia"
include_corpus_christi = True
include_all_saints = True
class RhinelandPalatinate(Germany):
"Rhineland-Palatinate"
include_corpus_christi = True
include_all_saints = True
FIXED_HOLIDAYS = Germany.FIXED_HOLIDAYS + (
(10, 31, "Reformation Day"),
)
include_epiphany = True
class SchleswigHolstein(Germany):
"Schleswig-Holstein"
class Thuringia(Germany):
"Thuringia"
FIXED_HOLIDAYS = Germany.FIXED_HOLIDAYS + (
(10, 31, "Reformation Day"),
)
class Portugal(WesternCalendar, ChristianMixin):
"Portugal"
include_good_friday = True
include_easter_sunday = True
FIXED_HOLIDAYS = WesternCalendar.FIXED_HOLIDAYS + (
(4, 25, "Dia da Liberdade"),
(5, 1, "Dia do Trabalhador"),
(6, 10, "Dia de Portugal"),
(8, 15, "Assunção de Nossa Senhora"),
(12, 8, "Imaculada Conceição"),
)
"Brandenburg"
FIXED_HOLIDAYS = Germany.FIXED_HOLIDAYS + (
(10, 31, "Reformation Day"),
)
class Bremen(Germany):
"Bremen"
class Hamburg(Germany):
"Hamburg"
class Hesse(Germany):
"Hesse"
include_corpus_christi = True
class MecklenburgVorpommern(Germany):
"Mecklenburg-Vorpommern"
FIXED_HOLIDAYS = Germany.FIXED_HOLIDAYS + (
(10, 31, "Reformation Day"),
)
class LowerSaxony(Germany):
"Lower Saxony"
)
def get_repentance_day(self, year):
"Wednesday before November 23"
day = date(year, 11, 23)
while day.weekday() != 2: # 2=Wednesday
day -= timedelta(days=1)
return (day, "Repentance Day")
def get_variable_days(self, year):
days = super(Germany, self).get_variable_days(year)
days.append(self.get_repentance_day(year))
return days
class SaxonyAnhalt(Germany):
"Saxony-Anhalt"
FIXED_HOLIDAYS = Germany.FIXED_HOLIDAYS + (
(10, 31, "Reformation Day"),
)
include_epiphany = True
class SchleswigHolstein(Germany):
"Schleswig-Holstein"
class Thuringia(Germany):
"Thuringia"
class Bremen(Germany):
"Bremen"
class Hamburg(Germany):
"Hamburg"
class Hesse(Germany):
"Hesse"
include_corpus_christi = True
class MecklenburgVorpommern(Germany):
"Mecklenburg-Vorpommern"
FIXED_HOLIDAYS = Germany.FIXED_HOLIDAYS + (
(10, 31, "Reformation Day"),
)
class LowerSaxony(Germany):
"Lower Saxony"
class NorthRhineWestphalia(Germany):
"North Rhine-Westphalia"
include_corpus_christi = True
include_all_saints = True
def get_variable_days(self, year):
days = super(Germany, self).get_variable_days(year)
days.append(self.get_repentance_day(year))
return days
days = super(Germany, self).get_variable_days(year)
days.append(self.get_repentance_day(year))
return days
class SaxonyAnhalt(Germany):
"Saxony-Anhalt"
FIXED_HOLIDAYS = Germany.FIXED_HOLIDAYS + (
(10, 31, "Reformation Day"),
)
include_epiphany = True
class SchleswigHolstein(Germany):
"Schleswig-Holstein"
class Thuringia(Germany):
"Thuringia"
FIXED_HOLIDAYS = Germany.FIXED_HOLIDAYS + (
(10, 31, "Reformation Day"),
)
class Portugal(WesternCalendar, ChristianMixin):
"Portugal"
include_good_friday = True
include_easter_sunday = True
"Germany"
FIXED_HOLIDAYS = WesternCalendar.FIXED_HOLIDAYS + (
(5, 1, "Labour Day"),
(10, 3, "Day of German Unity"),
)
include_easter_monday = True
include_ascension = True
include_whit_monday = True
include_good_friday = True
include_boxing_day = True
boxing_day_label = "Second Christmas Day"
class BadenWurttemberg(Germany):
"Baden-Württemberg"
include_epiphany = True
include_corpus_christi = True
include_all_saints = True
class Bavaria(Germany):
"Bavaria"
include_epiphany = True
include_corpus_christi = True
include_all_saints = True
include_assumption = True
include_corpus_christi = True
class MecklenburgVorpommern(Germany):
"Mecklenburg-Vorpommern"
FIXED_HOLIDAYS = Germany.FIXED_HOLIDAYS + (
(10, 31, "Reformation Day"),
)
class LowerSaxony(Germany):
"Lower Saxony"
class NorthRhineWestphalia(Germany):
"North Rhine-Westphalia"
include_corpus_christi = True
include_all_saints = True
class RhinelandPalatinate(Germany):
"Rhineland-Palatinate"
include_corpus_christi = True
include_all_saints = True
class Saarland(Germany):
"Saarland"
"Berlin"
class Brandenburg(Germany):
"Brandenburg"
FIXED_HOLIDAYS = Germany.FIXED_HOLIDAYS + (
(10, 31, "Reformation Day"),
)
class Bremen(Germany):
"Bremen"
class Hamburg(Germany):
"Hamburg"
class Hesse(Germany):
"Hesse"
include_corpus_christi = True
class MecklenburgVorpommern(Germany):
"Mecklenburg-Vorpommern"
FIXED_HOLIDAYS = Germany.FIXED_HOLIDAYS + (
(10, 31, "Reformation Day"),
)