From 8dc57d7b64803468197e7d93e67c18ab8bad2f4a Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sat, 13 Apr 2024 00:05:00 +0200 Subject: [PATCH] refactor(async-to-sync): rename --convert-all option to --all --- .github/workflows/lint.yml | 2 +- tools/async_to_sync.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 64c42ede0..dc15839ad 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -37,7 +37,7 @@ jobs: run: mypy - name: Check for sync/async inconsistencies - run: ./tools/async_to_sync.py --check -B + run: ./tools/async_to_sync.py --check --all - name: Check spelling run: codespell diff --git a/tools/async_to_sync.py b/tools/async_to_sync.py index c748bbe9c..989181a08 100755 --- a/tools/async_to_sync.py +++ b/tools/async_to_sync.py @@ -85,7 +85,7 @@ def main() -> int: PYVER, ) - if not opt.convert_all: + if not opt.all: inputs, outputs = [], [] for fpin in opt.inputs: fpout = fpin.parent / fpin.name.replace("_async", "") @@ -95,7 +95,7 @@ def main() -> int: inputs.append(fpin) outputs.append(fpout) if not outputs: - logger.warning("all output files are up to date, nothing to do") + logger.info("all output files are up to date, nothing to do") return 0 else: @@ -561,7 +561,7 @@ def parse_cmdline() -> Namespace: ) parser.add_argument( "-B", - "--convert-all", + "--all", action="store_true", help="process specified files without checking last modification times", ) -- 2.39.5