Skip to content

PEP8 and mypy

PEP8 and mypy #255

name: "PEP8 and mypy"
on:
push:
branches: ["master", "feat/workflows"]
pull_request:
branches: ["master", "feat/workflows"]
schedule:
- cron: '0 0 * * */10'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Python 3.7 syntax check
run: python -m py_compile src/wsdd.py
- name: Lint with flake8
run: |
pip install flake8
flake8 --count --show-source --statistics src
- name: mypy type check
run: |
pip install mypy==1.0
test/linting/mypy.sh