Skip to content

Commit 0eed8ae

Browse files
Add default values for needs.json
1 parent 3713652 commit 0eed8ae

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/extensions/score_metamodel/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,13 @@ def setup(app: Sphinx) -> dict[str, str | bool]:
290290
app.config.graph_checks = metamodel["needs_graph_check"]
291291
app.config.stop_words = metamodel["stop_words"]
292292
app.config.weak_words = metamodel["weak_words"]
293+
294+
# Ensure that 'needs.json' is always build.
295+
app.config.needs_build_json = True
296+
app.config.needs_reproducible_json = True
297+
app.config.needs_json_remove_defaults = True
298+
299+
293300
app.connect("config-inited", parse_external_needs_sources)
294301

295302
discover_checks()

0 commit comments

Comments
 (0)