Skip to content

Commit 599f04a

Browse files
authored
Merge pull request #6 from jpstroop/mypy_ci
add mypy to CI
2 parents 0c73b6a + 670c69e commit 599f04a

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,31 @@ jobs:
4141
files: ./coverage.xml
4242
# fail_ci_if_error: false
4343
name: codecov-umbrella
44-
verbose: true
44+
verbose: true
45+
46+
mypy:
47+
name: mypy
48+
runs-on: ubuntu-latest
49+
steps:
50+
- name: Checkout
51+
uses: actions/checkout@v4
52+
with:
53+
fetch-depth: 0
54+
55+
- name: Set up Python 3.13
56+
uses: actions/setup-python@v4
57+
with:
58+
python-version: "3.13"
59+
60+
- name: Install PDM
61+
run: |
62+
python -m pip install --upgrade pip
63+
pip install pdm
64+
65+
- name: Install dependencies
66+
run: |
67+
pdm install -G:all
68+
69+
- name: Verify type hints
70+
run: |
71+
pdm run mypy

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
[![CI](https://github.com/jpstroop/fitbit-client-python/actions/workflows/ci.yml/badge.svg)](https://github.com/jpstroop/fitbit-client-python/actions/workflows/ci.yml)
66
[![codecov](https://codecov.io/gh/jpstroop/fitbit-client-python/graph/badge.svg?token=DM0JD8VKZ4)](https://codecov.io/gh/jpstroop/fitbit-client-python)
7+
[![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/)
78
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
89
[![Python 3.13+](https://img.shields.io/badge/python-3.13+-blue.svg)](https://www.python.org/downloads/release/python-3130/)
910
[![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)

0 commit comments

Comments
 (0)