Update CI #176
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint using isort, black, and flake8 | |
on: [pull_request] | |
jobs: | |
formatting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install isort, black, and flake8 | |
run: | | |
python -m pip install --upgrade pip | |
pip install isort black flake8 | |
- name: Run isort and black | |
run: | | |
isort -p mlxtend --check --diff --line-length 88 --multi-line 3 --py 39 --profile black mlxtend/* | |
black --check --diff mlxtend/* | |
# exit-zero treats all errors as warnings. | |
flake8 . --config=.flake8 --count --exit-zero --statistics |