File tree Expand file tree Collapse file tree 8 files changed +14
-196
lines changed Expand file tree Collapse file tree 8 files changed +14
-196
lines changed Original file line number Diff line number Diff line change 19
19
runs-on : ${{ matrix.os }}
20
20
strategy :
21
21
matrix :
22
- python-version : [3.7 , '3.10']
22
+ python-version : [3.8 , '3.10']
23
23
os : [ubuntu-latest, windows-latest]
24
24
steps :
25
25
- uses : actions/checkout@v2
68
68
steps :
69
69
- name : Checkout source
70
70
uses : actions/checkout@v2
71
- - name : Set up Python 3.7
71
+ - name : Set up Python 3.8
72
72
uses : actions/setup-python@v1
73
73
with :
74
74
python-version : 3.8
Original file line number Diff line number Diff line change 1
- python 3.7 .12 3.10.9
1
+ python 3.8 .12 3.10.9
Original file line number Diff line number Diff line change 17
17
and with test coverage:
18
18
19
19
``` bash
20
- tox -e py37 -cov
20
+ tox -e py38 -cov
21
21
```
22
22
23
23
The easiest way to write tests, is to edit ` tests/fixtures.md `
24
24
25
25
To run the code formatting and style checks:
26
26
27
27
``` bash
28
- tox -e py37 -pre-commit
28
+ tox -e py38 -pre-commit
29
29
```
30
30
31
31
or directly
@@ -38,7 +38,7 @@ pre-commit run --all
38
38
To run the pre-commit hook test:
39
39
40
40
``` bash
41
- tox -e py37 -hook
41
+ tox -e py38 -hook
42
42
```
43
43
44
44
## Publish to PyPi
Original file line number Diff line number Diff line change 1
1
"""An mdformat plugin for admonitions."""
2
2
3
- __version__ = "1.0.1 "
3
+ __version__ = "1.0.2 "
4
4
5
5
from .plugin import RENDERERS , update_mdit # noqa: F401
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
from markdown_it import MarkdownIt
5
5
from mdformat .renderer import RenderContext , RenderTreeNode
6
6
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
12
8
13
9
14
10
def update_mdit (mdit : MarkdownIt ) -> None :
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ classifiers = [
15
15
" Topic :: Software Development :: Libraries :: Python Modules" ,
16
16
]
17
17
keywords = [" mdformat" , " markdown" , " markdown-it" ]
18
- requires-python = " >=3.7.2 "
18
+ requires-python = " >=3.8.0 "
19
19
dependencies = [
20
20
" mdformat >= 0.7.16" ,
21
- " mdit-py-plugins >= 0.3.2 " ,
21
+ " mdit-py-plugins >= 0.4.0 " ,
22
22
]
23
23
dynamic = [" version" , " description" ]
24
24
Original file line number Diff line number Diff line change 1
1
[tox]
2
2
envlist =
3
- py{37 ,310}-cov
3
+ py{38 ,310}-cov
4
4
py{310}-pre-commit
5
- py{37 ,310}-hook
5
+ py{38 ,310}-hook
6
6
isolated_build = True
7
7
skip_missing_interpreters = False
8
8
9
- [testenv:py{37 ,310}]
9
+ [testenv:py{38 ,310}]
10
10
extras = test
11
11
commands = pytest {posargs} --ff -vv
12
12
@@ -18,7 +18,7 @@ commands = pytest --cov={envsitepackagesdir}/mdformat_admon {posargs}
18
18
extras = dev
19
19
commands = pre-commit run {posargs:--all-files}
20
20
21
- [testenv:py{37 ,310}-hook]
21
+ [testenv:py{38 ,310}-hook]
22
22
extras = dev
23
23
commands = pre-commit run --config .pre-commit-test.yaml {posargs:--all-files --verbose --show-diff-on-failure}
24
24
You can’t perform that action at this time.
0 commit comments