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"