File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,19 +30,18 @@ jobs:
3030 with :
3131 python-version : ${{ matrix.python-version }}
3232
33- - name : Install dependencies
33+ - name : Install dependencies and Flake8/Flake8-nb for linting
3434 run : |
35- sudo apt-get install -y tor
3635 python3 -m pip install --upgrade pip
3736 pip3 install flake8 flake8-nb
3837 pip3 install -r binder/requirements.txt
3938
4039 - name : Lint with flake8
4140 run : |
4241 # stop the build if there are Python syntax errors or undefined names
43- flake8-nb . --count --select=E9,F63,F7,F82 --show-source --statistics
42+ flake8-nb notes/*.ipynb --count --select=E9,F63,F7,F82 --show-source --statistics
4443 # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
45- flake8-nb . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
44+ flake8-nb notes/*.ipynb --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
4645
4746 - name : Run all the notebooks using nbconvert
4847 run : |
You can’t perform that action at this time.
0 commit comments