Skip to content

Commit

Permalink
Add nbqa-ruff as pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
arjxn-py committed Jul 17, 2023
1 parent 65d3944 commit 61bf61d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,10 @@ repos:
hooks:
- id: ruff
args: [--ignore=E741, --exclude=__init__.py]

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.0
hooks:
- id: nbqa-ruff
additional_dependencies: [ruff==0.0.276]
args: ["--fix","--ignore=E501,E402"]
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@
" ax1.set_ylabel(r'SEI thickness [$\\mu$m]')\n",
" ax1.set_xlabel(r't [$\\mu$s]') \n",
" \n",
" plot_c, = ax2.plot(x * 1e6 * L_out(t_in_seconds), c_out(t_in_seconds, x_in_metres))\n",
" plot_c, = ax2.plot(x * 1e6 * L_out(t_in_seconds), c_out(t_in_seconds, x_in_metres)) # noqa: F821\n",
" ax2.set_ylim(0, 1.1)\n",
" ax2.set_xlim(0, x[-1] * 1e6 * L_out(solution.t[-1])) \n",
" ax2.set_ylabel('Solvent concentration [mol.m-3]')\n",
Expand Down
Loading

0 comments on commit 61bf61d

Please sign in to comment.