misc: update to black 22.3.0

This commit is contained in:
Frédéric Péters 2022-04-01 09:54:19 +02:00
parent 32224317a0
commit 1bcdb14e91
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/psf/black
rev: 21.10b0
rev: 22.3.0
hooks:
- id: black
args: ['--target-version', 'py37', '--skip-string-normalization', '--line-length', '110']

View File

@ -50,7 +50,7 @@ class Command(InteractiveTenantOption, BaseCommand):
template = Template(fd.read())
context = Context({'environ': os.environ})
new_file_name = os.path.join(
tempfile.gettempdir(), '%s-%s' % (tempfile.gettempprefix(), random.randint(0, 10 ** 10))
tempfile.gettempdir(), '%s-%s' % (tempfile.gettempprefix(), random.randint(0, 10**10))
)
with open(new_file_name, 'w') as fd2:
fd2.write(template.render(context))