Skip to content

Add type hinting to the code base #504

Add type hinting to the code base

Add type hinting to the code base #504

Workflow file for this run

name: Python package
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Install ruff and mypy
run: |
python -m pip install --upgrade pip
pip install .
pip install types-python-dateutil
pip install ruff mypy
- name: Run ruff
run: |
ruff check .
- name: Run mypy
run: |
mypy src/
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3.10'
- '3.11'
- '3.12'
- '3.13'
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
- name: Test with pytest
run: |
pip install ".[test]"
pytest