fix linting issues

This commit is contained in:
Sina Atalay
2025-01-07 14:51:30 +03:00
parent 7bb2ca4eab
commit 135bc9d160
2 changed files with 3 additions and 4 deletions

View File

@@ -401,8 +401,7 @@ def are_these_two_directories_the_same(
if not file2.is_dir():
return False
return are_these_two_directories_the_same(file1, file2)
else:
return are_these_two_files_the_same(file1, file2)
return are_these_two_files_the_same(file1, file2)
return True
@@ -434,7 +433,7 @@ def are_these_two_files_the_same(file1: pathlib.Path, file2: pathlib.Path) -> bo
break
return result
elif extension1 == ".png":
if extension1 == ".png":
# fail if the relative difference is greater than 1%
return (
file1.stat().st_size - file2.stat().st_size

View File

@@ -1,8 +1,8 @@
import copy
import os
import pathlib
import sys
import shutil
import sys
import jinja2
import pytest