From a19052e6325822c91923d9ee6ba39949f0176d43 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Jan 2025 17:16:45 +0000 Subject: [PATCH 1/2] chore(pre-commit.ci): pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/commitizen-tools/commitizen: v3.28.0 → v4.1.1](https://github.com/commitizen-tools/commitizen/compare/v3.28.0...v4.1.1) - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0) - [github.com/python-poetry/poetry: 1.8.3 → 2.0.1](https://github.com/python-poetry/poetry/compare/1.8.3...2.0.1) - [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.1.0...v4.0.0-alpha.8) - [github.com/asottile/pyupgrade: v3.17.0 → v3.19.1](https://github.com/asottile/pyupgrade/compare/v3.17.0...v3.19.1) - [github.com/psf/black: 24.1.0 → 24.10.0](https://github.com/psf/black/compare/24.1.0...24.10.0) - [github.com/codespell-project/codespell: v2.2.6 → v2.4.0](https://github.com/codespell-project/codespell/compare/v2.2.6...v2.4.0) - [github.com/srstevenson/nb-clean: 3.3.0 → 4.0.1](https://github.com/srstevenson/nb-clean/compare/3.3.0...4.0.1) --- .pre-commit-config.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 51189b83..e1ff3625 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks exclude: "CHANGELOG.md|.copier-answers.yml" -default_stages: [commit] +default_stages: [pre-commit] ci: autofix_commit_msg: "chore(pre-commit.ci): auto fixes" @@ -9,12 +9,12 @@ ci: repos: - repo: https://github.com/commitizen-tools/commitizen - rev: v3.28.0 + rev: v4.1.1 hooks: - id: commitizen stages: [commit-msg] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: debug-statements - id: check-builtin-literals @@ -28,16 +28,16 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/python-poetry/poetry - rev: 1.8.3 + rev: 2.0.1 hooks: - id: poetry-check - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.1.0 + rev: v4.0.0-alpha.8 hooks: - id: prettier args: ["--tab-width", "2"] - repo: https://github.com/asottile/pyupgrade - rev: v3.17.0 + rev: v3.19.1 hooks: - id: pyupgrade args: [--py38-plus] @@ -50,11 +50,11 @@ repos: hooks: - id: isort - repo: https://github.com/psf/black - rev: 24.1.0 + rev: 24.10.0 hooks: - id: black - repo: https://github.com/codespell-project/codespell - rev: v2.2.6 + rev: v2.4.0 hooks: - id: codespell args: [-w] @@ -73,6 +73,6 @@ repos: # - id: bandit # args: [-x, tests] - repo: https://github.com/srstevenson/nb-clean - rev: "3.3.0" + rev: "4.0.1" hooks: - id: nb-clean From 2b70da7354c2db6deac77454b855db0586aa64c5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Jan 2025 17:16:59 +0000 Subject: [PATCH 2/2] chore(pre-commit.ci): auto fixes --- src/so_vits_svc_fork/gui.py | 8 +++++--- src/so_vits_svc_fork/preprocessing/preprocess_resample.py | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/so_vits_svc_fork/gui.py b/src/so_vits_svc_fork/gui.py index 8a4a3103..050df8b9 100644 --- a/src/so_vits_svc_fork/gui.py +++ b/src/so_vits_svc_fork/gui.py @@ -362,9 +362,11 @@ def main(): sg.FileBrowse( initial_folder=".", key="input_path_browse", - file_types=get_supported_file_types_concat() - if os.name == "nt" - else get_supported_file_types(), + file_types=( + get_supported_file_types_concat() + if os.name == "nt" + else get_supported_file_types() + ), ), sg.FolderBrowse( button_text="Browse(Folder)", diff --git a/src/so_vits_svc_fork/preprocessing/preprocess_resample.py b/src/so_vits_svc_fork/preprocessing/preprocess_resample.py index d6009007..fde8e53a 100644 --- a/src/so_vits_svc_fork/preprocessing/preprocess_resample.py +++ b/src/so_vits_svc_fork/preprocessing/preprocess_resample.py @@ -116,7 +116,7 @@ def preprocess_resample( warnings.warn( f"Recommended folder structure has changed since v1.0.0. " "Please move your dataset directly under dataset_raw folder. " - f"Recoginzed {in_path_relative} as {new_in_path_relative}" + f"Recognized {in_path_relative} as {new_in_path_relative}" ) in_path_relative = new_in_path_relative