ruff: enable flake8-logging-format rule

This commit is contained in:
Jelle van der Waa 2023-11-02 12:44:47 +01:00 committed by Jelle van der Waa
parent ffd1ea58be
commit 9aef60e8fc
2 changed files with 2 additions and 1 deletions

View File

@ -105,6 +105,6 @@ def handle(self, *args, **options):
try:
_, created = Donor.objects.get_or_create(name=name)
if created:
logger.info(u'Adding donor: {}'.format(name))
logger.info('Adding donor: %s', name)
except DBError as e:
logger.info(u'Error while adding donor: %s, %s', name, e)

View File

@ -2,6 +2,7 @@ select = [
"C4", # flake8-comprehensions
"E", # pycodestyle
"F", # pyflakes
"G", # flake8-logging-format
]
# Never enforce `E501` (line length violations).