mypy.yml
38 lines
| 810 B
| text/x-yaml
|
YamlLexer
Matthias Bussonnier
|
r26158 | name: Run MyPy | ||
on: | ||||
push: | ||||
Jarrod Millman
|
r27712 | branches: [ main, 7.x] | ||
Matthias Bussonnier
|
r26158 | pull_request: | ||
Jarrod Millman
|
r27712 | branches: [ main, 7.x] | ||
Matthias Bussonnier
|
r26158 | |||
Matthias Bussonnier
|
r27782 | permissions: | ||
contents: read | ||||
Matthias Bussonnier
|
r26158 | jobs: | ||
build: | ||||
runs-on: ubuntu-latest | ||||
strategy: | ||||
matrix: | ||||
Matthias Bussonnier
|
r27973 | python-version: ["3.x"] | ||
Matthias Bussonnier
|
r26158 | |||
steps: | ||||
Brigitta Sipőcz
|
r28856 | - uses: actions/checkout@v4 | ||
Matthias Bussonnier
|
r26158 | - name: Set up Python ${{ matrix.python-version }} | ||
Brigitta Sipőcz
|
r28856 | uses: actions/setup-python@v5 | ||
Matthias Bussonnier
|
r26158 | with: | ||
python-version: ${{ matrix.python-version }} | ||||
- name: Install dependencies | ||||
run: | | ||||
python -m pip install --upgrade pip | ||||
Matthias Bussonnier
|
r28167 | pip install mypy pyflakes flake8 types-decorator | ||
Matthias Bussonnier
|
r26158 | - name: Lint with mypy | ||
run: | | ||||
krassowski
|
r28011 | set -e | ||
Matthias Bussonnier
|
r28167 | mypy IPython | ||
Matthias Bussonnier
|
r26208 | - name: Lint with pyflakes | ||
run: | | ||||
krassowski
|
r28011 | set -e | ||
Matthias Bussonnier
|
r26208 | flake8 IPython/core/magics/script.py | ||
Matthias Bussonnier
|
r26485 | flake8 IPython/core/magics/packaging.py | ||