Skip to content

Commit

Permalink
🧹 Integrate nb-clean (#287)
Browse files Browse the repository at this point in the history
* cleaned notebooks

* added nb-clean to GitHub Actions

* added nb-clean as a pre-commit hook

* fixed typo

---------

Co-authored-by: Sagi Polaczek <[email protected]>
  • Loading branch information
SagiPolaczek and Sagi Polaczek authored Mar 8, 2023
1 parent f955b48 commit 1f73f71
Show file tree
Hide file tree
Showing 6 changed files with 592 additions and 659 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,13 @@ jobs:
- run: pip install --upgrade pip
- run: pip install mypy==0.950
- run: python -m mypy . --show-error-codes
nb-clean:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.7"
- run: pip install --upgrade pip
- run: pip install nb-clean
- run: nb-clean check .
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ repos:
rev: v0.950
hooks:
- id: mypy
- repo: https://github.com/srstevenson/nb-clean
rev: "2.4.0"
hooks:
- id: nb-clean
1 change: 1 addition & 0 deletions fuse/requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ mypy==0.950
flake8
black==22.3.0
pre-commit
nb-clean
Loading

0 comments on commit 1f73f71

Please sign in to comment.