Skip to content

Commit 901b9e2

Browse files
committed
chore: Update project template to sphinx-notes/cookiecutter@7a50ba07
1 parent f15f97f commit 901b9e2

4 files changed

Lines changed: 24 additions & 4 deletions

File tree

.cruft.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/sphinx-notes/cookiecutter",
3-
"commit": "23ec0a16126e4cc70f1854e31321d9c290b3ae63",
3+
"commit": "7a50ba075b59fb6e386d75181e33135d458c8974",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
@@ -20,7 +20,7 @@
2020
"sphinx_version": "7.0",
2121
"development_status": "3 - Alpha",
2222
"_template": "https://github.com/sphinx-notes/cookiecutter",
23-
"_commit": "23ec0a16126e4cc70f1854e31321d9c290b3ae63"
23+
"_commit": "7a50ba075b59fb6e386d75181e33135d458c8974"
2424
}
2525
},
2626
"directory": null

.github/workflows/test.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Test
2+
on:
3+
push:
4+
pull_request:
5+
schedule:
6+
- cron: '0 7 * * 6'
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-python@v5
13+
with:
14+
python-version-file: 'pyproject.toml'
15+
- run: python3 -m pip install .[dev]
16+
- run: make test

src/sphinxnotes/strike/meta.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
from __future__ import annotations
99
from importlib import metadata
1010

11+
from sphinx.application import Sphinx
12+
from sphinx.util.typing import ExtensionMetadata
13+
14+
1115
__project__ = 'sphinxnotes-strike'
1216
__author__ = 'Shengyu Zhang'
1317
__desc__ = 'An extension that adds strikethrough text support to Sphinx'
@@ -23,11 +27,11 @@
2327
################################################################################
2428

2529

26-
def pre_setup(app):
30+
def pre_setup(app: Sphinx) -> None:
2731
app.require_sphinx('7.0')
2832

2933

30-
def post_setup(app):
34+
def post_setup(app: Sphinx) -> ExtensionMetadata:
3135
return {
3236
'version': __version__,
3337
'parallel_read_safe': True,

tests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)