Skip to content

Commit 7c01fc2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b7d66f7 commit 7c01fc2

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

docs/conf.py

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,30 @@
99
from pathlib import Path
1010

1111
from setuptools_scm import get_version
12-
1312
from sphinx.application import Sphinx
1413

15-
1614
# -- Path setup --------------------------------------------------------------
1715

1816
PROJECT_ROOT_DIR = Path(__file__).parents[1].resolve() # pylint: disable=no-member
1917
get_scm_version = partial(get_version, root=PROJECT_ROOT_DIR)
2018
# -- Project information -----------------------------------------------------
2119

22-
github_url = 'https://github.com'
23-
github_repo_org = 'ansible'
24-
github_repo_name = 'ansible-language-server'
25-
github_repo_slug = f'{github_repo_org}/{github_repo_name}'
26-
github_repo_url = f'{github_url}/{github_repo_slug}'
27-
github_sponsors_url = f'{github_url}/sponsors'
20+
github_url = "https://github.com"
21+
github_repo_org = "ansible"
22+
github_repo_name = "ansible-language-server"
23+
github_repo_slug = f"{github_repo_org}/{github_repo_name}"
24+
github_repo_url = f"{github_url}/{github_repo_slug}"
25+
github_sponsors_url = f"{github_url}/sponsors"
2826

2927
project = "MyST Parser"
3028
copyright = f"{date.today().year}, Executable Book Project"
3129
author = "Executable Book Project"
3230

3331
# The short X.Y version
34-
version = '.'.join(
35-
get_scm_version(
36-
local_scheme='no-local-version',
37-
).split('.')[:3],
32+
version = ".".join(
33+
get_scm_version(local_scheme="no-local-version",).split(
34+
"."
35+
)[:3],
3836
)
3937

4038
# The full version, including alpha/beta/rc tags
@@ -52,14 +50,14 @@
5250
extensions = [
5351
"myst_parser",
5452
"sphinx.ext.autodoc",
55-
'sphinx.ext.extlinks',
53+
"sphinx.ext.extlinks",
5654
"sphinx.ext.intersphinx",
5755
"sphinx.ext.viewcode",
5856
"sphinx_design",
5957
"sphinxext.rediraffe",
6058
"sphinxcontrib.mermaid",
6159
"sphinxext.opengraph",
62-
'sphinxcontrib.towncrier', # provides `towncrier-draft-entries` directive
60+
"sphinxcontrib.towncrier", # provides `towncrier-draft-entries` directive
6361
]
6462

6563
# Add any paths that contain templates here, relative to this directory.
@@ -69,8 +67,10 @@
6967
# directories to ignore when looking for source files.
7068
# This pattern also affects html_static_path and html_extra_path.
7169
exclude_patterns = [
72-
"_build", "Thumbs.db", ".DS_Store",
73-
'changelog-fragments.d/**', # Towncrier-managed change notes
70+
"_build",
71+
"Thumbs.db",
72+
".DS_Store",
73+
"changelog-fragments.d/**", # Towncrier-managed change notes
7474
]
7575

7676

@@ -123,10 +123,10 @@
123123
]
124124
myst_number_code_blocks = ["typescript"]
125125
myst_substitutions = {
126-
'project': project,
127-
'release': release,
128-
'release_l': f'`{release}`', # Needed in draft changelog for spelling ext
129-
'version': version,
126+
"project": project,
127+
"release": release,
128+
"release_l": f"`{release}`", # Needed in draft changelog for spelling ext
129+
"version": version,
130130
}
131131
myst_heading_anchors = 2
132132
myst_footnote_transition = True
@@ -151,19 +151,19 @@
151151

152152
# -- Options for towncrier_draft extension -----------------------------------
153153

154-
towncrier_draft_autoversion_mode = 'draft' # or: 'sphinx-version', 'sphinx-release'
154+
towncrier_draft_autoversion_mode = "draft" # or: 'sphinx-version', 'sphinx-release'
155155
towncrier_draft_include_empty = True
156156
towncrier_draft_working_directory = PROJECT_ROOT_DIR
157157
# towncrier_draft_config_path = 'pyproject.toml' # relative to cwd
158158

159159
# -- Options for extlinks extension ------------------------------------------
160160

161161
extlinks = {
162-
'issue': (f'{github_repo_url}/issues/%s', '#%s'), # noqa: WPS323
163-
'pr': (f'{github_repo_url}/pull/%s', 'PR #%s'), # noqa: WPS323
164-
'commit': (f'{github_repo_url}/commit/%s', '%s'), # noqa: WPS323
165-
'gh': (f'{github_url}/%s', 'GitHub: %s'), # noqa: WPS323
166-
'user': (f'{github_sponsors_url}/%s', '@%s'), # noqa: WPS323
162+
"issue": (f"{github_repo_url}/issues/%s", "#%s"), # noqa: WPS323
163+
"pr": (f"{github_repo_url}/pull/%s", "PR #%s"), # noqa: WPS323
164+
"commit": (f"{github_repo_url}/commit/%s", "%s"), # noqa: WPS323
165+
"gh": (f"{github_url}/%s", "GitHub: %s"), # noqa: WPS323
166+
"user": (f"{github_sponsors_url}/%s", "@%s"), # noqa: WPS323
167167
}
168168

169169
intersphinx_mapping = {

0 commit comments

Comments
 (0)