mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-03-16 22:20:26 +00:00
Add pyupgrade to pre-commit-config (#385)
This commit is contained in:
parent
10c47181bb
commit
be973ca71f
2 changed files with 7 additions and 2 deletions
|
|
@ -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]
|
||||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue