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: