Skip to content

Commit

Permalink
Try to resolve linting inconsistency
Browse files Browse the repository at this point in the history
flake8 is not flagging this missing space locally, but it is failling
in pre-commit.ci
  • Loading branch information
sirosen committed Apr 28, 2024
1 parent 90024ec commit b8b67c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/formats/test_rfc3339.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def test_basic_bounds_validated(datestr):
)
def test_day_bounds_by_month(month, maxday):
good_date = f"2020-{month:02}-{maxday:02}T00:00:00Z"
bad_date = f"2020-{month:02}-{maxday+1:02}T00:00:00Z"
bad_date = f"2020-{month:02}-{(maxday + 1):02}T00:00:00Z"
assert validate(good_date)
assert not validate(bad_date)

Expand All @@ -94,6 +94,6 @@ def test_day_bounds_by_month(month, maxday):
)
def test_day_bounds_for_february(year, maxday):
good_date = f"{year}-02-{maxday:02}T00:00:00Z"
bad_date = f"{year}-02-{maxday+1:02}T00:00:00Z"
bad_date = f"{year}-02-{(maxday + 1):02}T00:00:00Z"
assert validate(good_date)
assert not validate(bad_date)

0 comments on commit b8b67c7

Please sign in to comment.