Skip to content

Commit dc7c20e

Browse files
RobPasMuelwasser
authored andcommitted
chore: change single quotes for double quotes
1 parent a4b96af commit dc7c20e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

_ext/translation_graph.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ class TranslationGraph(Directive):
1313

1414
def run(self):
1515
# Read the JSON file containing translation statistics
16-
json_path = Path(__file__).parent.parent / '_static' / 'translation_stats.json'
17-
with json_path.open('r') as f:
16+
json_path = Path(__file__).parent.parent / "_static" / "translation_stats.json"
17+
with json_path.open("r") as f:
1818
data = json.load(f)
1919

2020
# Collect all module names -- iterates over the JSON data in 2 levels
@@ -53,16 +53,16 @@ def run(self):
5353
# Create figure
5454
fig = go.Figure(data=traces)
5555
fig.update_layout(
56-
barmode='group',
56+
barmode="group",
5757
title="Translation Coverage by Module and Locale",
5858
xaxis_title="Module",
5959
yaxis_title="Percentage Translated",
6060
height=600,
6161
margin=dict(l=40, r=40, t=40, b=40)
6262
)
6363

64-
div = plot(fig, output_type='div', include_plotlyjs=True)
65-
return [nodes.raw('', div, format='html')]
64+
div = plot(fig, output_type="div", include_plotlyjs=True)
65+
return [nodes.raw("", div, format="html")]
6666

6767
def setup(app):
6868
app.add_directive("translation-graph", TranslationGraph)

conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"sphinxext.opengraph",
8484
"sphinx_favicon",
8585
"sphinxcontrib.bibtex",
86-
'_ext.translation_graph',
86+
"_ext.translation_graph",
8787
]
8888

8989
# colon fence for card support in md

0 commit comments

Comments
 (0)