Skip to content

Commit b8b67c7

Browse files
committed
Try to resolve linting inconsistency
flake8 is not flagging this missing space locally, but it is failling in pre-commit.ci
1 parent 90024ec commit b8b67c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/formats/test_rfc3339.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def test_basic_bounds_validated(datestr):
7878
)
7979
def test_day_bounds_by_month(month, maxday):
8080
good_date = f"2020-{month:02}-{maxday:02}T00:00:00Z"
81-
bad_date = f"2020-{month:02}-{maxday+1:02}T00:00:00Z"
81+
bad_date = f"2020-{month:02}-{(maxday + 1):02}T00:00:00Z"
8282
assert validate(good_date)
8383
assert not validate(bad_date)
8484

@@ -94,6 +94,6 @@ def test_day_bounds_by_month(month, maxday):
9494
)
9595
def test_day_bounds_for_february(year, maxday):
9696
good_date = f"{year}-02-{maxday:02}T00:00:00Z"
97-
bad_date = f"{year}-02-{maxday+1:02}T00:00:00Z"
97+
bad_date = f"{year}-02-{(maxday + 1):02}T00:00:00Z"
9898
assert validate(good_date)
9999
assert not validate(bad_date)

0 commit comments

Comments
 (0)