Skip to content

Commit

Permalink
ci: upgrade pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tanbro committed Jun 1, 2024
1 parent 5634b26 commit 7546612
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:
- id: check-docstring-first

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.5
rev: v0.4.7
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
Expand All @@ -33,7 +33,7 @@ repos:
- id: nbstripout

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: "0.28.1"
rev: "0.28.4"
hooks:
- id: check-github-workflows
- id: check-readthedocs
7 changes: 0 additions & 7 deletions .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@ extend-exclude = ["docs"]

line-length = 128

[lint]
ignore-init-module-imports = true

[lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10

[lint.per-file-ignores]
# Ignore `F401`(imported but unused), `F403`(import *` used), `E402`(import violations) in all `__init__.py` files
"__init__.py" = ["E402", "F401", "F403"]
6 changes: 4 additions & 2 deletions src/mkdocs_nbconvert/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
from ._version import __version__, __version_tuple__
from .plugin import *
__all__ = ["__version__", "__version_tuple__", "version", "version_tuple", "NbConvertPlugin"]

from ._version import __version__, __version_tuple__, version, version_tuple
from .plugin import NbConvertPlugin

0 comments on commit 7546612

Please sign in to comment.