misc: update to black 22.3.0
This commit is contained in:
parent
32224317a0
commit
1bcdb14e91
|
@ -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']
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue