Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mypy checks #5

Closed
wants to merge 6 commits into from
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 36 additions & 6 deletions .github/workflows/codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: codestyle
on: [push]

jobs:
lint:
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -14,9 +14,39 @@ jobs:
python-version: 3.9

- name: install dependencies
run: |
make venv
run: make venv

- name: run codestyle
run: |
make lint
- name: run flake8
run: venv/bin/flake8 --max-line-length 120 dff/

black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: set up python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: install dependencies
run: make venv

- name: run black
run: venv/bin/black --line-length=120 --check dff/

mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: set up python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: install dependencies
run: make venv

- name: run mypy
run: venv/bin/mypy dff/