Skip to content

Commit

Permalink
[pre-commit.ci lite] apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] authored Oct 8, 2024
1 parent 1a8a5a9 commit 1307603
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ optional-dependencies.dev = [
"deptry==0.20.0",
"doc8==1.1.2",
"doccmd==2024.10.8.12",
"docformatter==1.7.5",
"interrogate==1.7.0",
"mypy==1.11.2",
"myst-parser==4.0.0",
Expand All @@ -67,7 +68,6 @@ optional-dependencies.dev = [
"sphinx[test]==8.0.2",
"types-docutils==0.21.0.20241005",
"vulture==2.13",
"docformatter==1.7.5",
]
optional-dependencies.release = [ "check-wheel-contents==0.6.0" ]
urls.Source = "https://github.com/adamtheturtle/sphinx-substitution-extensions"
Expand Down
4 changes: 3 additions & 1 deletion sample/source/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
"""Documentation."""
"""
Documentation.
"""
8 changes: 6 additions & 2 deletions src/sphinx_substitution_extensions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ def run(self) -> list[Node]:

@beartype
class SubstitutionCodeRole:
"""Custom role for substitution code."""
"""
Custom role for substitution code.
"""

options: ClassVar[dict[str, Any]] = {
"class": directives.class_option,
Expand Down Expand Up @@ -115,7 +117,9 @@ def __call__( # pylint: disable=dangerous-default-value

@beartype
class SubstitutionXRefRole(XRefRole):
"""Custom role for XRefs."""
"""
Custom role for XRefs.
"""

def process_link(
self,
Expand Down
4 changes: 3 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Configuration for pytest."""
"""
Configuration for pytest.
"""

import pytest
from beartype import beartype
Expand Down
3 changes: 1 addition & 2 deletions tests/test_substitution_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,7 @@ def test_substitution_download(
) -> None:
"""
The ``substitution-download`` role replaces the placeholders defined in
``conf.py`` as specified in both the download text and the download
target.
``conf.py`` as specified in both the download text and the download target.
"""
source_directory = tmp_path / "source"
source_directory.mkdir()
Expand Down

0 comments on commit 1307603

Please sign in to comment.