Skip to content

Commit 878e0ad

Browse files
committed
⬆️ UPGRADE: Support mdformat v1
And drop Python 3.10
1 parent bbcf9ed commit 878e0ad

File tree

4 files changed

+20
-21
lines changed

4 files changed

+20
-21
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
- name: Set up Python
1818
uses: actions/setup-python@v5
1919
with:
20-
python-version: 3.9
20+
python-version: 3.10
2121
- uses: pre-commit/[email protected]
2222

2323
tests:
2424
runs-on: ${{ matrix.os }}
2525
strategy:
2626
matrix:
27-
python-version: [3.7, 3.8, 3.9]
27+
python-version: ['3.10', '3.13']
2828
os: [ubuntu-latest, windows-latest]
2929

3030
steps:
@@ -48,10 +48,10 @@ jobs:
4848
4949
# FYI: credentials are not configured. Turned off for now
5050
# - name: Upload to Codecov
51-
# if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.7
51+
# if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.10
5252
# uses: codecov/codecov-action@v1
5353
# with:
54-
# name: pytests-py3.7
54+
# name: pytests-py3.10
5555
# flags: pytests
5656
# file: ./coverage.xml
5757
# fail_ci_if_error: true
@@ -64,7 +64,7 @@ jobs:
6464
- name: Set up Python
6565
uses: actions/setup-python@v5
6666
with:
67-
python-version: 3.7
67+
python-version: 3.10
6868

6969
- name: Installation (deps and package)
7070
run: |
@@ -83,13 +83,13 @@ jobs:
8383
steps:
8484
- name: Checkout source
8585
uses: actions/checkout@v4
86-
- name: Set up Python 3.7
86+
- name: Set up Python 3.10
8787
uses: actions/setup-python@v5
8888
with:
89-
python-version: 3.7
89+
python-version: 3.10
9090
- name: install flit
9191
run: |
92-
pip install flit~=3.0
92+
pip install flit~=3.12
9393
- name: Build and publish
9494
run: |
9595
flit publish

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ tox
2525
and with test coverage:
2626

2727
```bash
28-
tox -e py37-cov
28+
tox -e py310-cov
2929
```
3030

3131
The easiest way to write tests, is to edit tests/fixtures.md
3232

3333
To run the code formatting and style checks:
3434

3535
```bash
36-
tox -e py37-pre-commit
36+
tox -e py310-pre-commit
3737
```
3838

3939
or directly
@@ -46,7 +46,7 @@ pre-commit run --all
4646
To run the pre-commit hook test:
4747

4848
```bash
49-
tox -e py37-hook
49+
tox -e py310-hook
5050
```
5151

5252
## Publish to PyPi

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ classifiers = [
1616
]
1717
keywords = "mdformat,markdown,markdown-it"
1818

19-
requires-python=">=3.7"
20-
requires=["mdformat >=0.7.0,<0.8.0", "mdit-py-plugins >=0.2.7"]
19+
requires-python=">=3.10"
20+
requires=["mdformat >=1.0.0", "mdit-py-plugins >=0.2.7"]
2121

2222
[tool.flit.metadata.requires-extra]
2323
test = [
24-
"pytest~=6.0",
25-
"coverage",
26-
"pytest-cov",
24+
"pytest>=8.0.0",
25+
"pytest-cov>=7.0.0",
2726
]
2827
dev = ["pre-commit"]
2928

tox.ini

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
[tox]
2-
envlist = py38
2+
envlist = py310
33
isolated_build = True
44

5-
[testenv:py{37,38,39}]
5+
[testenv:py{310,313}]
66
extras = test
77
deps =
88
black
99
flake8
1010
commands = pytest {posargs}
1111

12-
[testenv:py{37,38,39}-cov]
12+
[testenv:py{310,313}-cov]
1313
extras = test
1414
commands = pytest --cov={envsitepackagesdir}/mdformat_deflist {posargs}
1515

16-
[testenv:py{37,38,39}-pre-commit]
16+
[testenv:py{310,313}-pre-commit]
1717
extras = dev
1818
commands = pre-commit run {posargs:--all-files}
1919

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

0 commit comments

Comments
 (0)