fixed pylint, formatted python files iwth cblack on localhost (#204)

* fixed pylint, formatted python files iwth cblack on localhost

* Revert "fixed pylint, formatted python files iwth cblack on localhost"

This reverts commit 07e2b88466.

* dedented 4-spaces added linter

Co-authored-by: Iain Wong <iainwong@outlook.com>
This commit is contained in:
iainwo
2020-12-17 17:37:31 -05:00
committed by GitHub
parent 799ad5ba17
commit 56d44637f3
21 changed files with 130 additions and 138 deletions

View File

@@ -34,13 +34,22 @@ jobs:
run: python -m pytest -s -v
linter:
name: Indentation Linter
runs-on: ubuntu-latest
name: Indentation Linter
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pylint
# pip install -r requirements.txt
- name: Lint with pylint
run: |
python -m pylint --disable=all -e W0311 --jobs=0 --indent-string=' ' **/*.py
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install PyLint
run: sudo apt-get install pylint
- name: Validate indentation is 2 lines
run: if [[ $(pylint --jobs=0 --indent-string=' ' * | grep "Bad indentation") ]]; then exit 1; fi