From 3c2828bae65df60b12de12da363f8232035314ba Mon Sep 17 00:00:00 2001 From: bronsen Date: Thu, 12 Feb 2026 20:31:21 +0100 Subject: [PATCH 1/2] tooling: add linter and prek markdownlint-cli2 to lint markdown files. prek as replacement for pre-commit. --- mise.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mise.toml b/mise.toml index 3bc3271..7592ec1 100644 --- a/mise.toml +++ b/mise.toml @@ -2,6 +2,8 @@ '_'.python.venv = { path = ".venv", create = true } [tools] +markdownlint-cli2 = "latest" +prek = "latest" python = "3.14" ruff = "latest" uv = "latest" From 8da542a1f629e0b45588f83870eb24c702ed4b5f Mon Sep 17 00:00:00 2001 From: bronsen Date: Thu, 12 Feb 2026 20:31:52 +0100 Subject: [PATCH 2/2] tooling: configure prek --- prek.toml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 prek.toml diff --git a/prek.toml b/prek.toml new file mode 100644 index 0000000..083a1dc --- /dev/null +++ b/prek.toml @@ -0,0 +1,27 @@ +#:tombi schema.strict = false + +exclude = { glob = ["__snapshots__/**", "__pycache__", "dist/**"] } + +[[repos]] +repo = "builtin" +hooks = [ + { id = "check-case-conflict" }, + { id = "check-merge-conflict" }, + { id = "check-json" }, + { id = "check-symlinks" }, + { id = "check-toml" }, + { id = "check-yaml", args = [ + # "--allow-multiple-documents", #https://prek.j178.dev/builtin/#check-yaml + ] }, + { id = "end-of-file-fixer" }, + { id = "mixed-line-ending", args = [ + "--fix=lf", # https://prek.j178.dev/builtin/#mixed-line-ending + ] }, + { id = "trailing-whitespace", args = [ + "--markdown-linebreak-ext=md", # https://prek.j178.dev/builtin/#trailing-whitespace + ] }, +] + +[[repos]] +repo = "meta" +hooks = [{ id = "check-useless-excludes" }]