Skip to content

Commit

Permalink
Merge pull request #69 from qiboteam/mypy_workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rodolfocarobene authored Aug 2, 2023
2 parents c848a93 + 85d597a commit b8bc0d2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Mypy

on:
workflow_dispatch:
push:

jobs:
mypy:
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", "3.11"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: python/mypy@master
with:
paths: "src/"
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,7 @@ test-docs = "make -C doc doctest"
[tool.pytest.ini_options]
testpaths = ['tests/']
addopts = ['--cov=qibosoq', '--cov-report=xml', '--cov-report=html']

[[tool.mypy.overrides]]
module="qick.*"
ignore_missing_imports = true

0 comments on commit b8bc0d2

Please sign in to comment.