diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d99b43e..bbbd79b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,3 +12,8 @@ repos: rev: 5.10.1 hooks: - id: isort + - repo: https://github.com/asottile/pyupgrade + rev: v2.34.0 + hooks: + - id: pyupgrade + args: [--py37-plus] \ No newline at end of file diff --git a/auditlog_tests/tests.py b/auditlog_tests/tests.py index b79f1a6..5b8d206 100644 --- a/auditlog_tests/tests.py +++ b/auditlog_tests/tests.py @@ -205,10 +205,10 @@ class WithActorMixin: sequence = itertools.count() def setUp(self): - username = "actor_{}".format(next(self.sequence)) + username = f"actor_{next(self.sequence)}" self.user = get_user_model().objects.create( username=username, - email="{}@example.com".format(username), + email=f"{username}@example.com", password="secret", ) super().setUp()