Skip to content

Commit 2196f87

Browse files
committed
fixing some ruff issues
1 parent 411e6c8 commit 2196f87

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/py/tests/test_readme.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def find_project_root(start_path: Optional[Path]) -> Path:
5252
current_path = current_path.parent
5353

5454
# If we've reached the root directory without finding .git
55-
raise FileNotFoundError("Could not find project root: no .git directory found in any parent directory")
55+
raise FileNotFoundError("No .git directory found in any parent directory")
5656

5757

5858
@pytest.fixture
@@ -65,7 +65,7 @@ def project_root() -> Path:
6565
return find_project_root(Path(__file__).parent)
6666

6767

68-
@pytest.fixture()
68+
@pytest.fixture
6969
def docstring(project_root: Path) -> str:
7070
"""Extract Python code blocks from README.md and prepare them for doctest.
7171
@@ -131,4 +131,4 @@ def test_blocks(project_root: Path, docstring: str, capfd: CaptureFixture[str])
131131

132132
# If there is any output (error message), fail the test
133133
if captured.out:
134-
pytest.fail(f"Doctests failed with the following output:\n{captured.out} and \n{docstring}")
134+
pytest.fail(f"Doctests failed with:\n{captured.out} and \n{docstring}")

0 commit comments

Comments
 (0)