From 7a4d73af2ed1f64230f5a7cc99fa977e3a0bbbd4 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Wed, 18 Jun 2025 21:48:39 +0200 Subject: [PATCH] Add linting check for RST code blocks. --- antsibull-nox.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/antsibull-nox.toml b/antsibull-nox.toml index 233da2ab..100fe921 100644 --- a/antsibull-nox.toml +++ b/antsibull-nox.toml @@ -32,6 +32,14 @@ mypy_extra_deps = [ [sessions.docs_check] validate_collection_refs="all" +codeblocks_restrict_types = [ + "ansible-output", + "yaml", + "yaml+jinja", +] +codeblocks_restrict_type_exact_case = true +codeblocks_allow_without_type = false +codeblocks_allow_literal_blocks = false [sessions.license_check] run_reuse = true