Skip to content

Commit

Permalink
release: v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKing committed Jan 15, 2024
1 parent 14c367f commit c4130b7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `mdformat-admon`
# mdformat-admon

[![Build Status][ci-badge]][ci-link] [![PyPI version][pypi-badge]][pypi-link]

Expand Down Expand Up @@ -41,7 +41,7 @@ from markdown_it import MarkdownIt
from mdformat_admon.plugins import python_markdown_admon_plugin

md = MarkdownIt("commonmark")
md.use(plugin)
md.use(python_markdown_admon_plugin)

text = '!!! note ""\n *content*'
md.render(text)
Expand Down
2 changes: 1 addition & 1 deletion mdformat_admon/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""An mdformat plugin for admonitions."""

__version__ = "2.0.0rc1"
__version__ = "2.0.0"

from .plugin import RENDERERS, update_mdit
2 changes: 1 addition & 1 deletion mdformat_admon/factories/_factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def default_render(
env: EnvType,
) -> str:
"""Default render if not specified."""
return self.renderToken(tokens, idx, _options, env) # type: ignore[attr-defined]
return self.renderToken(tokens, idx, _options, env) # type: ignore[attr-defined]


RenderType = Callable[..., str]
Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ envlist =
py{312}-cov
py{312}-pre-commit
py{38}-hook
type
format
mypy
ruff
isolated_build = True
skip_missing_interpreters = False

Expand All @@ -24,10 +24,10 @@ commands = pre-commit run {posargs:--all-files}
extras = dev
commands = pre-commit run --config .pre-commit-test.yaml {posargs:--all-files --verbose --show-diff-on-failure}

[testenv:type]
[testenv:mypy]
deps = mypy
commands = mypy ./mdformat_admon

[testenv:format]
[testenv:ruff]
deps = ruff
commands = ruff . --fix

0 comments on commit c4130b7

Please sign in to comment.