From a4a8f64990dff9e889019adacab2d78c87d4f000 Mon Sep 17 00:00:00 2001 From: sevenc-nanashi Date: Sun, 3 Sep 2023 20:22:22 +0900 Subject: [PATCH] =?UTF-8?q?Add:=20example=E3=82=92=E3=83=81=E3=82=A7?= =?UTF-8?q?=E3=83=83=E3=82=AF=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/python_lint.yml | 8 +++++++- example/python/run.py | 9 ++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/python_lint.yml b/.github/workflows/python_lint.yml index 177afae54..f4302ac88 100644 --- a/.github/workflows/python_lint.yml +++ b/.github/workflows/python_lint.yml @@ -6,6 +6,7 @@ on: - main pull_request: paths: + - ./example/python/**/*.py - ./crates/voicevox_core_python_api/**/*.py - ./crates/voicevox_core_python_api/requirements*.txt - ./crates/voicevox_core_python_api/pyproject.toml @@ -28,7 +29,12 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements-dev.txt - - name: Check code style + - name: Check code style for voicevox_core_python_api + run: | + black --check . + isort --check . + - name: Check code style for example/python + working-directory: ../example/python run: | black --check . isort --check . diff --git a/example/python/run.py b/example/python/run.py index 04feef83e..026b67a80 100644 --- a/example/python/run.py +++ b/example/python/run.py @@ -7,13 +7,8 @@ from typing import Tuple import voicevox_core -from voicevox_core import ( - AccelerationMode, - AudioQuery, - OpenJtalk, - Synthesizer, - VoiceModel, -) +from voicevox_core import (AccelerationMode, AudioQuery, OpenJtalk, + Synthesizer, VoiceModel) async def main() -> None: