From c50f5434fe263529a08f1d3ebbcaaf111bb6f029 Mon Sep 17 00:00:00 2001 From: rodolfocarobene Date: Mon, 24 Jul 2023 20:52:14 +0400 Subject: [PATCH 1/5] try mypy workflow --- .github/workflows/mypy.yml | 19 +++++++++++++++++++ mypy.ini | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 .github/workflows/mypy.yml create mode 100644 mypy.ini diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml new file mode 100644 index 0000000..8f79c29 --- /dev/null +++ b/.github/workflows/mypy.yml @@ -0,0 +1,19 @@ +# A single CI script with github workflow +name: Mypy + +on: + workflow_dispatch: + push: + +jobs: + mypy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup python + uses: actions/setup-python@v4 + with: + python-version: 3.9.0 + - uses: python/mypy@master + with: + paths: "src/" diff --git a/mypy.ini b/mypy.ini new file mode 100644 index 0000000..c0e09a1 --- /dev/null +++ b/mypy.ini @@ -0,0 +1,2 @@ +[mypy-qick.*] +ignore_missing_imports = True From 99252a71f79b1be90157ea8d6e3c811409a71753 Mon Sep 17 00:00:00 2001 From: rodolfocarobene Date: Mon, 24 Jul 2023 20:54:14 +0400 Subject: [PATCH 2/5] correct python version --- .github/workflows/mypy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 8f79c29..48fee24 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -13,7 +13,7 @@ jobs: - name: Setup python uses: actions/setup-python@v4 with: - python-version: 3.9.0 + python-version: 3.9 - uses: python/mypy@master with: paths: "src/" From 7871afdd5ddb7b10edde4563ceca2308807c2e81 Mon Sep 17 00:00:00 2001 From: rodolfocarobene Date: Mon, 24 Jul 2023 20:58:36 +0400 Subject: [PATCH 3/5] matrix os python --- .github/workflows/mypy.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 48fee24..be6afb3 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -7,13 +7,20 @@ on: jobs: mypy: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + python-version: [3.9, "3.10", "3.11"] + include: + - os: ubuntu-latest + python-version: 3.8 + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 - name: Setup python uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: ${{ matrix.python-version }} - uses: python/mypy@master with: paths: "src/" From bc3331d8637f51221689b14c1f4cf61bc6a95d0c Mon Sep 17 00:00:00 2001 From: rodolfocarobene Date: Tue, 25 Jul 2023 09:24:08 +0400 Subject: [PATCH 4/5] mypy only on ubuntu --- .github/workflows/mypy.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index be6afb3..2a8cdee 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -1,4 +1,3 @@ -# A single CI script with github workflow name: Mypy on: @@ -9,12 +8,8 @@ jobs: mypy: strategy: matrix: - os: [ubuntu-latest, macos-latest, windows-latest] - python-version: [3.9, "3.10", "3.11"] - include: - - os: ubuntu-latest - python-version: 3.8 - runs-on: ${{ matrix.os }} + python-version: [3.8, 3.9, "3.10", "3.11"] + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Setup python From 31c61d3bb7280224301383b0b49b74da5993e11e Mon Sep 17 00:00:00 2001 From: rodolfocarobene Date: Wed, 26 Jul 2023 22:07:59 +0400 Subject: [PATCH 5/5] remove ini file --- mypy.ini | 2 -- pyproject.toml | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) delete mode 100644 mypy.ini diff --git a/mypy.ini b/mypy.ini deleted file mode 100644 index c0e09a1..0000000 --- a/mypy.ini +++ /dev/null @@ -1,2 +0,0 @@ -[mypy-qick.*] -ignore_missing_imports = True diff --git a/pyproject.toml b/pyproject.toml index afc5029..a0ed3b1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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