Skip to content

Commit 285db0f

Browse files
committed
worksheet: fix minor lint formatting issue
1 parent e53e190 commit 285db0f

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

xlsxwriter/worksheet.py

+11-10
Original file line numberDiff line numberDiff line change
@@ -2986,13 +2986,13 @@ def conditional_format(
29862986
elif options["criteria"] == "tomorrow":
29872987
options["formula"] = "FLOOR(%s,1)=TODAY()+1" % start_cell
29882988

2989+
# fmt: off
29892990
elif options["criteria"] == "last7Days":
2990-
options[
2991-
"formula"
2992-
] = "AND(TODAY()-FLOOR(%s,1)<=6,FLOOR(%s,1)<=TODAY())" % (
2993-
start_cell,
2994-
start_cell,
2991+
options["formula"] = (
2992+
"AND(TODAY()-FLOOR(%s,1)<=6,FLOOR(%s,1)<=TODAY())"
2993+
% (start_cell, start_cell)
29952994
)
2995+
# fmt: on
29962996

29972997
elif options["criteria"] == "lastWeek":
29982998
options["formula"] = (
@@ -3023,11 +3023,12 @@ def conditional_format(
30233023
)
30243024

30253025
elif options["criteria"] == "thisMonth":
3026-
options[
3027-
"formula"
3028-
] = "AND(MONTH(%s)=MONTH(TODAY()),YEAR(%s)=YEAR(TODAY()))" % (
3029-
start_cell,
3030-
start_cell,
3026+
options["formula"] = (
3027+
"AND(MONTH(%s)=MONTH(TODAY()),YEAR(%s)=YEAR(TODAY()))"
3028+
% (
3029+
start_cell,
3030+
start_cell,
3031+
)
30313032
)
30323033

30333034
elif options["criteria"] == "nextMonth":

0 commit comments

Comments
 (0)