Added indentation linter (#187)

* Added indentation linter

* pylint package latest
This commit is contained in:
Mufeed VH
2020-12-13 06:45:09 +05:30
committed by GitHub
parent f95e79dab7
commit e6a5c6c93e

View File

@@ -32,3 +32,15 @@ jobs:
run: pip install -e '.[gpu,testing]'
- name: Run Pytest
run: python -m pytest -s -v
linter:
name: Indentation Linter
runs-on: ubuntu-latest
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