Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.9', '3.13', '3.14-dev']
python-version: ['3.10', '3.13', '3.14', '3.15-dev']
os: [ubuntu-latest, macos-latest, windows-latest]
continue-on-error: ${{ matrix.python-version == '3.14-dev' }}
continue-on-error: ${{ matrix.python-version == '3.15-dev' }}

steps:
- uses: actions/checkout@v4
Expand All @@ -49,7 +49,7 @@ jobs:

# FYI: Requires token to continue usage
# - name: Upload to Codecov
# if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9
# if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'
# uses: codecov/codecov-action@v1
# with:
# name: pytests
Expand All @@ -65,7 +65,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: '3.10'

- name: Installation (deps and package)
run: |
Expand All @@ -87,7 +87,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: '3.10'
- name: install flit
run: |
pip install flit~=3.0
Expand Down
10 changes: 5 additions & 5 deletions mdformat_myst/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ def update_mdit(mdit: MarkdownIt) -> None:
mdit.options["parser_extension"].append(tables_plugin)
tables_plugin.update_mdit(mdit)

# Enable mdformat-frontmatter plugin
frontmatter_plugin = mdformat.plugins.PARSER_EXTENSIONS["frontmatter"]
if frontmatter_plugin not in mdit.options["parser_extension"]:
mdit.options["parser_extension"].append(frontmatter_plugin)
frontmatter_plugin.update_mdit(mdit)
# Enable mdformat-front-matters plugin
front_matters_plugin = mdformat.plugins.PARSER_EXTENSIONS["front_matters"]
if front_matters_plugin not in mdit.options["parser_extension"]:
mdit.options["parser_extension"].append(front_matters_plugin)
front_matters_plugin.update_mdit(mdit)

# Enable mdformat-footnote plugin
footnote_plugin = mdformat.plugins.PARSER_EXTENSIONS["footnote"]
Expand Down
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ classifiers = [
]
keywords = "mdformat,markdown,formatter,gfm"

requires-python=">=3.9"
requires=[
requires-python = ">=3.10"
requires = [
"mdformat >=0.7.0",
"mdit-py-plugins >=0.3.0",
"mdformat-tables >=0.4.0; python_version < '3.10'",
"mdformat-frontmatter >=0.3.2",
"mdformat-front-matters >= 1.0.0",
"mdformat-footnote >=0.1.1",
"mdformat-gfm >=1.0.0; python_version >= '3.10'",
"mdformat-gfm >=1.0.0",
"ruamel.yaml >=0.16.0",
]

Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[tox]
envlist = py39
envlist = py310
isolated_build = True

[testenv:py{39,311,313}]
[testenv:py{310,314,315}]
extras = test
deps =
black
flake8
commands = pytest {posargs}

[testenv:py{39,311,313}-hook]
[testenv:py{310,314,315}-hook]
commands = pre-commit run --config .pre-commit-test.yaml {posargs:--all-files --verbose --show-diff-on-failure}

[flake8]
Expand Down