Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[FEATURE] Adds type checking to github CI - AIL-44
  • Loading branch information
rodrigo-pessoa-lrn committed Nov 6, 2024
commit 9eb2674a33c4fc61c42a87458915d178c4cc2923
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,23 @@ jobs:
- name: Run Pre-commit Hooks
run: pre-commit run --all-files

type_check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'

- name: Install Mypy Dependencies
run: pip install mypy

- name: Type Checking with Mypy
run: mypy

tests:
runs-on: ubuntu-latest
strategy:
Expand Down
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [unreleased] - 2024-11-01
### Added
- Added pre-commit hooks and Github CI action for code formatting and linting.
- Added MyPy with strict settings to enforce type hints (and Github CI action).

## [v0.3.11] - 2024-11-01
### Fixed
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
'pytest-cov >=2.8.1',
'pytest-subtests',
'responses >=0.8.1',
'types-requests',
'mypy',
]

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