mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-09 15:08:02 -05:00
Added indentation linter (#187)
* Added indentation linter * pylint package latest
This commit is contained in:
12
.github/workflows/test.yml
vendored
12
.github/workflows/test.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user