Solution to issue cannot be found in the documentation.
[X] I checked the documentation.
Issue
If a conda-forge.yml contains an unexpected top-level key, no useful output should be shown.
For example, given this file, the error should probably be:
Additional properties are not allowed ('linux_ppc64le' was unexpected)
But instead seeing:
Traceback (most recent call last):
File "~/env/bin/conda-smithy", line 10, in <module>
sys.exit(main())
^^^^^^
File "~/env/lib/python3.11/site-packages/conda_smithy/cli.py", line 737, in main
args.subcommand_func(args)
File "~/env/lib/python3.11/site-packages/conda_smithy/cli.py", line 616, in __call__
lints, hints = lint_recipe.main(
^^^^^^^^^^^^^^^^^
File "~/env/lib/python3.11/site-packages/conda_smithy/lint_recipe.py", line 1115, in main
results.extend([_format_validation_msg(err) for err in validation_errors])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "~/env/lib/python3.11/site-packages/conda_smithy/lint_recipe.py", line 1115, in <listcomp>
results.extend([_format_validation_msg(err) for err in validation_errors])
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "~/env/lib/python3.11/site-packages/conda_smithy/lint_recipe.py", line 1081, in _format_validation_msg
error.json_path.split(".")[1].split("[")[0].replace("_", "-")
Solution to issue cannot be found in the documentation.
Issue
If a
conda-forge.yml
contains an unexpected top-level key, no useful output should be shown.For example, given this file, the error should probably be:
But instead seeing:
PR incoming.
Installed packages
Environment info