From e9f14a7525ad51fa2b7ed4339d47d1e8c906ecd5 Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Sat, 27 Jul 2024 20:03:34 +0200 Subject: [PATCH] style: add trailing commas --- nyacme/__main__.py | 4 ++-- nyacme/handlers/cloudflare.py | 2 +- ruff.toml | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/nyacme/__main__.py b/nyacme/__main__.py index 3a6d942..f6d6b39 100644 --- a/nyacme/__main__.py +++ b/nyacme/__main__.py @@ -17,7 +17,7 @@ def main() -> None: parser = argparse.ArgumentParser( prog='nyacme', 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('-o', '--output', help='path to the certificate output directory', default='/etc/ssl/uacme') @@ -63,7 +63,7 @@ def main() -> None: '-b', '384', '--type', 'EC', # '--force', - 'issue' + 'issue', ] + uacme_domains, env=env) if res.returncode == 0: diff --git a/nyacme/handlers/cloudflare.py b/nyacme/handlers/cloudflare.py index ff57024..4f2e266 100644 --- a/nyacme/handlers/cloudflare.py +++ b/nyacme/handlers/cloudflare.py @@ -50,5 +50,5 @@ class CloudflareHandler(Handler): self.run([ 'dns', 'delete', '--zone', self.zone, - '--id', record['ID'] + '--id', record['ID'], ]) diff --git a/ruff.toml b/ruff.toml index a9fbb4a..a585112 100644 --- a/ruff.toml +++ b/ruff.toml @@ -15,6 +15,7 @@ extend-select = [ "T20", # no print/pprint "G001", # no str.format in logging "C901", # check for complexity + "COM812", # trailing commas ] [lint.flake8-quotes]