From 2803a06581b4e0ca983d57cb5787c4d8d8e9cde7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 12 Mar 2024 19:40:58 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/pytest_rich/terminal.py | 18 ++++++------------ tests/example/test_basic.py | 9 +++------ 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/src/pytest_rich/terminal.py b/src/pytest_rich/terminal.py index 03d7189..d4fe6ca 100644 --- a/src/pytest_rich/terminal.py +++ b/src/pytest_rich/terminal.py @@ -101,21 +101,17 @@ def pytest_sessionstart(self, session: pytest.Session) -> None: self.console.print(header) - def pytest_internalerror(self, excrepr: ExceptionRepr) -> None: - ... + def pytest_internalerror(self, excrepr: ExceptionRepr) -> None: ... def pytest_warning_recorded( self, warning_message: warnings.WarningMessage, nodeid: str, - ) -> None: - ... + ) -> None: ... - def pytest_deselected(self, items: Sequence[pytest.Item]) -> None: - ... + def pytest_deselected(self, items: Sequence[pytest.Item]) -> None: ... - def pytest_plugin_registered(self, plugin) -> None: - ... + def pytest_plugin_registered(self, plugin) -> None: ... def pytest_runtest_logstart( self, nodeid: str, location: Tuple[str, Optional[int], str] @@ -301,11 +297,9 @@ def print_summary(self, error_messages): def pytest_keyboard_interrupt( self, excinfo: pytest.ExceptionInfo[BaseException] - ) -> None: - ... + ) -> None: ... - def pytest_unconfigure(self) -> None: - ... + def pytest_unconfigure(self) -> None: ... @property def verbose(self) -> bool: diff --git a/tests/example/test_basic.py b/tests/example/test_basic.py index a8bae4d..ec48a98 100644 --- a/tests/example/test_basic.py +++ b/tests/example/test_basic.py @@ -26,18 +26,15 @@ def test_teardown_error(teardown_error_fixture): @pytest.mark.skip -def test_skip_no_reason(): - ... +def test_skip_no_reason(): ... @pytest.mark.skip(reason="skipped") -def test_skip(): - ... +def test_skip(): ... @pytest.mark.skip("skipped") -def test_skip_no_keyword(): - ... +def test_skip_no_keyword(): ... def test_inline_skip():