Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

strategy:
matrix:
python-version: ['3.12', '3.13']
python-version: ['3.12', '3.13', '3.14']
platform: [ubuntu-latest, windows-latest]
lint-stage: [pre-commit, pre-push, manual]

Expand Down
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dynamic = [
"version",
Expand Down Expand Up @@ -122,6 +123,10 @@ universal = true
# Code to match this is in ``conf.py``.
version_scheme = "post-release"

[tool.uv.sources]
# See https://github.com/PyCQA/docformatter/pull/325.
docformatter = { "git" = "https://github.com/tdenewiler/docformatter.git", branch = "untokenize-std-lib" }

[tool.ruff]
line-length = 79

Expand Down Expand Up @@ -333,7 +338,7 @@ pep621_dev_dependency_groups = [
[tool.pyproject-fmt]
indent = 4
keep_full_version = true
max_supported_python = "3.13"
max_supported_python = "3.14"

[tool.pytest.ini_options]

Expand Down
8 changes: 4 additions & 4 deletions src/sphinx_notion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ class _TableStructure:
def _process_rich_text_node(node: nodes.Node) -> Text:
"""Create Notion rich text from a single ``docutils`` node.

This is the base function for ``singledispatch``. Specific node types
are handled by registered functions.
This is the base function for ``singledispatch``. Specific node
types are handled by registered functions.
"""
unsupported_child_type_msg = (
f"Unsupported node type within text: {type(node).__name__} on line "
Expand Down Expand Up @@ -268,8 +268,8 @@ def _(node: nodes.target) -> Text:
def _(node: nodes.title_reference) -> Text:
"""Process title reference nodes by creating italic text.

We match the behavior of the HTML builder here.
If you render ``A `B``` in HTML, it will render as ``A <i>B</i>``.
We match the behavior of the HTML builder here. If you render ``A
`B``` in HTML, it will render as ``A <i>B</i>``.
"""
return text(text=node.astext(), italic=True)

Expand Down
4 changes: 2 additions & 2 deletions tests/test_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
def test_help(file_regression: FileRegressionFixture) -> None:
"""Expected help text is shown.

This help text is defined in files.
To update these files, run ``pytest`` with the ``--regen-all`` flag.
This help text is defined in files. To update these files, run
``pytest`` with the ``--regen-all`` flag.
"""
runner = CliRunner()
arguments = ["--help"]
Expand Down
Loading