Pylint: Enable consider-using-f-string

This commit is contained in:
Avram Lubkin 2023-05-23 10:06:43 -04:00 коммит произвёл Avram Lubkin
Родитель 9f8339e828
Коммит 26c3e9c327
2 изменённых файлов: 3 добавлений и 6 удалений

Просмотреть файл

@ -135,7 +135,7 @@ def process_commits(
# The patch commit diffs are stored as "(filename1)\n(diff1)\n(filename2)\n(diff2)..."
patch.commitDiffs = "\n".join(
[
"%s\n%s" % (diff.a_path, parse_diff(diff.diff))
f"{diff.a_path}\n{parse_diff(diff.diff)}"
for diff in commit_diffs
if diff.a_path is not None
]
@ -159,8 +159,8 @@ def process_commits(
num_patches += 1
# Log progress
if num_patches % 250 == 0:
logging.debug(" %d commits processed..." % num_patches)
logging.debug(" %d commits processed...", num_patches)
if add_to_database:
logging.info("%s patches added to database." % num_patches_added)
logging.info("%s patches added to database.", num_patches_added)
return all_patches

Просмотреть файл

@ -27,9 +27,6 @@ disable=
# Potential Bugs
global-statement,
# Syntax / Logic
consider-using-f-string,
# Logging
logging-fstring-interpolation,
logging-not-lazy,