##// END OF EJS Templates
Statically type OInfo. (#13973)...
Statically type OInfo. (#13973) In view of working with #13860, some cleanup inspect to be properly typed, and using stricter datastructure. Instead of dict we now use dataclasses, this will make sure that fields type and access can be stricter and verified not only at runtime, but by mypy

File last commit:

r28011:f6cb59f8
r28166:29b451fc merge
Show More
mypy.yml
41 lines | 923 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.x"]
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: |
set -e
mypy -p IPython.terminal
mypy -p IPython.core.magics
mypy -p IPython.core.guarded_eval
mypy -p IPython.core.completer
- name: Lint with pyflakes
run: |
set -e
flake8 IPython/core/magics/script.py
flake8 IPython/core/magics/packaging.py