Skip to content

Commit a16ebcb

Browse files
[repo-helper] Configuration Update (#47)
* 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 47d6b44 commit a16ebcb

File tree

5 files changed

+26
-23
lines changed

5 files changed

+26
-23
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
nitpicky = True

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"
@@ -48,3 +44,7 @@ known_third_party = [
4844
"typing_extensions",
4945
]
5046
known_first_party = [ "sdjson",]
47+
48+
[config]
49+
indent = " "
50+
line_length = 115

pyproject.toml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ dynamic = [ "requires-python", "classifiers", "dependencies",]
1414
name = "Dominic Davis-Foster"
1515
email = "dominic@davis-foster.co.uk"
1616

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

@@ -62,7 +61,6 @@ extensions = [
6261
"sphinx.ext.mathjax",
6362
"sphinxcontrib.extras_require",
6463
"sphinx.ext.todo",
65-
"sphinxemoji.sphinxemoji",
6664
"notfound.extension",
6765
"sphinx_copybutton",
6866
"sphinxcontrib.default_values",
@@ -72,7 +70,6 @@ extensions = [
7270
"html_section",
7371
"sphinx_toolbox.more_autosummary.column_widths",
7472
]
75-
sphinxemoji_style = "twemoji"
7673
gitstamp_fmt = "%d %b %Y"
7774
templates_path = [ "_templates",]
7875
html_static_path = [ "_static",]
@@ -132,6 +129,16 @@ show_error_codes = true
132129
[tool.snippet-fmt]
133130
directives = [ "code-block",]
134131

132+
[tool.snippet-fmt.languages.python]
133+
reformat = true
134+
135+
[tool.snippet-fmt.languages.TOML]
136+
reformat = true
137+
138+
[tool.snippet-fmt.languages.ini]
139+
140+
[tool.snippet-fmt.languages.json]
141+
135142
[tool.dependency-dash."requirements.txt"]
136143
order = 10
137144

@@ -142,13 +149,3 @@ include = false
142149
[tool.dependency-dash."doc-source/requirements.txt"]
143150
order = 30
144151
include = false
145-
146-
[tool.snippet-fmt.languages.python]
147-
reformat = true
148-
149-
[tool.snippet-fmt.languages.TOML]
150-
reformat = true
151-
152-
[tool.snippet-fmt.languages.ini]
153-
154-
[tool.snippet-fmt.languages.json]

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ deps =
118118
flake8-github-actions>=0.1.0
119119
flake8-noqa>=1.1.0,<=1.2.2
120120
flake8-pyi>=20.10.0,<=22.8.0
121-
flake8-pytest-style>=1.3.0
121+
flake8-pytest-style>=1.3.0,<2
122122
flake8-quotes>=3.3.0
123123
flake8-slots>=0.1.0
124124
flake8-sphinx-links>=0.0.4

0 commit comments

Comments
 (0)