Skip to content

Commit 0b8f253

Browse files
authored
Merge branch 'master' into fully_normalize_name_slug_func
2 parents 0e7dad5 + 9364edb commit 0b8f253

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1009
-370
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Copilot Setup Steps
2+
3+
# Automatically run the setup steps when they are changed to allow for easy validation, and
4+
# allow manual testing through the repository's "Actions" tab
5+
on:
6+
workflow_dispatch:
7+
push:
8+
paths:
9+
- .github/workflows/copilot-setup-steps.yml
10+
pull_request:
11+
paths:
12+
- .github/workflows/copilot-setup-steps.yml
13+
14+
jobs:
15+
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
16+
copilot-setup-steps:
17+
runs-on: ubuntu-latest
18+
19+
# Set the permissions to the lowest permissions possible needed for your steps.
20+
# Copilot will be given its own token for its operations.
21+
permissions:
22+
contents: read
23+
24+
# You can define any steps you want, and they will run before the agent starts.
25+
# If you do not check out your code, Copilot will do this for you.
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@v6
29+
30+
- name: Set up Python
31+
uses: actions/setup-python@v5
32+
with:
33+
python-version: "3.11"
34+
cache: pip
35+
36+
- name: Install uv
37+
run: pip install uv
38+
39+
- name: Install pre-commit and pre-commit-uv
40+
run: pip install pre-commit pre-commit-uv
41+
42+
- name: Install tox and tox-uv
43+
run: pip install tox tox-uv

.github/workflows/test-formats.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
format: ["man", "text"]
1919

2020
steps:
21-
- uses: actions/checkout@v4
22-
- name: Set up Python 3.10
23-
uses: actions/setup-python@v5
21+
- uses: actions/checkout@v6
22+
- name: Set up Python 3.11
23+
uses: actions/setup-python@v6
2424
with:
25-
python-version: "3.10"
25+
python-version: "3.11"
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install --upgrade pip
@@ -42,11 +42,11 @@ jobs:
4242
format: ["latex"]
4343

4444
steps:
45-
- uses: actions/checkout@v4
46-
- name: Set up Python 3.10
47-
uses: actions/setup-python@v5
45+
- uses: actions/checkout@v6
46+
- name: Set up Python 3.11
47+
uses: actions/setup-python@v6
4848
with:
49-
python-version: "3.10"
49+
python-version: "3.11"
5050
- name: Install dependencies
5151
run: |
5252
python -m pip install --upgrade pip

.github/workflows/tests.yml

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

1515
steps:
16-
- uses: actions/checkout@v4
17-
- name: Set up Python 3.10
18-
uses: actions/setup-python@v5
16+
- uses: actions/checkout@v6
17+
- name: Set up Python 3.11
18+
uses: actions/setup-python@v6
1919
with:
20-
python-version: "3.10"
20+
python-version: "3.11"
2121
- uses: pre-commit/action@v3.0.1
2222

2323
tests:
2424

2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
python-version: ["3.10", "3.11", "3.12", "3.13"]
29-
sphinx: [">=8,<9"]
28+
python-version: ["3.11", "3.12", "3.13", "3.14"]
29+
sphinx: [">=8,<9", ">=9,<10"]
3030
os: [ubuntu-latest]
3131
include:
32-
- os: ubuntu-latest
33-
python-version: "3.10"
34-
sphinx: ">=7,<8"
3532
- os: windows-latest
36-
python-version: "3.10"
37-
sphinx: ">=7,<8"
33+
python-version: "3.11"
34+
sphinx: ">=8,<9"
35+
- os: windows-latest
36+
python-version: "3.14"
37+
sphinx: ">=9,<10"
3838

3939
runs-on: ${{ matrix.os }}
4040

4141
name: "pytest: py${{ matrix.python-version }}, sphinx${{ matrix.sphinx }}, on ${{ matrix.os }}"
4242

