Skip to content

Commit 756d354

Browse files
committed
Formatted all files with black
1 parent a3d7dce commit 756d354

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+1841
-1437
lines changed

holidays/__init__.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
# License: MIT (see LICENSE file)
1313
from holidays.countries import *
1414
from holidays.constants import MON, TUE, WED, THU, FRI, SAT, SUN, WEEKEND
15-
from holidays.constants import JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, \
16-
NOV, DEC
15+
from holidays.constants import JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC
1716
from holidays.holiday_base import HolidayBase, createHolidaySum
1817
from holidays.utils import list_supported_countries, CountryHoliday
1918

20-
__version__ = '0.10.3'
19+
__version__ = "0.10.3"

holidays/constants.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@
1414
MON, TUE, WED, THU, FRI, SAT, SUN = range(7)
1515
WEEKEND = (SAT, SUN)
1616

17-
JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, \
18-
NOV, DEC = range(1, 13)
17+
JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC = range(1, 13)

holidays/countries/__init__.py

+11-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,16 @@
6969
from .switzerland import Switzerland, CH, CHE
7070
from .turkey import Turkey, TR, TUR
7171
from .ukraine import Ukraine, UA, UKR
72-
from .united_kingdom import UnitedKingdom, UK, GB, England, Wales, Scotland,\
73-
IsleOfMan, NorthernIreland, GBR
72+
from .united_kingdom import (
73+
UnitedKingdom,
74+
UK,
75+
GB,
76+
England,
77+
Wales,
78+
Scotland,
79+
IsleOfMan,
80+
NorthernIreland,
81+
GBR,
82+
)
7483
from .united_states import UnitedStates, US, USA
7584
from .vietnam import Vietnam, VN, VNM

holidays/countries/argentina.py

+32-22
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
from dateutil.relativedelta import relativedelta as rd, FR, TH
1818

1919
from holidays.constants import WEEKEND
20-
from holidays.constants import JAN, MAR, APR, MAY, JUN, JUL, AUG, OCT, \
21-
NOV, DEC
20+
from holidays.constants import JAN, MAR, APR, MAY, JUN, JUL, AUG, OCT, NOV, DEC
2221
from holidays.holiday_base import HolidayBase
2322

2423

@@ -29,7 +28,7 @@ class Argentina(HolidayBase):
2928
# https://www.clarin.com/feriados/
3029

3130
def __init__(self, **kwargs):
32-
self.country = 'AR'
31+
self.country = "AR"
3332
HolidayBase.__init__(self, **kwargs)
3433

3534
def _populate(self, year):
@@ -45,8 +44,10 @@ def _populate(self, year):
4544
self[easter(year) - rd(days=47)] = name
4645

4746
# Memory's National Day for the Truth and Justice
48-
name = "Día Nacional de la Memoria por la Verdad y la Justicia " \
49-
"[Memory's National Day for the Truth and Justice]"
47+
name = (
48+
"Día Nacional de la Memoria por la Verdad y la Justicia "
49+
"[Memory's National Day for the Truth and Justice]"
50+
)
5051

5152
if not self.observed and date(year, MAR, 24).weekday() in WEEKEND:
5253
pass
@@ -56,7 +57,7 @@ def _populate(self, year):
5657
# Holy Week
5758
name_thu = "Semana Santa (Jueves Santo) [Holy day (Holy Thursday)]"
5859
name_fri = "Semana Santa (Viernes Santo) [Holy day (Holy Friday)]"
59-
name_easter = 'Día de Pascuas [Easter Day]'
60+
name_easter = "Día de Pascuas [Easter Day]"
6061

6162
self[easter(year) + rd(weekday=TH(-1))] = name_thu
6263
self[easter(year) + rd(weekday=FR(-1))] = name_fri
@@ -70,10 +71,12 @@ def _populate(self, year):
7071
if not self.observed and date(year, APR, 2).weekday() in WEEKEND:
7172
pass
7273
else:
73-
self[date(year, APR, 2)] = "Día del Veterano y de los Caidos " \
74-
"en la Guerra de Malvinas [Veterans" \
75-
" Day and the Fallen in the" \
74+
self[date(year, APR, 2)] = (
75+
"Día del Veterano y de los Caidos "
76+
"en la Guerra de Malvinas [Veterans"
77+
" Day and the Fallen in the"
7678
" Malvinas War]"
79+
)
7780

7881
# Labor Day
7982
name = "Día del Trabajo [Labour Day]"
@@ -90,18 +93,22 @@ def _populate(self, year):
9093
self[date(year, MAY, 25)] = name
9194

9295
# Day Pass to the Immortality of General Martín Miguel de Güemes.
93-
name = "Día Pase a la Inmortalidad " \
94-
"del General Martín Miguel de Güemes [Day Pass " \
95-
"to the Immortality of General Martín Miguel de Güemes]"
96+
name = (
97+
"Día Pase a la Inmortalidad "
98+
"del General Martín Miguel de Güemes [Day Pass "
99+
"to the Immortality of General Martín Miguel de Güemes]"
100+
)
96101
if not self.observed and date(year, JUN, 17).weekday() in WEEKEND:
97102
pass
98103
else:
99104
self[date(year, JUN, 17)] = name
100105

