Skip to content

Commit 699fc75

Browse files
committed
Fix compatibility with mdformat 1.0.0
Fix: #3
1 parent 6a1ef11 commit 699fc75

File tree

5 files changed

+25
-25
lines changed

5 files changed

+25
-25
lines changed

.github/workflows/tests.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,25 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v5
1717
- name: Set up Python
18-
uses: actions/setup-python@v4
18+
uses: actions/setup-python@v6
1919
with:
20-
python-version: 3.11
21-
- uses: pre-commit/action@v2.0.0
20+
python-version: 3.14
21+
- uses: pre-commit/action@v3.0.1
2222

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

3030
steps:
31-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@v5
3232

3333
- name: Set up Python ${{ matrix.python-version }}
34-
uses: actions/setup-python@v4
34+
uses: actions/setup-python@v6
3535
with:
3636
python-version: ${{ matrix.python-version }}
3737

@@ -47,10 +47,10 @@ jobs:
4747
pytest --cov=mdformat_simple_breaks --cov-report=xml --cov-report=term-missing
4848
4949
- name: Upload to Codecov
50-
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.11
51-
uses: codecov/codecov-action@v3
50+
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.14
51+
uses: codecov/codecov-action@v5
5252
with:
53-
name: pytests-py3.11
53+
name: pytests-py3.14
5454
flags: pytests
5555
file: ./coverage.xml
5656
fail_ci_if_error: true
@@ -59,9 +59,9 @@ jobs:
5959
runs-on: ubuntu-latest
6060

6161
steps:
62-
- uses: actions/checkout@v3
62+
- uses: actions/checkout@v5
6363
- name: Set up Python
64-
uses: actions/setup-python@v4
64+
uses: actions/setup-python@v6
6565
with:
6666
python-version: 3.11
6767

@@ -81,11 +81,11 @@ jobs:
8181
runs-on: ubuntu-latest
8282
steps:
8383
- name: Checkout source
84-
uses: actions/checkout@v3
85-
- name: Set up Python 3.11
86-
uses: actions/setup-python@v4
84+
uses: actions/checkout@v5
85+
- name: Set up Python 3.14
86+
uses: actions/setup-python@v6
8787
with:
88-
python-version: 3.11
88+
python-version: 3.14
8989
- name: install flit
9090
run: |
9191
pip install flit~=3.0

DEVELOPMENT.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ tox
1919
and with test coverage:
2020

2121
```bash
22-
tox -e py37-cov
22+
tox -e py314-cov
2323
```
2424

2525
The easiest way to write tests, is to edit tests/fixtures.md
2626

2727
To run the code formatting and style checks:
2828

2929
```bash
30-
tox -e py37-pre-commit
30+
tox -e py314-pre-commit
3131
```
3232

3333
or directly
@@ -40,7 +40,7 @@ pre-commit run --all
4040
To run the pre-commit hook test:
4141

4242
```bash
43-
tox -e py37-hook
43+
tox -e py314-hook
4444
```
4545

4646
## Publish to PyPi

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Add the following to your `.pre-commit-config.yaml`:
3030

3131
```yaml
3232
- repo: https://github.com/executablebooks/mdformat
33-
rev: 0.7.13 # Use the ref you want to point at
33+
rev: 1.0.0 # Use the ref you want to point at
3434
hooks:
3535
- id: mdformat
3636
additional_dependencies:

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ classifiers = [
1515
"Topic :: Software Development :: Libraries :: Python Modules",
1616
]
1717
keywords = ["mdformat", "markdown", "markdown-it"]
18-
requires-python = ">=3.7"
18+
requires-python = ">=3.10"
1919
dependencies = [
20-
"mdformat >=0.7.0,<0.8.0",
20+
"mdformat ~= 1.0.0",
2121
]
2222
dynamic = ["version", "description"]
2323

2424
[project.optional-dependencies]
2525
test = [
26-
"pytest~=6.0",
26+
"pytest >= 8.4.0",
2727
"coverage",
2828
"pytest-cov",
2929
]

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[tox]
2-
envlist = py3{7,8,9,10,11}, coverage, pre-commit, hook
2+
envlist = py3{10,11,12,13,14}, coverage, pre-commit, hook
33
isolated_build = True
44

5-
[testenv:py3{7,8,9,10,11}]
5+
[testenv:py3{10,11,12,13,14}]
66
extras = test
77
commands = pytest {posargs}
88

0 commit comments

Comments
 (0)