##// END OF EJS Templates
Merge pull request #13750 from Carreau/sec-2...
Merge pull request #13750 from Carreau/sec-2 SEC: force workflows to be read-only.

File last commit:

r27782:ef9f0dec
r27791:4f6e132d merge
Show More
mypy.yml
37 lines | 810 B | text/x-yaml | YamlLexer
name: Run MyPy
on:
push:
branches: [ main, 7.x]
pull_request:
branches: [ main, 7.x]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mypy pyflakes flake8
- name: Lint with mypy
run: |
mypy -p IPython.terminal
mypy -p IPython.core.magics
- name: Lint with pyflakes
run: |
flake8 IPython/core/magics/script.py
flake8 IPython/core/magics/packaging.py