Skip to content

Commit

Permalink
Add: exampleをチェックするように
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Sep 3, 2023
1 parent f26425c commit a4a8f64
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/python_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 .
9 changes: 2 additions & 7 deletions example/python/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a4a8f64

Please sign in to comment.