Skip to content

Commit

Permalink
DX: format Jupyter notebooks with black
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Sep 28, 2023
1 parent e75da6e commit c3727bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ repos:
rev: 23.9.1
hooks:
- id: black
- id: black-jupyter
args: [--line-length=85]
types_or: [jupyter]

- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 2.7.2
Expand Down
3 changes: 2 additions & 1 deletion visualize-benchmark.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
" with open(filename, \"rb\") as f:\n",
" return pickle.load(f)\n",
"\n",
"\n",
"benchmarks: dict[int | str, TimeitResult] = {}\n",
"benchmarks[\"all\"] = load_benchmark(f\"timing_all.pickle\")\n",
"for i in range(12):\n",
Expand All @@ -39,7 +40,7 @@
" # if k % 2 == 0\n",
" # if k < 6\n",
" }\n",
")\n"
")"
]
},
{
Expand Down

0 comments on commit c3727bb

Please sign in to comment.