Skip to content

Commit 66b94f1

Browse files
authored
Update main.yml
1 parent df2c5bb commit 66b94f1

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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: |

0 commit comments

Comments
 (0)