mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add isort pre-commit hook, sort imports in src and test directories
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import pytest
|
||||
|
||||
from textual.geometry import clamp, Offset, Size, Region, Spacing
|
||||
from textual.geometry import Offset, Region, Size, Spacing, clamp
|
||||
|
||||
|
||||
def test_dimensions_region():
|
||||
@@ -299,6 +299,7 @@ def test_size_line_range():
|
||||
assert Size(20, 0).line_range == range(0)
|
||||
assert Size(0, 20).line_range == range(20)
|
||||
|
||||
|
||||
def test_region_x_extents():
|
||||
assert Region(5, 10, 20, 30).column_span == (5, 25)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user