From db6ec744a1099971df747b18038310b7ad5c36bd Mon Sep 17 00:00:00 2001 From: Eric Joanis Date: Thu, 12 Dec 2024 13:03:49 -0500 Subject: [PATCH] chore: bump black and mypy to most recent with py 3.8 support Removed line parser.add_argument_group(grammars) which a) was never meant to be allowed, and b) isn't required anyway, it doesn't actually do anything. See the deprecation note in https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.add_argument_group --- .pre-commit-config.yaml | 4 ++-- py/soundswallower/cli.py | 1 - pyproject.toml | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4bec22b..f760ce1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,11 +9,11 @@ repos: - id: check-yaml - id: check-added-large-files - repo: https://github.com/psf/black - rev: 24.3.0 + rev: 24.8.0 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.991 + rev: v1.13.0 hooks: - id: mypy - repo: https://github.com/PyCQA/isort diff --git a/py/soundswallower/cli.py b/py/soundswallower/cli.py index f6aa11d..89a85d4 100644 --- a/py/soundswallower/cli.py +++ b/py/soundswallower/cli.py @@ -68,7 +68,6 @@ def make_argparse() -> argparse.ArgumentParser: grammars.add_argument("-t", "--align-text", help="Input text for force alignment.") grammars.add_argument("-g", "--grammar", help="Grammar file for recognition.") grammars.add_argument("-f", "--fsg", help="FSG file for recognition.") - parser.add_argument_group(grammars) return parser diff --git a/pyproject.toml b/pyproject.toml index eb28d06..a571fdd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,9 +36,9 @@ dev = [ "pytest", "numpy", "pre-commit", - "black==24.3.0", + "black==24.8.0", "isort", - "mypy==0.991", + "mypy==1.13.0", ] [project.urls]