Skip to content

Commit cde94fc

Browse files
Updated files with 'repo_helper'. (#131)
Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com>
1 parent 2c0a8ff commit cde94fc

File tree

4 files changed

+29
-26
lines changed

4 files changed

+29
-26
lines changed

doc-source/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,14 @@
7070
def setup(app):
7171
# 3rd party
7272
from sphinx_toolbox.latex import better_header_layout
73+
from sphinxemoji import sphinxemoji
7374

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

7682

7783
toctree_plus_types.add("fixture")

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"
@@ -101,3 +97,7 @@ known_third_party = [
10197
"ytools3",
10298
]
10399
known_first_party = [ "repo_helper",]
100+
101+
[config]
102+
indent = " "
103+
line_length = 115

pyproject.toml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ dynamic = [ "requires-python", "classifiers", "dependencies",]
1414
name = "Dominic Davis-Foster"
1515
1616

17-
1817
[project.license]
1918
file = "LICENSE"
2019

@@ -41,6 +40,9 @@ license-key = "LGPL-3.0-or-later"
4140
namespace_packages = [ "ruamel.yaml",]
4241
allowed_unused = [ "idna",]
4342

43+
[tool.dep_checker.name_mapping]
44+
attrs = "attr"
45+
4446
[tool.sphinx-pyproject]
4547
github_username = "repo-helper"
4648
github_repository = "repo_helper"
@@ -62,7 +64,6 @@ extensions = [
6264
"sphinx.ext.mathjax",
6365
"sphinxcontrib.extras_require",
6466
"sphinx.ext.todo",
65-
"sphinxemoji.sphinxemoji",
6667
"notfound.extension",
6768
"sphinx_copybutton",
6869
"sphinxcontrib.default_values",
@@ -74,7 +75,6 @@ extensions = [
7475
"sphinx_click",
7576
"sphinx_autofixture",
7677
]
77-
sphinxemoji_style = "twemoji"
7878
gitstamp_fmt = "%d %b %Y"
7979
templates_path = [ "_templates",]
8080
html_static_path = [ "_static",]
@@ -157,8 +157,15 @@ show_error_codes = true
157157
[tool.snippet-fmt]
158158
directives = [ "code-block",]
159159

160-
[tool.dep_checker.name_mapping]
161-
attrs = "attr"
160+
[tool.snippet-fmt.languages.python]
161+
reformat = true
162+
163+
[tool.snippet-fmt.languages.TOML]
164+
reformat = true
165+
166+
[tool.snippet-fmt.languages.ini]
167+
168+
[tool.snippet-fmt.languages.json]
162169

163170
[tool.dependency-dash."requirements.txt"]
164171
order = 10
@@ -170,13 +177,3 @@ include = false
170177
[tool.dependency-dash."doc-source/requirements.txt"]
171178
order = 30
172179
include = false
173-
174-
[tool.snippet-fmt.languages.python]
175-
reformat = true
176-
177-
[tool.snippet-fmt.languages.TOML]
178-
reformat = true
179-
180-
[tool.snippet-fmt.languages.ini]
181-
182-
[tool.snippet-fmt.languages.json]

tox.ini

Lines changed: 3 additions & 3 deletions
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
@@ -228,8 +228,8 @@ exclude_lines =
228228
raise NotImplementedError
229229
if 0:
230230
if False:
231-
if TYPE_CHECKING:
232-
if typing.TYPE_CHECKING:
231+
if TYPE_CHECKING
232+
if typing.TYPE_CHECKING
233233
if __name__ == .__main__.:
234234
omit = **/*._py
235235

0 commit comments

Comments
 (0)