mypy.yml
33 lines
| 738 B
| text/x-yaml
|
YamlLexer
Matthias Bussonnier
|
r26158 | name: Run MyPy | ||
on: | ||||
push: | ||||
Matthias Bussonnier
|
r26404 | branches: [ master, 7.x] | ||
Matthias Bussonnier
|
r26158 | pull_request: | ||
Matthias Bussonnier
|
r26404 | branches: [ master, 7.x] | ||
Matthias Bussonnier
|
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
|
r26208 | pip install mypy pyflakes flake8 | ||
Matthias Bussonnier
|
r26158 | - name: Lint with mypy | ||
run: | | ||||
mypy IPython/terminal/ptutils.py | ||||
mypy IPython/core/c*.py | ||||
Matthias Bussonnier
|
r26208 | - name: Lint with pyflakes | ||
run: | | ||||
flake8 IPython/core/magics/script.py | ||||