@@ -11,7 +11,7 @@ authors = [
1111 {
name =
" Taneli Hukkinen" ,
email =
" [email protected] " },
1212]
1313license = { file = " LICENSE" }
14- requires-python = " >=3.8 "
14+ requires-python = " >=3.9 "
1515dependencies = [
1616 ' markdown-it-py >=1.0.0,<4.0.0' ,
1717 ' tomli >=1.1.0; python_version < "3.11"' ,
@@ -63,15 +63,15 @@ xfail_strict = true
6363legacy_tox_ini = '''
6464[tox]
6565# Only run pytest envs when no args given to tox
66- envlist = py{38, 39,310,311}
66+ envlist = py{39,310,311,312,313 }
6767isolated_build = True
6868
69- [testenv:py{38, 39,310,311}]
69+ [testenv:py{39,310,311,312,313 }]
7070description = run tests
7171deps =
7272 -r tests/requirements.txt
7373commands =
74- pytest {posargs}
74+ pytest {posargs:--cov }
7575
7676[testenv:profile]
7777description = run profiler (use e.g. `firefox .tox/prof/combined.svg` to open)
@@ -90,10 +90,10 @@ commands = pre-commit run {posargs:--all}
9090
9191[testenv:mypy]
9292description = run mypy
93- basepython = python3.8
93+ basepython = python3.11
9494deps =
9595 -r tests/requirements.txt
96- mypy==0.910
96+ mypy==1.11.2
9797commands =
9898 mypy {posargs:src/ tests/}
9999
@@ -135,20 +135,7 @@ commands =
135135
136136[tool .coverage .run ]
137137source = [" mdformat" ]
138- omit = [" */__main__.py" ]
139-
140- [tool .coverage .report ]
141- # Regexes for lines to exclude from consideration
142- exclude_lines = [
143- # Re-enable the standard pragma (with extra strictness)
144- ' # pragma: no cover\b' ,
145- # Ellipsis lines after @typing.overload
146- ' ^ +\.\.\.$' ,
147- # Code for static type checkers
148- " if TYPE_CHECKING:" ,
149- # Scripts
150- ' if __name__ == .__main__.:' ,
151- ]
138+ plugins = [" covdefaults" ]
152139
153140
154141[tool .mypy ]
@@ -168,8 +155,3 @@ no_implicit_optional = true
168155[[tool .mypy .overrides ]]
169156module = " tests.*"
170157disallow_untyped_defs = false
171-
172- [[tool .mypy .overrides ]]
173- # This matches `fuzzer/fuzz.py`.
174- module = " fuzz"
175- ignore_errors = true
0 commit comments