Skip to content
Merged
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
32 changes: 16 additions & 16 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v6
with:
python-version: 3.11
- uses: pre-commit/action@v2.0.0
python-version: 3.14
- uses: pre-commit/action@v3.0.1

tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, '3.10', 3.11]
python-version: ['3.10', 3.11, 3.12, 3.13, 3.14]
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -47,10 +47,10 @@ jobs:
pytest --cov=mdformat_simple_breaks --cov-report=xml --cov-report=term-missing

- name: Upload to Codecov
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.11
uses: codecov/codecov-action@v3
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.14
uses: codecov/codecov-action@v5
with:
name: pytests-py3.11
name: pytests-py3.14
flags: pytests
file: ./coverage.xml
fail_ci_if_error: true
Expand All @@ -59,9 +59,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v6
with:
python-version: 3.11

Expand All @@ -81,11 +81,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
uses: actions/checkout@v5
- name: Set up Python 3.14
uses: actions/setup-python@v6
with:
python-version: 3.11
python-version: 3.14
- name: install flit
run: |
pip install flit~=3.0
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v6.0.0
hooks:
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- id: check-yaml
- id: check-toml
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
rev: v1.10.0
hooks:
- id: python-check-blanket-noqa
- repo: https://github.com/timothycrosley/isort
rev: 5.11.4
rev: 7.0.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 25.9.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
rev: 7.3.0
hooks:
- id: flake8
additional_dependencies:
Expand Down
6 changes: 3 additions & 3 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ tox
and with test coverage:

```bash
tox -e py37-cov
tox -e py314-cov
```

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

To run the code formatting and style checks:

```bash
tox -e py37-pre-commit
tox -e py314-pre-commit
```

or directly
Expand All @@ -40,7 +40,7 @@ pre-commit run --all
To run the pre-commit hook test:

```bash
tox -e py37-hook
tox -e py314-hook
```

## Publish to PyPi
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Add the following to your `.pre-commit-config.yaml`:

```yaml
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.13 # Use the ref you want to point at
rev: 1.0.0 # Use the ref you want to point at
hooks:
- id: mdformat
additional_dependencies:
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
]
keywords = ["mdformat", "markdown", "markdown-it"]
requires-python = ">=3.7"
requires-python = ">=3.10"
dependencies = [
"mdformat >=0.7.0,<0.8.0",
"mdformat ~= 1.0.0",
]
dynamic = ["version", "description"]

[project.optional-dependencies]
test = [
"pytest~=6.0",
"pytest >= 8.4.0",
"coverage",
"pytest-cov",
]
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[tox]
envlist = py3{7,8,9,10,11}, coverage, pre-commit, hook
envlist = py3{10,11,12,13,14}, coverage, pre-commit, hook
isolated_build = True

[testenv:py3{7,8,9,10,11}]
[testenv:py3{10,11,12,13,14}]
extras = test
commands = pytest {posargs}

Expand Down
Loading