From cafac63222d38e185e07f2816e8d4590530d7729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Volhejn?= <8401624+vvolhejn@users.noreply.github.com> Date: Tue, 8 Jul 2025 10:11:52 +0200 Subject: [PATCH] Run pre-commit correctly in CI (#66) * fix and break * Remove intentional error --- .github/workflows/precommit.yml | 4 ++-- scripts/tts_pytorch.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/precommit.yml b/.github/workflows/precommit.yml index e599571..feb1646 100644 --- a/.github/workflows/precommit.yml +++ b/.github/workflows/precommit.yml @@ -13,5 +13,5 @@ jobs: - uses: actions/checkout@v2 - uses: ./.github/actions/moshi_build - run: | - . env/bin/activate - bash .git/hooks/pre-commit + source env/bin/activate + pre-commit run --all-files diff --git a/scripts/tts_pytorch.py b/scripts/tts_pytorch.py index f27faaf..5ce2f08 100644 --- a/scripts/tts_pytorch.py +++ b/scripts/tts_pytorch.py @@ -101,7 +101,9 @@ def main(): callback=audio_callback, ): with tts_model.mimi.streaming(1): - tts_model.generate([entries], [condition_attributes], on_frame=_on_frame) + tts_model.generate( + [entries], [condition_attributes], on_frame=_on_frame + ) time.sleep(3) while True: if pcms.qsize() == 0: