Skip to content

Commit 3184780

Browse files
committed
use mypy
1 parent 4ad0d5e commit 3184780

File tree

2 files changed

+27
-32
lines changed

2 files changed

+27
-32
lines changed

.github/workflows/mypy.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Mypy
2+
on: [push]
3+
4+
jobs:
5+
Static-Type-Checking:
6+
runs-on: ubuntu-latest
7+
strategy:
8+
max-parallel: 5
9+
matrix:
10+
python-version: ["3.10", "3.11", "3.12"]
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Set up Python ${{ matrix.python-version }}
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: ${{ matrix.python-version }}
18+
- name: Install system packages
19+
run: sudo apt-get install -y portaudio19-dev
20+
- name: Display Python version
21+
run: python -c "import sys; print(sys.version)"
22+
- name: Install dependencies
23+
run: |
24+
curl -LsSf https://astral.sh/uv/install.sh | sh
25+
- name: Type-checking package with mypy
26+
run: |
27+
uv run --all-extras mypy --strict .

.github/workflows/tests.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)