Add isort pre-commit hook, sort imports in src and test directories

This commit is contained in:
Darren Burns
2023-02-09 13:28:08 +00:00
parent 67c2127e46
commit 9287f64a66
131 changed files with 268 additions and 297 deletions

View File

@@ -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)