Skip to content

Commit 6a54ac1

Browse files
[repo-helper] Configuration Update (#85)
* Updated files with 'repo_helper'. * Updated files with 'repo_helper'. * Updated files with 'repo_helper'. --------- Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com>
1 parent 115ce80 commit 6a54ac1

File tree

5 files changed

+29
-26
lines changed

5 files changed

+29
-26
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ci:
88

99
repos:
1010
- repo: https://github.com/repo-helper/pyproject-parser
11-
rev: v0.9.1
11+
rev: v0.11.0
1212
hooks:
1313
- id: reformat-pyproject
1414

doc-source/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,14 @@
7474
def setup(app):
7575
# 3rd party
7676
from sphinx_toolbox.latex import better_header_layout
77+
from sphinxemoji import sphinxemoji
7778

7879
app.connect("config-inited", lambda app, config: better_header_layout(config))
80+
app.connect("build-finished", sphinxemoji.copy_asset_files)
81+
app.add_js_file("https://unpkg.com/twemoji@latest/dist/twemoji.min.js")
82+
app.add_js_file("twemoji.js")
83+
app.add_css_file("twemoji.css")
84+
app.add_transform(sphinxemoji.EmojiSubstitutions)
7985

8086
# 3rd party
8187
from sphinx_toolbox.latex import replace_unknown_unicode

formate.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,17 @@ noqa-reformat = 60
66
ellipsis-reformat = 70
77
squish_stubs = 80
88

9-
[config]
10-
indent = "\t"
11-
line_length = 115
12-
139
[hooks.yapf]
1410
priority = 30
1511

16-
[hooks.isort]
17-
priority = 50
18-
1912
[hooks.yapf.kwargs]
2013
yapf_style = ".style.yapf"
2114

15+
[hooks.isort]
16+
priority = 50
17+
2218
[hooks.isort.kwargs]
23-
indent = "\t\t"
19+
indent = " "
2420
multi_line_output = 8
2521
import_heading_stdlib = "stdlib"
2622
import_heading_thirdparty = "3rd party"
@@ -63,3 +59,7 @@ known_third_party = [
6359
]
6460
known_first_party = [ "seed_intersphinx_mapping",]
6561
line_length = 115
62+
63+
[config]
64+
indent = " "
65+
line_length = 115

pyproject.toml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@ readme = "README.rst"
1010
keywords = [ "documentation", "intersphinx", "sphinx",]
1111
dynamic = [ "requires-python", "classifiers", "dependencies",]
1212

13+
[project.license]
14+
file = "LICENSE"
15+
1316
[[project.authors]]
1417
name = "Dominic Davis-Foster"
1518
email = "dominic@davis-foster.co.uk"
1619

17-
18-
[project.license]
19-
file = "LICENSE"
20-
2120
[project.urls]
2221
Homepage = "https://github.com/sphinx-toolbox/seed_intersphinx_mapping"
2322
"Issue Tracker" = "https://github.com/sphinx-toolbox/seed_intersphinx_mapping/issues"
@@ -65,7 +64,6 @@ extensions = [
6564
"sphinx.ext.mathjax",
6665
"sphinxcontrib.extras_require",
6766
"sphinx.ext.todo",
68-
"sphinxemoji.sphinxemoji",
6967
"notfound.extension",
7068
"sphinx_copybutton",
7169
"sphinxcontrib.default_values",
@@ -77,7 +75,6 @@ extensions = [
7775
"sphinx_toolbox_experimental.needspace",
7876
"sphinx_toolbox_experimental.peps",
7977
]
80-
sphinxemoji_style = "twemoji"
8178
gitstamp_fmt = "%d %b %Y"
8279
templates_path = [ "_templates",]
8380
html_static_path = [ "_static",]
@@ -138,6 +135,16 @@ incremental = false
138135
[tool.snippet-fmt]
139136
directives = [ "code-block",]
140137

138+
[tool.snippet-fmt.languages.python]
139+
reformat = true
140+
141+
[tool.snippet-fmt.languages.TOML]
142+
reformat = true
143+
144+
[tool.snippet-fmt.languages.ini]
145+
146+
[tool.snippet-fmt.languages.json]
147+
141148
[tool.dependency-dash."requirements.txt"]
142149
order = 10
143150

@@ -148,13 +155,3 @@ include = false
148155
[tool.dependency-dash."doc-source/requirements.txt"]
149156
order = 30
150157
include = false
151-
152-
[tool.snippet-fmt.languages.python]
153-
reformat = true
154-
155-
[tool.snippet-fmt.languages.TOML]
156-
reformat = true
157-
158-
[tool.snippet-fmt.languages.ini]
159-
160-
[tool.snippet-fmt.languages.json]

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ deps =
126126
flake8-github-actions>=0.1.0
127127
flake8-noqa>=1.1.0,<=1.2.2
128128
flake8-pyi>=20.10.0,<=22.8.0
129-
flake8-pytest-style>=1.3.0
129+
flake8-pytest-style>=1.3.0,<2
130130
flake8-quotes>=3.3.0
131131
flake8-slots>=0.1.0
132132
flake8-sphinx-links>=0.0.4

0 commit comments

Comments
 (0)