##// END OF EJS Templates
Require pygments>=2.4.0...
Require pygments>=2.4.0 As noted in #13441, running ipython with an old version of pygments leads to problems. Ipython sends ANSI color names to pygments to color output, but these names aren't in old versions of pygments. Before: with pygments 2.3.1 and ipython 8.0.0, opening an ipython instance and running In [1]: 1 / 0 # Expect ZeroDivisionError will crash ipython as `ansiyellow` is used to highlight the error. This PR requires pygments>=2.4.0, which is when pygments changed their ANSI color names.

File last commit:

r26485:288afbf3
r27425:e902466b
Show More
mypy.yml
34 lines | 783 B | text/x-yaml | YamlLexer
Matthias Bussonnier
run mypy on github action...
r26158 name: Run MyPy
on:
push:
Matthias Bussonnier
fixup release note and testing
r26404 branches: [ master, 7.x]
Matthias Bussonnier
run mypy on github action...
r26158 pull_request:
Matthias Bussonnier
fixup release note and testing
r26404 branches: [ master, 7.x]
Matthias Bussonnier
run mypy on github action...
r26158
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Matthias Bussonnier
pyflakes to avoid missing imports
r26208 pip install mypy pyflakes flake8
Matthias Bussonnier
run mypy on github action...
r26158 - name: Lint with mypy
run: |
Matthias Bussonnier
update
r26485 mypy -p IPython.terminal
mypy -p IPython.core.magics
Matthias Bussonnier
pyflakes to avoid missing imports
r26208 - name: Lint with pyflakes
run: |
flake8 IPython/core/magics/script.py
Matthias Bussonnier
update
r26485 flake8 IPython/core/magics/packaging.py