style: apply ruff lint fixes and formatting to figment modules
Fixes: unused imports, import sorting, unused variable, overly broad exception type in test. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -31,7 +31,8 @@ class TestRasterizeSvg:
|
||||
|
||||
def test_nonexistent_file_raises(self):
|
||||
import pytest
|
||||
with pytest.raises(Exception):
|
||||
|
||||
with pytest.raises((FileNotFoundError, OSError)):
|
||||
rasterize_svg("/nonexistent/file.svg", 40, 20)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user