diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a7e11c94..da6ae0ac 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ exclude: > repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.3.0 + rev: v3.4.0 hooks: - id: check-json - id: check-yaml @@ -24,9 +24,18 @@ repos: - id: trailing-whitespace - repo: https://github.com/mgedmin/check-manifest - rev: "0.44" + rev: "0.46" hooks: - id: check-manifest + args: [--no-build-isolation] + additional_dependencies: [setuptools>=46.4.0] + + # this is not used for now, + # since it converts markdown-it-py to markdown_it_py and removes comments + # - repo: https://github.com/asottile/setup-cfg-fmt + # rev: v1.17.0 + # hooks: + # - id: setup-cfg-fmt - repo: https://github.com/psf/black rev: 20.8b1 @@ -34,18 +43,13 @@ repos: - id: black - repo: https://gitlab.com/pycqa/flake8 - rev: 3.8.4 + rev: 3.9.1 hooks: - id: flake8 additional_dependencies: [flake8-bugbear==21.3.1] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.790 + rev: v0.812 hooks: - id: mypy additional_dependencies: [attrs] - - - repo: https://github.com/asottile/setup-cfg-fmt - rev: v1.16.0 - hooks: - - id: setup-cfg-fmt diff --git a/docs/conf.py b/docs/conf.py index f3f7befb..45ee7151 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -51,6 +51,7 @@ ("py:class", "markdown_it.helpers.parse_link_destination._Result"), ("py:class", "markdown_it.helpers.parse_link_title._Result"), ("py:class", "MarkdownIt"), + ("py:class", "_NodeType"), ] diff --git a/setup.cfg b/setup.cfg index 44c9ce55..72564ba0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [metadata] -name = markdown_it_py +name = markdown-it-py version = attr: markdown_it.__version__ description = Python port of markdown-it. Markdown parsing, done right! long_description = file: README.md @@ -52,7 +52,7 @@ linkify = plugins = mdit-py-plugins rtd = - myst-nb~=0.11.1 + myst-nb==0.13.0a1 pyyaml sphinx>=2,<4 sphinx-copybutton