diff --git a/benchmarks/docs_build_bench.py b/benchmarks/docs_build_bench.py index 75af0ae39..411c05c91 100644 --- a/benchmarks/docs_build_bench.py +++ b/benchmarks/docs_build_bench.py @@ -9,7 +9,6 @@ from __future__ import annotations from pathlib import Path - DOCS_DIR = Path("docs") PLAYBOOK_PATH = DOCS_DIR / "development" / "review_playbook.md" @@ -35,17 +34,13 @@ class DocsParseSuite: """Benchmark counting markdown sections in the playbook.""" if self.playbook_text: lines: list[str] = self.playbook_text.splitlines() - _sections: list[str] = [ - line for line in lines if line.startswith("#") - ] + _sections: list[str] = [line for line in lines if line.startswith("#")] def time_extract_tables(self) -> None: """Benchmark extracting markdown table rows from the playbook.""" if self.playbook_text: lines: list[str] = self.playbook_text.splitlines() - _table_rows: list[str] = [ - line for line in lines if line.startswith("|") - ] + _table_rows: list[str] = [line for line in lines if line.startswith("|")] class DocsDiscoverySuite: diff --git a/features/steps/review_playbook_steps.py b/features/steps/review_playbook_steps.py index 0cedb1d1c..0e2838f03 100644 --- a/features/steps/review_playbook_steps.py +++ b/features/steps/review_playbook_steps.py @@ -19,9 +19,7 @@ def step_then_review_playbook_exists(context: Context) -> None: """Verify the review playbook file exists.""" playbook_path: Path = context.review_playbook_path if not playbook_path.exists(): - raise AssertionError( - f"Review playbook file not found at {playbook_path}" - ) + raise AssertionError(f"Review playbook file not found at {playbook_path}") @when("I read the review playbook content") @@ -29,9 +27,7 @@ def step_when_read_review_playbook(context: Context) -> None: """Read the review playbook file content.""" playbook_path: Path = context.review_playbook_path if not playbook_path.exists(): - raise FileNotFoundError( - f"Review playbook file not found at {playbook_path}" - ) + raise FileNotFoundError(f"Review playbook file not found at {playbook_path}") context.review_playbook_content = playbook_path.read_text(encoding="utf-8") @@ -52,9 +48,7 @@ def step_then_playbook_contains_text(context: Context, text: str) -> None: """Verify the playbook contains specific text.""" content: str = context.review_playbook_content if text not in content: - raise AssertionError( - f"Text '{text}' not found in review playbook" - ) + raise AssertionError(f"Text '{text}' not found in review playbook") @then("the playbook should reference these nox sessions:")