Skip to content

Commit b2d32e4

Browse files
Ignore ruff error
1 parent d892973 commit b2d32e4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/tests/test_consumer.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@
5050
len_max = 120
5151
CACHE_DIR = Path.home() / ".cache" / "docs_as_code_consumer_tests"
5252
log_file_name = "consumer_test.log"
53-
log_fp = open(log_file_name, "a", encoding="utf-8") # ruff-ignore: SIM115
53+
# Need to ignore the ruff error here. Due to how the script is written,
54+
# can not use a context manager to open the log file, even though it would be preferable
55+
# In a future re-write this should be considered.
56+
log_fp = open(log_file_name, "a", encoding="utf-8") # noqa: SIM115
5457
console = Console(file=log_fp, force_terminal=False, width=120, color_system=None)
5558

5659

@@ -627,7 +630,6 @@ def test_and_clone_repos_updated(sphinx_base_dir: Path, pytestconfig: Config):
627630

628631
repos_to_test = filter_repos(repo_tests)
629632

630-
631633
# Exit early if we don't find repos to test.
632634
if not repos_to_test:
633635
console.print("[red]No repositories to test after filtering![/red]")

0 commit comments

Comments
 (0)