Skip to content

Commit d2ee302

Browse files
authored
Merge pull request #8 from jpstroop/mdformat_ci
mdformat to ci
2 parents 0f95cea + a6c7a5b commit d2ee302

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,31 @@ jobs:
122122
123123
- name: Check code style
124124
run: |
125-
pdm run black --check --verbose
125+
pdm run black --check --verbose
126+
127+
mdformat:
128+
name: mdformat
129+
runs-on: ubuntu-latest
130+
steps:
131+
- name: Checkout
132+
uses: actions/checkout@v4
133+
with:
134+
fetch-depth: 0
135+
136+
- name: Set up Python 3.13
137+
uses: actions/setup-python@v4
138+
with:
139+
python-version: "3.13"
140+
141+
- name: Install PDM
142+
run: |
143+
python -m pip install --upgrade pip
144+
pip install pdm
145+
146+
- name: Install dependencies
147+
run: |
148+
pdm install -G:all
149+
150+
- name: Check markdown style
151+
run: |
152+
pdm run mdformat --check --exclude ".venv/**"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
[![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/)
88
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
99
[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
10+
[![Doc style: MDformat](https://img.shields.io/badge/doc_style-mdformat-1c55ff?style=flat)](https://mdformat.readthedocs.io/en/stable/)
1011
[![Python 3.13+](https://img.shields.io/badge/python-3.13+-blue.svg)](https://www.python.org/downloads/release/python-3130/)
1112
[![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
1213

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ codeformatters = [
7373
extensions = [
7474
"gfm"
7575
]
76-
exclude = [".venv/**"]
7776

7877
[tool.pytest.ini_options]
7978
testpaths = ["tests"]

0 commit comments

Comments
 (0)