diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5252f7107..bcedfd206 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,11 +6,11 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/PyCQA/isort - rev: 7.0.0 + rev: 8.0.1 hooks: - id: isort - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.12.0 + rev: 26.3.1 hooks: - id: black args: [--safe, --quiet] diff --git a/packages/python-ta/tests/test_contracts/test_class_contracts.py b/packages/python-ta/tests/test_contracts/test_class_contracts.py index 0fc015d0a..3f01facb9 100644 --- a/packages/python-ta/tests/test_contracts/test_class_contracts.py +++ b/packages/python-ta/tests/test_contracts/test_class_contracts.py @@ -295,12 +295,9 @@ def test_create_margherita_invalid() -> None: with pytest.raises(AssertionError) as excinfo: Pizza.margherita(0) msg = str(excinfo.value) - assert ( - "0 \ + assert "0 \ < self.radius \ - <= 10" - in msg - ) + <= 10" in msg def test_circle_area_valid() -> None: diff --git a/packages/python-ta/tests/test_z3_visitor.py b/packages/python-ta/tests/test_z3_visitor.py index 6b32e3b59..4da06517c 100644 --- a/packages/python-ta/tests/test_z3_visitor.py +++ b/packages/python-ta/tests/test_z3_visitor.py @@ -18,8 +18,7 @@ def f(x: int, y: float, z: bool, a: str): """ # test cases for arithmetic expressions -arithmetic_list = [ - """ +arithmetic_list = [""" def f(x: int, y: int, z: float, a): ''' Preconditions: @@ -28,12 +27,10 @@ def f(x: int, y: int, z: float, a): - x + y != z ''' pass - """ -] + """] # test cases for boolean expressions -boolean_list = [ - """ +boolean_list = [""" def f(x: bool, y: bool, z: bool, a): ''' Preconditions: @@ -41,8 +38,7 @@ def f(x: bool, y: bool, z: bool, a): - not (x or y or z) ''' pass - """ -] + """] # test cases for container (list/set/tuple) expressions container_list = [