101106
# Day Pass to the Immortality of General D. Manuel Belgrano.
102-
name = "Día Pase a la Inmortalidad " \
103-
"del General D. Manuel Belgrano [Day Pass " \
104-
"to the Immortality of General D. Manuel Belgrano]"
107+
name = (
108+
"Día Pase a la Inmortalidad "
109+
"del General D. Manuel Belgrano [Day Pass "
110+
"to the Immortality of General D. Manuel Belgrano]"
111+
)
105112
if not self.observed and date(year, JUN, 20).weekday() in WEEKEND:
106113
pass
107114
else:
@@ -115,9 +122,11 @@ def _populate(self, year):
115122
self[date(year, JUL, 9)] = name
116123

117124
# Day Pass to the Immortality of General D. José de San Martin
118-
name = "Día Pase a la Inmortalidad " \
119-
"del General D. José de San Martin [Day Pass " \
120-
"to the Immortality of General D. José de San Martin]"
125+
name = (
126+
"Día Pase a la Inmortalidad "
127+
"del General D. José de San Martin [Day Pass "
128+
"to the Immortality of General D. José de San Martin]"
129+
)
121130
if not self.observed and date(year, AUG, 17).weekday() in WEEKEND:
122131
pass
123132
else:
@@ -129,9 +138,11 @@ def _populate(self, year):
129138
elif year < 2010:
130139
self[date(year, OCT, 12)] = "Día de la Raza [Columbus day]"
131140
else:
132-
self[date(year, OCT, 12)] = "Día del Respeto a la Diversidad" \
133-
" Cultural [Respect for" \
141+
self[date(year, OCT, 12)] = (
142+
"Día del Respeto a la Diversidad"
143+
" Cultural [Respect for"
134144
" Cultural Diversity Day]"
145+
)
135146
# National Sovereignty Day
136147
name = "Día Nacional de la Soberanía [National Sovereignty Day]"
137148
if not self.observed and date(year, NOV, 20).weekday() in WEEKEND:
@@ -143,8 +154,7 @@ def _populate(self, year):
143154
if not self.observed and date(year, DEC, 8).weekday() in WEEKEND:
144155
pass
145156
else:
146-
self[date(year, DEC, 8)] = "La Inmaculada Concepción" \
147-
" [Immaculate Conception]"
157+
self[date(year, DEC, 8)] = "La Inmaculada Concepción" " [Immaculate Conception]"
148158

149159
# Christmas
150160
self[date(year, DEC, 25)] = "Navidad [Christmas]"

holidays/countries/aruba.py

+14-7
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
from dateutil.easter import easter
1717
from dateutil.relativedelta import relativedelta as rd, FR
1818

19-
from holidays.constants import JAN, MAR, APR, MAY, AUG, \
20-
DEC
19+
from holidays.constants import JAN, MAR, APR, MAY, AUG, DEC
2120
from holidays.holiday_base import HolidayBase
2221

2322

@@ -26,7 +25,7 @@ class Aruba(HolidayBase):
2625
# https://www.visitaruba.com/about-aruba/national-holidays-and-celebrations/
2726

2827
def __init__(self, **kwargs):
29-
self.country = 'AW'
28+
self.country = "AW"
3029
HolidayBase.__init__(self, **kwargs)
3130

3231
def _populate(self, year):
@@ -37,18 +36,24 @@ def _populate(self, year):
3736
self[date(year, JAN, 25)] = "Dia Di Betico [Betico Day]"
3837

3938
# Carnaval Monday
40-
self[easter(year) + rd(days=-48)] = "Dialuna di Carnaval \
39+
self[
40+
easter(year) + rd(days=-48)
41+
] = "Dialuna di Carnaval \
4142
[Carnaval Monday]"
4243

4344
# Dia di Himno y Bandera
44-
self[date(year, MAR, 18)] = "Dia di Himno y Bandera \
45+
self[
46+
date(year, MAR, 18)
47+
] = "Dia di Himno y Bandera \
4548
[National Anthem & Flag Day]"
4649

4750
# Good Friday
4851
self[easter(year) + rd(weekday=FR(-1))] = "Bierna Santo [Good Friday]"
4952

5053
# Easter Monday
51-
self[easter(year) + rd(days=1)] = "Di Dos Dia di Pasco di Resureccion \
54+
self[
55+
easter(year) + rd(days=1)
56+
] = "Di Dos Dia di Pasco di Resureccion \
5257
[Easter Monday]"
5358

5459
# King's Day
@@ -83,7 +88,9 @@ def _populate(self, year):
8388
self[date(year, DEC, 25)] = "Pasco di Nacemento [Christmas]"
8489

8590
# Second Christmas
86-
self[date(year, DEC, 26)] = "Di Dos Dia di Pasco di \
91+
self[
92+
date(year, DEC, 26)
93+
] = "Di Dos Dia di Pasco di \
8794
Nacemento [Second Christmas]"
8895

8996

0 commit comments

Comments
 (0)