Skip to content

Commit

Permalink
MAINT: autofix syntax with flake8 and pyupgrade (#9)
Browse files Browse the repository at this point in the history
* MAINT: sync Lecture 6 with Lecture 12 (solutions)
  • Loading branch information
redeboer authored Sep 12, 2023
1 parent 58be56c commit 044cdcc
Show file tree
Hide file tree
Showing 12 changed files with 374 additions and 235 deletions.
8 changes: 8 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[flake8]
extend-ignore =
E402,
E501,
E722,
E741,
F404,
F841,
3 changes: 3 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ repos:
rev: 1.7.0
hooks:
- id: nbqa-black
- id: nbqa-flake8
- id: nbqa-isort
- id: nbqa-pyupgrade
args: [--py37-plus]

- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
Expand Down
1 change: 1 addition & 0 deletions lecture02.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"\n",
"import gdown\n",
"import numpy as np\n",
"from IPython.display import display\n",
"\n",
"warnings.filterwarnings(\"ignore\")"
]
Expand Down
Loading

0 comments on commit 044cdcc

Please sign in to comment.