diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fcbf30b..59a54ea 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-case-conflict - id: check-added-large-files @@ -19,7 +19,7 @@ repos: - id: check-docstring-first - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.1 + rev: v0.7.0 hooks: - id: ruff types_or: [python, pyi, jupyter] @@ -32,8 +32,14 @@ repos: hooks: - id: nbstripout + - repo: https://github.com/pre-commit/mirrors-mypy + rev: v1.12.1 + hooks: + - id: mypy + args: [--config-file, .mypy.ini, --ignore-missing-imports] + - repo: https://github.com/python-jsonschema/check-jsonschema - rev: "0.29.2" + rev: "0.29.4" hooks: - id: check-github-workflows - id: check-readthedocs diff --git a/notebooks/usage.ipynb b/notebooks/usage.ipynb index fef044b..55b0242 100644 --- a/notebooks/usage.ipynb +++ b/notebooks/usage.ipynb @@ -22,7 +22,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Add the plugin into configuration's `plugins` attribute\n", + "Add the `nbconvert` into configuration file (`mkdocs.yml`)'s `plugins` list\n", "\n", "```yaml\n", "plugins:\n", @@ -127,11 +127,8 @@ ], "metadata": { "file_extension": ".py", - "interpreter": { - "hash": "1b489b747beea828bea5943723d3eee92f25d87b9fc00ed10205e87b9c039aa4" - }, "kernelspec": { - "display_name": "Python 3.8.10 64-bit ('venv': venv)", + "display_name": ".venv", "language": "python", "name": "python3" }, @@ -145,7 +142,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.4" + "version": "3.12.3" }, "mimetype": "text/x-python", "name": "python",