Skip to content

Commit

Permalink
bugbear B007
Browse files Browse the repository at this point in the history
  • Loading branch information
OMEGARAZER committed Jan 28, 2023
1 parent cf5f7bf commit 63b0607
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bdfr/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def _download_submission(self, submission: praw.models.Submission):
@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")

Expand Down
2 changes: 1 addition & 1 deletion tests/test_file_name_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 63b0607

Please sign in to comment.