MyST-NB icon indicating copy to clipboard operation
MyST-NB copied to clipboard

Parsing bool config from cmd

Open bsipocz opened this issue 3 years ago • 0 comments

Describe the bug

context When I do sphinx-build -b html -D nb_execution_mode=auto -D nb_execution_allow_errors=True . _build/html

expectation I expected it to work.

bug But instead

Running Sphinx v4.5.0
making output directory... done
WARNING: html_static_path entry '_static' does not exist
myst v0.17.2: MdParserConfig(commonmark_only=False, gfm_only=False, enable_extensions=[], linkify_fuzzy_links=True, dmath_allow_labels=True, dmath_allow_space=True, dmath_allow_digits=True, dmath_double_inline=False, update_mathjax=True, mathjax_classes='tex2jax_process|mathjax_process|math|output_area', disable_syntax=[], all_links_external=False, url_schemes=('http', 'https', 'mailto', 'ftp'), ref_domains=None, highlight_code_blocks=True, number_code_blocks=[], title_to_header=False, heading_anchors=None, heading_slug_func=None, footnote_transition=True, sub_delimiters=('{', '}'), words_per_minute=200)
CRITICAL: myst-nb configuration invalid: 'execution_allow_errors' must be <class 'bool'> (got 'True' that is a <class 'str'>)`___.

problem This is a problem for people doing quick checks without wanting to edit the config files just yet.

(E.g. for CI I was exploring the way how I could make the sphinx-build fail when cells run into unexpected exceptions)

Reproduce the bug

sphinx-build -b html -D nb_execution_mode=auto -D nb_execution_allow_errors=True . _build/html

List your environment

No response

bsipocz avatar May 10 '22 20:05 bsipocz