Skip to content

Commit f6b2741

Browse files
committed
Resolve ruff check warnings
1 parent 7fa468c commit f6b2741

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

pulp_python/app/serializers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ def validate_includes(self, value):
402402
Requirement(pkg)
403403
except ValueError as ve:
404404
raise serializers.ValidationError(
405-
_("includes specifier {} is invalid. {}".format(pkg, ve))
405+
_("includes specifier {} is invalid. {}").format(pkg, ve)
406406
)
407407
return value
408408

@@ -413,7 +413,7 @@ def validate_excludes(self, value):
413413
Requirement(pkg)
414414
except ValueError as ve:
415415
raise serializers.ValidationError(
416-
_("excludes specifier {} is invalid. {}".format(pkg, ve))
416+
_("excludes specifier {} is invalid. {}").format(pkg, ve)
417417
)
418418
return value
419419

pulp_python/tests/functional/api/test_domains.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import pytest
77

8-
from pulpcore.app import settings
8+
from pulpcore.app import settings # noqa: TID251
99

1010
from pulp_python.tests.functional.constants import (
1111
PYTHON_EGG_FILENAME,

pulp_python/tests/functional/api/test_export_import.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import pytest
1111

12-
from pulpcore.app import settings
12+
from pulpcore.app import settings # noqa: TID251
1313

1414
from pulp_python.tests.functional.constants import (
1515
PYTHON_SM_PROJECT_SPECIFIER,

0 commit comments

Comments
 (0)