Closed christophfroehlich closed 2 months ago
The ---
is a separator
https://gettaurus.org/docs/YAMLTutorial/#YAML-Multi-Documents
Is that linter expecting a single yaml doc potentially?
Thank @tfoote for your hint. I didn't know about this yaml syntax (section 2.2) and haven't investigated this further. But the pre-commit hook has even an option for that
- id: check-yaml
args: ["--allow-multiple-documents"]
and everything is fine! Sorry for the noise..
I created a default rosdoc2.yaml with
rosdoc2 default_config --package-path src/realtime_tools/
, but the official pre-commit hook complains about the formatRemoving this line fixes this https://github.com/ros-infrastructure/rosdoc2/blob/0403657aa032ead0a9e02b173f737e49206cbbac/rosdoc2/verbs/build/inspect_package_for_settings.py#L28 but then the config parser will fail https://github.com/ros-infrastructure/rosdoc2/blob/0403657aa032ead0a9e02b173f737e49206cbbac/rosdoc2/verbs/build/parse_rosdoc2_yaml.py#L29-L32