Added codestyle check and lint to the build action (#798)

* Applied `make format`

* Added format-check to makefile

* Added a "Check codestyle" step to the build action.

* Rerun `make format`

* Added a "lint" target to makefile

* Added lint step to the build action

* Added W503 to the list of ignored flake8 errors.

See https://www.flake8rules.com/rules/W503.html
This commit is contained in:
Matyáš Richter
2021-11-23 08:13:11 +01:00
committed by GitHub
parent 0f68923b8b
commit 48d1be87a4
12 changed files with 46 additions and 47 deletions

View File

@ -20,6 +20,10 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.dev.txt
- name: Check codestyle
run: make format-check
- name: Lint
run: make lint
- name: Test with pytest
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}