Skip to content

Commit 3423878

Browse files
committed
Ruff formatting
1 parent 7b6f15b commit 3423878

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/test_moon_phase.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class TestMoonPhase:
1919
(0.5, "wi-moon-full"),
2020
(0.75, "wi-moon-third-quarter"),
2121
(1.0, "wi-moon-new"),
22-
]
22+
],
2323
)
2424
def test_wi_moon_phase_boundary_values(self, value, expected):
2525
"""Test moon phase with exact boundary values between phases."""
@@ -43,7 +43,7 @@ def test_wi_moon_phase_boundary_values(self, value, expected):
4343
(0.751, "wi-moon-waning-crescent-1"),
4444
# Test values very close to 1.0
4545
(0.999, "wi-moon-waning-crescent-6"),
46-
]
46+
],
4747
)
4848
def test_wi_moon_phase_very_small_increments(self, value, expected):
4949
"""Test moon phase with very small increments to verify calculation precision."""
@@ -76,7 +76,7 @@ def test_wi_moon_phase_all_crescent_numbers(self, i):
7676
(0.65, 4), # Late waning gibbous
7777
(0.70, 5), # Very late waning gibbous
7878
(0.74, 6), # Just before third quarter
79-
]
79+
],
8080
)
8181
def test_wi_moon_phase_all_gibbous_numbers(self, value, expected_num):
8282
"""Test that all gibbous phases produce valid numbers 1-6."""
@@ -93,7 +93,7 @@ def test_wi_moon_phase_all_gibbous_numbers(self, value, expected_num):
9393
(0.375, "wi-moon-waxing-gibbous-4"), # 3/8
9494
(0.625, "wi-moon-waning-gibbous-4"), # 5/8
9595
(0.875, "wi-moon-waning-crescent-4"), # 7/8
96-
]
96+
],
9797
)
9898
def test_wi_moon_phase_mathematical_precision(self, value, expected):
9999
"""Test moon phase calculation with mathematically precise values."""

tests/test_render_helper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def test_extend_list_different_default_values(self):
6161
(dt.datetime(2024, 1, 1, 12, 0), "12:00"),
6262
(dt.datetime(2024, 1, 1, 23, 59), "23:59"),
6363
(dt.datetime(2024, 1, 1, 14, 5), "14:05"),
64-
]
64+
],
6565
)
6666
def test_get_short_time_24hour_format(self, datetime_obj, expected):
6767
"""Test get_short_time with 24-hour format."""
@@ -85,7 +85,7 @@ def test_get_short_time_24hour_format(self, datetime_obj, expected):
8585
(dt.datetime(2024, 1, 1, 13, 0), "1pm"),
8686
(dt.datetime(2024, 1, 1, 15, 20), "3:20pm"),
8787
(dt.datetime(2024, 1, 1, 23, 59), "11:59pm"),
88-
]
88+
],
8989
)
9090
def test_get_short_time_12hour_format(self, datetime_obj, expected):
9191
"""Test get_short_time with 12-hour format."""
@@ -99,7 +99,7 @@ def test_get_short_time_12hour_format(self, datetime_obj, expected):
9999
(dt.datetime(2024, 1, 1, 5, 0), "5am"),
100100
(dt.datetime(2024, 1, 1, 12, 0), "12pm"),
101101
(dt.datetime(2024, 1, 1, 18, 0), "6pm"),
102-
]
102+
],
103103
)
104104
def test_get_short_time_zero_minutes(self, datetime_obj, expected):
105105
"""Test get_short_time when minutes are zero in 12-hour format."""

0 commit comments

Comments
 (0)