chore: check-yaml chokes on mkdocs.yml custom tag #6

Closed
opened 2026-05-26 03:27:22 +00:00 by coilysiren · 0 comments
Owner

Problem

check-yaml from pre-commit/pre-commit-hooks fails on mkdocs.yml:

could not determine a constructor for the tag 'tag:yaml.org,2002:python/name:material.extensions.emoji.twemoji'
  in "mkdocs.yml", line 56, column 20

Fix

Add args: [--unsafe] to the check-yaml hook entry (or scope it to exclude: mkdocs.yml). --unsafe is the documented mkdocs-material workaround.

Context

Pre-existing - the v0.2.8 bump just surfaced it. Skipped during #31 commit.

**Problem** `check-yaml` from `pre-commit/pre-commit-hooks` fails on `mkdocs.yml`: ``` could not determine a constructor for the tag 'tag:yaml.org,2002:python/name:material.extensions.emoji.twemoji' in "mkdocs.yml", line 56, column 20 ``` **Fix** Add `args: [--unsafe]` to the `check-yaml` hook entry (or scope it to `exclude: mkdocs.yml`). `--unsafe` is the documented mkdocs-material workaround. **Context** Pre-existing - the v0.2.8 bump just surfaced it. Skipped during #31 commit.
Commenting is not possible because the repository is archived.
No labels
P3
P4
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
coilysiren/cli-mcp-go-ecosystem#6
No description provided.