4343
steps:
44-
- uses: actions/checkout@v4
44+
- uses: actions/checkout@v6
4545
- name: Set up Python ${{ matrix.python-version }}
46-
uses: actions/setup-python@v5
46+
uses: actions/setup-python@v6
4747
with:
4848
python-version: ${{ matrix.python-version }}
4949
allow-prereleases: true
@@ -52,18 +52,19 @@ jobs:
5252
python -m pip install --upgrade pip
5353
pip install -e ".[linkify,testing]" "sphinx${{ matrix.sphinx }}"
5454
- name: Run pytest
55-
run: |
56-
pytest --cov=myst_parser --cov-report=xml --cov-report=term-missing
57-
coverage xml
58-
- name: Upload to Codecov
59-
if: github.repository == 'executablebooks/MyST-Parser' && matrix.python-version == 3.10 && matrix.os == 'ubuntu-latest'
60-
uses: codecov/codecov-action@v4
61-
with:
62-
token: ${{ secrets.CODECOV_TOKEN }}
63-
name: myst-parser-pytests
64-
flags: pytests
65-
file: ./coverage.xml
66-
fail_ci_if_error: true
55+
run: pytest --cov=myst_parser --cov-report=xml --cov-report=term-missing
56+
- name: Create coverage report
57+
run: coverage xml
58+
# TODO there is currently problem with this action and pull-requests from external forks
59+
# - name: Upload to Codecov
60+
# if: github.repository == 'executablebooks/MyST-Parser' && matrix.python-version == 3.11 && matrix.os == 'ubuntu-latest'
61+
# uses: codecov/codecov-action@v4
62+
# with:
63+
# token: ${{ secrets.CODECOV_TOKEN }}
64+
# name: myst-parser-pytests
65+
# flags: pytests
66+
# file: ./coverage.xml
67+
# fail_ci_if_error: true
6768

6869
check-myst-docutils:
6970

@@ -73,15 +74,15 @@ jobs:
7374
strategy:
7475
fail-fast: false
7576
matrix:
76-
docutils-version: ["0.19", "0.20", "0.21"]
77+
docutils-version: ["0.20", "0.21", "0.22"]
7778

7879
steps:
7980
- name: Checkout source
80-
uses: actions/checkout@v4
81-
- name: Set up Python 3.10
82-
uses: actions/setup-python@v5
81+
uses: actions/checkout@v6
82+
- name: Set up Python 3.11
83+
uses: actions/setup-python@v6
8384
with:
84-
python-version: "3.10"
85+
python-version: "3.11"
8586
- name: Install setup
8687
run: |
8788
python -m pip install --upgrade pip
@@ -132,11 +133,11 @@ jobs:
132133
runs-on: ubuntu-latest
133134
steps:
134135
- name: Checkout source
135-
uses: actions/checkout@v4
136-
- name: Set up Python 3.10
137-
uses: actions/setup-python@v5
136+
uses: actions/checkout@v6
137+
- name: Set up Python 3.11
138+
uses: actions/setup-python@v6
138139
with:
139-
python-version: "3.10"
140+
python-version: "3.11"
140141
- name: install flit
141142
run: |
142143
pip install flit~=3.4
@@ -155,11 +156,11 @@ jobs:
155156
runs-on: ubuntu-latest
156157
steps:
157158
- name: Checkout source
158-
uses: actions/checkout@v4
159-
- name: Set up Python 3.10
160-
uses: actions/setup-python@v5
159+
uses: actions/checkout@v6
160+
- name: Set up Python 3.11
161+
uses: actions/setup-python@v6
161162
with:
162-
python-version: "3.10"
163+
python-version: "3.11"
163164
- name: install flit and tomlkit
164165
run: |
165166
pip install flit~=3.4 tomlkit

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,30 @@ exclude: >
1313
repos:
1414

1515
- repo: https://github.com/pre-commit/pre-commit-hooks
16-
rev: v5.0.0
16+
rev: v6.0.0
1717
hooks:
1818
- id: check-json
1919
- id: check-yaml
2020
- id: end-of-file-fixer
2121
- id: trailing-whitespace
2222

2323
- repo: https://github.com/astral-sh/ruff-pre-commit
24-
rev: v0.8.4
24+
rev: v0.14.11
2525
hooks:
26-
- id: ruff
26+
- id: ruff-check
2727
args: [--fix]
2828
- id: ruff-format
2929

3030
- repo: https://github.com/pre-commit/mirrors-mypy
31-
rev: v1.14.0
31+
rev: v1.19.1
3232
hooks:
3333
- id: mypy
3434
args: [--config-file=pyproject.toml]
3535
additional_dependencies:
3636
- types-urllib3
37-
- sphinx~=7.4
38-
- markdown-it-py~=3.0
39-
- mdit-py-plugins~=0.4.0
37+
- sphinx~=8.2
38+
- markdown-it-py~=4.0
39+
- mdit-py-plugins~=0.5.0
4040
files: >
4141
(?x)^(
4242
myst_parser/.*py|

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2
33
build:
44
os: ubuntu-22.04
55
tools:
6-
python: "3.10"
6+
python: "3.11"
77

88
python:
99
install:

0 commit comments

Comments
 (0)