Skip to content

Commit

Permalink
Enable code linting (#9)
Browse files Browse the repository at this point in the history
* Install flake8 and run it in ci pipeline
* conditionally run linting
  • Loading branch information
Kazhuu authored Jan 2, 2022
1 parent 4493e1c commit 8ba1e70
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
name: CI
on:
push:
branches: main
paths-ignore:
- 'LICENSE'
- 'README.md'
Expand All @@ -29,6 +30,10 @@ jobs:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install ${PYTHON}
${PYTHON} -m pip install graphviz
${PYTHON} -m pip install pipenv
pipenv install --dev
- name: Run tests
run: ${PYTHON} -m unittest
run: pipenv run python -m unittest
- name: Linting
if: ${{ matrix.os == 'ubuntu-latest' }}
run: pipenv run flake8
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ graphviz = "*"

[dev-packages]
ipdb = "*"
flake8 = "*"
33 changes: 32 additions & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8ba1e70

Please sign in to comment.