From 63b0607f58cc0bc404b044d9a55b1bb4c71d8789 Mon Sep 17 00:00:00 2001 From: OMEGARAZER <869111+OMEGARAZER@users.noreply.github.com> Date: Sat, 28 Jan 2023 02:04:06 -0500 Subject: [PATCH] bugbear B007 --- bdfr/downloader.py | 2 +- tests/test_file_name_formatter.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bdfr/downloader.py b/bdfr/downloader.py index 0a5177e..20984e6 100644 --- a/bdfr/downloader.py +++ b/bdfr/downloader.py @@ -156,7 +156,7 @@ class RedditDownloader(RedditConnector): @staticmethod def scan_existing_files(directory: Path) -> dict[str, Path]: files = [] - for (dirpath, dirnames, filenames) in os.walk(directory): + for (dirpath, _dirnames, filenames) in os.walk(directory): files.extend([Path(dirpath, file) for file in filenames]) logger.info(f"Calculating hashes for {len(files)} files") diff --git a/tests/test_file_name_formatter.py b/tests/test_file_name_formatter.py index b23b0b1..f456415 100644 --- a/tests/test_file_name_formatter.py +++ b/tests/test_file_name_formatter.py @@ -214,7 +214,7 @@ def test_format_full_with_index_suffix( def test_format_multiple_resources(): mocks = [] - for i in range(1, 5): + for _i in range(1, 5): new_mock = MagicMock() new_mock.url = "https://example.com/test.png" new_mock.extension = ".png"