style: add trailing commas
This commit is contained in:
parent
1cf39ad10b
commit
e9f14a7525
3 changed files with 4 additions and 3 deletions
|
@ -17,7 +17,7 @@ def main() -> None:
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
prog='nyacme',
|
prog='nyacme',
|
||||||
description='fun uacme wrapper',
|
description='fun uacme wrapper',
|
||||||
formatter_class=argparse.ArgumentDefaultsHelpFormatter
|
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
|
||||||
)
|
)
|
||||||
parser.add_argument('-c', '--config', help='path to your config file', default='/etc/nyacme.toml')
|
parser.add_argument('-c', '--config', help='path to your config file', default='/etc/nyacme.toml')
|
||||||
parser.add_argument('-o', '--output', help='path to the certificate output directory', default='/etc/ssl/uacme')
|
parser.add_argument('-o', '--output', help='path to the certificate output directory', default='/etc/ssl/uacme')
|
||||||
|
@ -63,7 +63,7 @@ def main() -> None:
|
||||||
'-b', '384',
|
'-b', '384',
|
||||||
'--type', 'EC',
|
'--type', 'EC',
|
||||||
# '--force',
|
# '--force',
|
||||||
'issue'
|
'issue',
|
||||||
] + uacme_domains, env=env)
|
] + uacme_domains, env=env)
|
||||||
|
|
||||||
if res.returncode == 0:
|
if res.returncode == 0:
|
||||||
|
|
|
@ -50,5 +50,5 @@ class CloudflareHandler(Handler):
|
||||||
self.run([
|
self.run([
|
||||||
'dns', 'delete',
|
'dns', 'delete',
|
||||||
'--zone', self.zone,
|
'--zone', self.zone,
|
||||||
'--id', record['ID']
|
'--id', record['ID'],
|
||||||
])
|
])
|
||||||
|
|
|
@ -15,6 +15,7 @@ extend-select = [
|
||||||
"T20", # no print/pprint
|
"T20", # no print/pprint
|
||||||
"G001", # no str.format in logging
|
"G001", # no str.format in logging
|
||||||
"C901", # check for complexity
|
"C901", # check for complexity
|
||||||
|
"COM812", # trailing commas
|
||||||
]
|
]
|
||||||
|
|
||||||
[lint.flake8-quotes]
|
[lint.flake8-quotes]
|
||||||
|
|
Loading…
Reference in a new issue