chore: migrate to ruff (#4305)
* base requirements * autofix * Configure ruff for Python linting and formatting - Set up minimal ruff configuration with basic checks (E, W, F, I) - Add temporary ignores for common issues during migration - Configure pre-commit hooks to use ruff with pass_filenames - This enables gradual migration from black to ruff * Delete sdj * autofixed only * migrate lint action * more autofixed * more fixes * change precommit * try changing the hook * try this stuff
This commit is contained in:
@@ -68,9 +68,9 @@ class TestTimezoneFormatting:
|
||||
|
||||
# Check that times are within tolerance
|
||||
time_diff = abs((parsed_time - current_time_in_tz).total_seconds())
|
||||
assert (
|
||||
time_diff <= tolerance_minutes * 60
|
||||
), f"Time difference too large: {time_diff}s. Parsed: {parsed_time}, Expected timezone: {current_time_in_tz}"
|
||||
assert time_diff <= tolerance_minutes * 60, (
|
||||
f"Time difference too large: {time_diff}s. Parsed: {parsed_time}, Expected timezone: {current_time_in_tz}"
|
||||
)
|
||||
|
||||
# Verify timezone info exists and format looks reasonable
|
||||
assert parsed_time.tzinfo is not None, "Parsed time should have timezone info"
|
||||
|
||||
Reference in New Issue
Block a user