Skip to content

Use pre-commit for testing style #21892

Use pre-commit for testing style

Use pre-commit for testing style #21892

Workflow file for this run

name: Type checking
on:
push:
branches:
- main
- 'version-**'
pull_request:
jobs:
type-checking:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
python-version: ['3.11']
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install ERT and dependencies
run: |
pip install ".[dev, types]"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- run: echo ::add-matcher::.github/mypy-matcher.json
- name: Run mypy
run: |
mypy src/ert