8000 [repo-helper] Configuration Update (#115) · domdfcoding/domdf_python_tools@adce67b · GitHub
[go: up one dir, main page]

Skip to content

Commit adce67b

Browse files
[repo-helper] Configuration Update (#115)
* 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 8304947 commit adce67b

File tree

4 files changed

+28
-25
lines changed

4 files changed

+28
-25
lines changed

.pre-commit-config.yaml

+1-1
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

+6
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,14 @@
7878
def setup(app):
7979
# 3rd party
8080
from sphinx_toolbox.latex import better_header_layout
81+
from sphinxemoji import sphinxemoji
8182

8283
app.connect("config-inited", lambda app, config: better_header_layout(config))
84+
app.connect("build-finished", sphinxemoji.copy_asset_files)
85+
app.add_js_file("https://unpkg.com/twemoji@latest/dist/twemoji.min.js")
86+
app.add_js_file("twemoji.js")
87+
app.add_css_file("twemoji.css")
88+
app.add_transform(sphinxemoji.EmojiSubstitutions)
8389

8490

8591
manpages_url = "https://manpages.debian.org/{path}"

formate.toml

+8-8
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"
@@ -57,3 +53,7 @@ known_third_party = [
5753
"typing_extensions",
5854
]
5955
known_first_party = [ "domdf_python_tools",]
56+
57+
[config]
58+
indent = " "
59+
line_length = 115

pyproject.toml

+13-16
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,13 @@ classifiers = [
3030
]
3131
dynamic = [ "dependencies",]
3232

33+
[project.license]
34+
file = "LICENSE"
35+
3336
[[project.authors]]
3437
name = "Dominic Davis-Foster"
3538
email = "dominic@davis-foster.co.uk"
3639

37-
38-
[project.license]
39-
file = "LICENSE"
40-
4140
[project.urls]
4241
Homepage = "https://github.com/domdfcoding/domdf_python_tools"
4342
"Issue Tracker" = "https://github.com/domdfcoding/domdf_python_tools/issues"
@@ -75,7 +74,6 @@ extensions = [
7574
"sphinx.ext.mathjax",
7675
"sphinxcontrib.extras_require",
7776
"sphinx.ext.todo",
78-
"sphinxemoji.sphinxemoji",
7977
"notfound.extension",
8078
"sphinx_copybutton",
8179
"sphinxcontrib.default_values",
@@ -89,7 +87,6 @@ extensions = [
8987
"sphinx_toolbox.latex.succinct_seealso",
9088
"latex_unicode",
9189
]
92-
sphinxemoji_style = "twemoji"
9390
gitstamp_fmt = "%d %b %Y"
9491
templates_path = [ "_templates",]
9592
html_static_path = [ "_static",]
@@ -162,6 +159,16 @@ show_error_codes = true
162159
[tool.snippet-fmt]
163160
directives = [ "code-block",]
164161

162+
[tool.snippet-fmt.languages.python]
163+
reformat = true
164+
165+
[tool.snippet-fmt.languages.TOML]
166+
reformat = true
167+
168+
[tool.snippet-fmt.languages.ini]
169+
170+
[tool.snippet-fmt.languages.json]
171+
165172
[tool.setuptools]
166173
zip-safe = false
167174
include-package-data = true
@@ -177,13 +184,3 @@ include = false
177184
[tool.dependency-dash."doc-source/requirements.txt"]
178185
order = 30
179186
include = false
180-
181-
[tool.snippet-fmt.languages.python]
182-
reformat = true
183-
184-
[tool.snippet-fmt.languages.TOML]
185-
reformat = true
186-
187-
[tool.snippet-fmt.languages.ini]
188-
189-
[tool.snippet-fmt.languages.json]

0 commit comments

Comments
 (0)
0