diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 74ade9d..4885702 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,7 +24,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: [3.6, 3.7, 3.8, 3.9.0-rc.1] + python-version: [3.7, 3.8, 3.9, '3.10'] os: [ubuntu-latest, windows-latest] steps: diff --git a/mdformat_footnote/plugin.py b/mdformat_footnote/plugin.py index a84e774..98088de 100644 --- a/mdformat_footnote/plugin.py +++ b/mdformat_footnote/plugin.py @@ -1,5 +1,7 @@ +from __future__ import annotations + +from collections.abc import Mapping import textwrap -from typing import Mapping from markdown_it import MarkdownIt from mdformat.renderer import RenderContext, RenderTreeNode diff --git a/pyproject.toml b/pyproject.toml index 10f76df..84d7698 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ classifiers = [ ] keywords = "mdformat,markdown,markdown-it" -requires-python=">=3.6" +requires-python=">=3.7" requires=["mdformat >=0.7.8,<0.8.0", "mdit-py-plugins", ] diff --git a/tox.ini b/tox.ini index da12282..46434e8 100644 --- a/tox.ini +++ b/tox.ini @@ -1,20 +1,20 @@ [tox] -envlist = py{36,37,38,39} +envlist = py{37,38,39,310} isolated_build = True -[testenv:py{36,37,38,39}] +[testenv:py{37,38,39,310}] extras = test commands = pytest {posargs} -[testenv:py{36,37,38,39}-cov] +[testenv:py{37,38,39,310}-cov] extras = test commands = pytest --cov={envsitepackagesdir}/mdformat_footnote {posargs} -[testenv:py{36,37,38,39}-pre-commit] +[testenv:py{37,38,39,310}-pre-commit] extras = dev commands = pre-commit run {posargs} -[testenv:py{36,37,38,39}-hook] +[testenv:py{37,38,39,310}-hook] extras = dev commands = pre-commit run --config .pre-commit-test.yaml {posargs:--all-files --verbose --show-diff-on-failure}