Skip to content

[pre-commit.ci] pre-commit suggestions #1159

[pre-commit.ci] pre-commit suggestions

[pre-commit.ci] pre-commit suggestions #1159

Workflow file for this run

name: Linting
on: # yamllint disable-line rule:truthy
push:
branches:
- master
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
mypy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Install dependencies
run: |
# TODO: Use the latest PyTorch version once type issues are addressed in the codebase:
pip install -e '.[full,test]' 'torch==2.7.*' -f https://download.pytorch.org/whl/cpu
pip list
- name: Check type hints
run: mypy