Skip to content

Commit 3cbf546

Browse files
[repo-helper] Configuration Update (#68)
* 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 8e41ac2 commit 3cbf546

4 files changed

Lines changed: 28 additions & 25 deletions

File tree

.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

8187
needspace_amount = r"5\baselineskip"

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"
@@ -50,3 +46,7 @@ known_third_party = [
5046
"requests",
5147
]
5248
known_first_party = [ "flake8_dunder_all",]
49+
50+
[config]
51+
indent = " "
52+
line_length = 115

pyproject.toml

Lines changed: 13 additions & 16 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

@@ -28,6 +27,9 @@ Documentation = "https://flake8-dunder-all.readthedocs.io/en/latest"
2827
ensure_dunder_all = "flake8_dunder_all.__main__:main"
2928
ensure-dunder-all = "flake8_dunder_all.__main__:main"
3029

30+
[project.entry-points."flake8.extension"]
31+
DAL = "flake8_dunder_all:Plugin"
32+
3133
[tool.whey]
3234
base-classifiers = [
3335
"Development Status :: 4 - Beta",
@@ -63,7 +65,6 @@ extensions = [
6365
"sphinx.ext.mathjax",
6466
"sphinxcontrib.extras_require",
6567
"sphinx.ext.todo",
66-
"sphinxemoji.sphinxemoji",
6768
"notfound.extension",
6869
"sphinx_copybutton",
6970
"sphinxcontrib.default_values",
@@ -77,7 +78,6 @@ extensions = [
7778
"sphinx_toolbox.more_autosummary.column_widths",
7879
"sphinx_favicon",
7980
]
80-
sphinxemoji_style = "twemoji"
8181
gitstamp_fmt = "%d %b %Y"
8282
templates_path = [ "_templates",]
8383
html_static_path = [ "_static",]
@@ -137,13 +137,20 @@ show_error_codes = true
137137
[tool.snippet-fmt]
138138
directives = [ "code-block",]
139139

140+
[tool.snippet-fmt.languages.python]
141+
reformat = true
142+
143+
[tool.snippet-fmt.languages.TOML]
144+
reformat = true
145+
146+
[tool.snippet-fmt.languages.ini]
147+
148+
[tool.snippet-fmt.languages.json]
149+
140150
[tool.mkrecipe]
141151
conda-channels = [ "conda-forge", "domdfcoding",]
142152
extras = "all"
143153

144-
[project.entry-points."flake8.extension"]
145-
DAL = "flake8_dunder_all:Plugin"
146-
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)