Added a few docstrings and corrected typos (#542) #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check Types | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: | |
- main | |
- dev | |
workflow_dispatch: | |
jobs: | |
type-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.9" | |
cache: "pip" | |
- name: Install mypy | |
run: python -m pip install --upgrade mypy | |
- name: Install all packages | |
run: | | |
pip install ./livekit-agents \ | |
./livekit-plugins/livekit-plugins-openai \ | |
./livekit-plugins/livekit-plugins-deepgram \ | |
./livekit-plugins/livekit-plugins-google \ | |
./livekit-plugins/livekit-plugins-nltk \ | |
./livekit-plugins/livekit-plugins-silero \ | |
./livekit-plugins/livekit-plugins-elevenlabs \ | |
./livekit-plugins/livekit-plugins-cartesia \ | |
./livekit-plugins/livekit-plugins-rag \ | |
./livekit-plugins/livekit-plugins-azure | |
- name: Install stub packages | |
run: | | |
pip install \ | |
pandas-stubs \ | |
types-Pygments \ | |
types-cachetools \ | |
types-cffi \ | |
types-psutil \ | |
types-pyOpenSSL \ | |
types-requests \ | |
types-openpyxl \ | |
types-requests | |
- name: Check Types | |
run: | | |
mypy --install-types --non-interactive \ | |
-p livekit.agents \ | |
-p livekit.plugins.openai \ | |
-p livekit.plugins.deepgram \ | |
-p livekit.plugins.google \ | |
-p livekit.plugins.nltk \ | |
-p livekit.plugins.silero \ | |
-p livekit.plugins.elevenlabs \ | |
-p livekit.plugins.cartesia \ | |
-p livekit.plugins.rag \ | |
-p livekit.plugins.azure |