Skip to content

Commit 282ca53

Browse files
authored
Merge pull request #13 from KyleKing/use-latest-plugins
fix(#9): use latest mdit-py-plugins
2 parents 7262623 + c5e6f6d commit 282ca53

File tree

8 files changed

+14
-196
lines changed

8 files changed

+14
-196
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ${{ matrix.os }}
2020
strategy:
2121
matrix:
22-
python-version: [3.7, '3.10']
22+
python-version: [3.8, '3.10']
2323
os: [ubuntu-latest, windows-latest]
2424
steps:
2525
- uses: actions/checkout@v2
@@ -68,7 +68,7 @@ jobs:
6868
steps:
6969
- name: Checkout source
7070
uses: actions/checkout@v2
71-
- name: Set up Python 3.7
71+
- name: Set up Python 3.8
7272
uses: actions/setup-python@v1
7373
with:
7474
python-version: 3.8

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python 3.7.12 3.10.9
1+
python 3.8.12 3.10.9

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ tox
1717
and with test coverage:
1818

1919
```bash
20-
tox -e py37-cov
20+
tox -e py38-cov
2121
```
2222

2323
The easiest way to write tests, is to edit `tests/fixtures.md`
2424

2525
To run the code formatting and style checks:
2626

2727
```bash
28-
tox -e py37-pre-commit
28+
tox -e py38-pre-commit
2929
```
3030

3131
or directly
@@ -38,7 +38,7 @@ pre-commit run --all
3838
To run the pre-commit hook test:
3939

4040
```bash
41-
tox -e py37-hook
41+
tox -e py38-hook
4242
```
4343

4444
## Publish to PyPi

mdformat_admon/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""An mdformat plugin for admonitions."""
22

3-
__version__ = "1.0.1"
3+
__version__ = "1.0.2"
44

55
from .plugin import RENDERERS, update_mdit # noqa: F401

mdformat_admon/index_pr58.py

Lines changed: 0 additions & 178 deletions
This file was deleted.

mdformat_admon/plugin.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44
from markdown_it import MarkdownIt
55
from mdformat.renderer import RenderContext, RenderTreeNode
66
from mdformat.renderer.typing import Render
7-
8-
from .index_pr58 import admon_plugin
9-
10-
# FIXME: Use latest mdit_py_pluign once my PR is merged
11-
# https://github.com/executablebooks/mdit-py-plugins/pull/58/files
7+
from mdit_py_plugins.admon import admon_plugin
128

139

1410
def update_mdit(mdit: MarkdownIt) -> None:

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ classifiers = [
1515
"Topic :: Software Development :: Libraries :: Python Modules",
1616
]
1717
keywords = ["mdformat", "markdown", "markdown-it"]
18-
requires-python = ">=3.7.2"
18+
requires-python = ">=3.8.0"
1919
dependencies = [
2020
"mdformat >= 0.7.16",
21-
"mdit-py-plugins >= 0.3.2",
21+
"mdit-py-plugins >= 0.4.0",
2222
]
2323
dynamic = ["version", "description"]
2424

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[tox]
22
envlist =
3-
py{37,310}-cov
3+
py{38,310}-cov
44
py{310}-pre-commit
5-
py{37,310}-hook
5+
py{38,310}-hook
66
isolated_build = True
77
skip_missing_interpreters = False
88

9-
[testenv:py{37,310}]
9+
[testenv:py{38,310}]
1010
extras = test
1111
commands = pytest {posargs} --ff -vv
1212

@@ -18,7 +18,7 @@ commands = pytest --cov={envsitepackagesdir}/mdformat_admon {posargs}
1818
extras = dev
1919
commands = pre-commit run {posargs:--all-files}
2020

21-
[testenv:py{37,310}-hook]
21+
[testenv:py{38,310}-hook]
2222
extras = dev
2323
commands = pre-commit run --config .pre-commit-test.yaml {posargs:--all-files --verbose --show-diff-on-failure}
2424

0 commit comments

Comments
 (0)