Skip to content

Commit f2e5b6a

Browse files
[repo-helper] Configuration Update (#70)
* Updated files with 'repo_helper'. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- 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 a512640 commit f2e5b6a

File tree

4 files changed

+32
-29
lines changed

4 files changed

+32
-29
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
@@ -76,8 +76,14 @@
7676
def setup(app):
7777
# 3rd party
7878
from sphinx_toolbox.latex import better_header_layout
79+
from sphinxemoji import sphinxemoji
7980

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

8288

8389
nitpicky = True

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"
@@ -64,3 +60,7 @@ known_third_party = [
6460
]
6561
known_first_party = [ "repo_helper_github",]
6662
line_length = 115
63+
64+
[config]
65+
indent = " "
66+
line_length = 115

pyproject.toml

+17-20
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,28 @@ readme = "README.rst"
1010
keywords = [ "github", "repo-helper",]
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/repo-helper/repo_helper_github"
2322
"Issue Tracker" = "https://github.com/repo-helper/repo_helper_github/issues"
2423
"Source Code" = "https://github.com/repo-helper/repo_helper_github"
2524
Documentation = "https://repo-helper-github.readthedocs.io/en/latest"
2625

26+
[project.entry-points."repo_helper.command"]
27+
repo_helper_github = "repo_helper_github.cli:github"
28+
2729
[tool.dep_checker]
2830
allowed_unused = [ "cryptography",]
2931

32+
[tool.dep_checker.name_mapping]
33+
github3_py = "github3"
34+
3035
[tool.whey]
3136
base-classifiers = [
3237
"Development Status :: 4 - Beta",
@@ -61,7 +66,6 @@ extensions = [
6166
"sphinx.ext.mathjax",
6267
"sphinxcontrib.extras_require",
6368
"sphinx.ext.todo",
64-
"sphinxemoji.sphinxemoji",
6569
"notfound.extension",
6670
"sphinx_copybutton",
6771
"sphinxcontrib.default_values",
@@ -73,7 +77,6 @@ extensions = [
7377
"sphinx_toolbox.more_autosummary.column_widths",
7478
"local_extension",
7579
]
76-
sphinxemoji_style = "twemoji"
7780
gitstamp_fmt = "%d %b %Y"
7881
templates_path = [ "_templates",]
7982
html_static_path = [ "_static",]
@@ -134,11 +137,15 @@ show_error_codes = true
134137
[tool.snippet-fmt]
135138
directives = [ "code-block",]
136139

137-
[project.entry-points."repo_helper.command"]
138-
repo_helper_github = "repo_helper_github.cli:github"
140+
[tool.snippet-fmt.languages.python]
141+
reformat = true
139142

140-
[tool.dep_checker.name_mapping]
141-
github3_py = "github3"
143+
[tool.snippet-fmt.languages.TOML]
144+
reformat = true
145+
146+
[tool.snippet-fmt.languages.ini]
147+
148+
[tool.snippet-fmt.languages.json]
142149

143150
[tool.dependency-dash."requirements.txt"]
144151
order = 10
@@ -150,13 +157,3 @@ include = false
150157
[tool.dependency-dash."doc-source/requirements.txt"]
151158
order = 30
152159
include = false
153-
154-
[tool.snippet-fmt.languages.python]
155-
reformat = true
156-
157-
[tool.snippet-fmt.languages.TOML]
158-
reformat = true
159-
160-
[tool.snippet-fmt.languages.ini]
161-
162-
[tool.snippet-fmt.languages.json]

0 commit comments

Comments
 (0)