Skip to content

Commit 019fa99

Browse files
[repo-helper] Configuration Update (#73)
* Updated files with 'repo_helper'. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Updated files with 'repo_helper'. --------- Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 55b7335 commit 019fa99

File tree

4 files changed

+28
-25
lines changed

4 files changed

+28
-25
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
@@ -69,8 +69,14 @@
6969
def setup(app):
7070
# 3rd party
7171
from sphinx_toolbox.latex import better_header_layout
72+
from sphinxemoji import sphinxemoji
7273

7374
app.connect("config-inited", lambda app, config: better_header_layout(config))
75+
app.connect("build-finished", sphinxemoji.copy_asset_files)
76+
app.add_js_file("https://unpkg.com/twemoji@latest/dist/twemoji.min.js")
77+
app.add_js_file("twemoji.js")
78+
app.add_css_file("twemoji.css")
79+
app.add_transform(sphinxemoji.EmojiSubstitutions)
7480

7581

7682
pypi_name = "chemistry_tools"

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"
@@ -61,3 +57,7 @@ known_third_party = [
6157
"sphinx_toolbox",
6258
]
6359
known_first_party = [ "sphinxcontrib_extras_require",]
60+
61+
[config]
62+
indent = " "
63+
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", "requirements", "sphinx", "sphinx-extension",]
1111
dynamic = [ "requires-python", "classifiers", "dependencies",]
1212

13+
[project.license]
14+
file = "LICENSE"
15+
1316
[[project.authors]]
1417
name = "Dominic Davis-Foster"
1518
1619

17-
18-
[project.license]
19-
file = "LICENSE"
20-
2120
[project.urls]
2221
Homepage = "https://github.com/sphinx-toolbox/extras_require"
2322
"Issue Tracker" = "https://github.com/sphinx-toolbox/extras_require/issues"
@@ -71,7 +70,6 @@ extensions = [
7170
"sphinx.ext.mathjax",
7271
"sphinxcontrib.extras_require",
7372
"sphinx.ext.todo",
74-
"sphinxemoji.sphinxemoji",
7573
"notfound.extension",
7674
"sphinx_copybutton",
7775
"sphinxcontrib.default_values",
@@ -83,7 +81,6 @@ extensions = [
8381
"sphinx_toolbox_experimental.succinct_seealso",
8482
"sphinx_toolbox_experimental.autosummary_widths",
8583
]
86-
sphinxemoji_style = "twemoji"
8784
gitstamp_fmt = "%d %b %Y"
8885
templates_path = [ "_templates",]
8986
html_static_path = [ "_static",]
@@ -144,6 +141,16 @@ incremental = false
144141
[tool.snippet-fmt]
145142
directives = [ "code-block",]
146143

144+
[tool.snippet-fmt.languages.python]
145+
reformat = true
146+
147+
[tool.snippet-fmt.languages.TOML]
148+
reformat = true
149+
150+
[tool.snippet-fmt.languages.ini]
151+
152+
[tool.snippet-fmt.languages.json]
153+
147154
[tool.dependency-dash."requirements.txt"]
148155
order = 10
149156

@@ -154,13 +161,3 @@ include = false
154161
[tool.dependency-dash."doc-source/requirements.txt"]
155162
order = 30
156163
include = false
157-
158-
[tool.snippet-fmt.languages.python]
159-
reformat = true
160-
161-
[tool.snippet-fmt.languages.TOML]
162-
reformat = true
163-
164-
[tool.snippet-fmt.languages.ini]
165-
166-
[tool.snippet-fmt.languages.json]

0 commit comments

Comments
 (0)