Skip to content

Commit d27fd0e

Browse files
committed
Black formatting
1 parent bf2cb78 commit d27fd0e

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

src/aws_cron_expression_validator/validator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ class AWSCronExpressionDayOfWeekError(AWSCronExpressionError):
3232

3333

3434
class AWSCronExpressionValidator:
35-
3635
"""
3736
Validates these AWS EventBridge cron expressions, which are similar to, but not compatible with standard
3837
unix cron expressions:

tests/aws_cron_expression_validator/test_validator.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -190,24 +190,24 @@ def test_year_regex(self):
190190

191191
def test_validator(self):
192192
valid_expressions = [
193-
"0 18 ? * MON-FRI *", # Fire at 6pm, on Mondays to Fridays
194-
"0 18 ? * L *", # Fire at 6pm, on Saturdays
195-
"0 18 ? * SATL *", # Fire at 6pm, on the last Saturday of every month
196-
"0 18 L * ? *", # Fire at 6pm, on the last day of every month
197-
"0 18 31W * ? *", # Fire at 6pm, on the nearest weekday to the 31st of the month
198-
"0 10 * * ? *", # Fire at 10am, on every day
199-
"15 12 * * ? *", # Fire at 12:15pm, on every day
200-
"0 8 1 * ? *", # Fire at 8am on the first day of every month
201-
"1/5 8-17 ? * Mon-Fri *", # Fire every 5 minutes, starting on the 1st minute
202-
# (i.e. 1st, 6th, 11th, 16th, 21st, 26th, 31st, 36th, 41st, 46th, 51st & 56th minutes), from 8am to 5pm, Mondays to Fridays
203-
"0 9 ? * 2#1 *", # Fire at 9am, on the 1st Monday of the every month
204-
"0 07/12 ? * * *", # Fire every 12 hours, starting on the 7th hour (i.e. 7am and 7pm), every day.
205-
"10,20,30,40 07/12 ? * * *", # Fire on the 10th, 20th, 30th & 40th minutes, every 12 hours, starting on the 7th hour (i.e. 7am and 7pm), every day.
206-
"10 10,15,20,23 ? * * *", # Fire at 10:10am, 3:10pm, 8:10pm & 11:10pm, every day
207-
"10 10 15,30,31 * ? *", # Fire at 10:10am on the 15th, 30th & 31st day of every month
208-
"10 10 15 JAN,JUL,DEC ? *", # Fire at 10:10am on the 15th day of January, July and December
209-
"10 10 31 04,09,12 ? *", # Fire at 10:10am on the 31st day of April, September and December
210-
"0,5 07/12 ? * 1,5,7 *",
193+
"0 18 ? * MON-FRI *", # Fire at 6pm, on Mondays to Fridays
194+
"0 18 ? * L *", # Fire at 6pm, on Saturdays
195+
"0 18 ? * SATL *", # Fire at 6pm, on the last Saturday of every month
196+
"0 18 L * ? *", # Fire at 6pm, on the last day of every month
197+
"0 18 31W * ? *", # Fire at 6pm, on the nearest weekday to the 31st of the month
198+
"0 10 * * ? *", # Fire at 10am, on every day
199+
"15 12 * * ? *", # Fire at 12:15pm, on every day
200+
"0 8 1 * ? *", # Fire at 8am on the first day of every month
201+
"1/5 8-17 ? * Mon-Fri *", # Fire every 5 minutes, starting on the 1st minute
202+
# (i.e. 1st, 6th, 11th, 16th, 21st, 26th, 31st, 36th, 41st, 46th, 51st & 56th minutes), from 8am to 5pm, Mondays to Fridays
203+
"0 9 ? * 2#1 *", # Fire at 9am, on the 1st Monday of the every month
204+
"0 07/12 ? * * *", # Fire every 12 hours, starting on the 7th hour (i.e. 7am and 7pm), every day.
205+
"10,20,30,40 07/12 ? * * *", # Fire on the 10th, 20th, 30th & 40th minutes, every 12 hours, starting on the 7th hour (i.e. 7am and 7pm), every day.
206+
"10 10,15,20,23 ? * * *", # Fire at 10:10am, 3:10pm, 8:10pm & 11:10pm, every day
207+
"10 10 15,30,31 * ? *", # Fire at 10:10am on the 15th, 30th & 31st day of every month
208+
"10 10 15 JAN,JUL,DEC ? *", # Fire at 10:10am on the 15th day of January, July and December
209+
"10 10 31 04,09,12 ? *", # Fire at 10:10am on the 31st day of April, September and December
210+
"0,5 07/12 ? * 1,5,7 *",
211211
"0,5 07/12 ? * 1,5,7 2020,2021,2028,2199",
212212
"0,5 07/12 ? * 1,5,7 2020-2021,2028-2199",
213213
"0,5 07/12 ? * 1,5,7 2000-2199",

0 commit comments

Comments
 (0)