Skip to content

Commit 2ac806e

Browse files
[FEATURE] Adds type checking to github CI - AIL-44
squash to features
1 parent 485917c commit 2ac806e

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,23 @@ jobs:
2323
- name: Run Pre-commit Hooks
2424
run: pre-commit run --all-files
2525

26+
type_check:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout code
30+
uses: actions/checkout@v4
31+
32+
- name: Set up Python
33+
uses: actions/setup-python@v5
34+
with:
35+
python-version: '3.9'
36+
37+
- name: Install Mypy Dependencies
38+
run: pip install mypy
39+
40+
- name: Type Checking with Mypy
41+
run: mypy
42+
2643
tests:
2744
runs-on: ubuntu-latest
2845
strategy:

ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
88
## [unreleased] - 2024-11-01
99
### Added
1010
- Added pre-commit hooks and Github CI action for code formatting and linting.
11+
- Added MyPy with strict settings to enforce type hints (and Github CI action).
1112

1213
## [v0.3.11] - 2024-11-01
1314
### Fixed

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
'pytest-cov >=2.8.1',
2525
'pytest-subtests',
2626
'responses >=0.8.1',
27+
'types-requests',
28+
'mypy',
2729
]
2830

2931
# Extract the markdown content of the README to be sent to Pypi as the project description page.

0 commit comments

Comments
 (0)