From e2e9597a2a289b8d4614f9aa1e1d9b46d8e24c24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20B=C3=A4ck?= Date: Mon, 13 May 2024 17:26:24 +0200 Subject: [PATCH] Lock version of markdownlint-cli and fix violations markdownlint-cli was using a floating version, and since this linter was introduced additional rules have been added so now the linting fails on the master branch. Lock the version to the currently latest version and disable the rule that we didn't comply with (since addressing it properly would be rather intrusive). --- .markdown-lint.yml | 4 ++++ tox.ini | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.markdown-lint.yml b/.markdown-lint.yml index 14ed29b4..a7676c83 100644 --- a/.markdown-lint.yml +++ b/.markdown-lint.yml @@ -30,6 +30,10 @@ # Rules by tags # ################# +# First line in a file being a top-level heading collides with starting +# each file with a copyright statement. +first-line-h1: false + # MD013/line-length - Line length line-length: line_length: 900 # Arbitrary length to catch the worst. Setting this to 120 affects 500 lines diff --git a/tox.ini b/tox.ini index c89a9d0d..f8fec588 100644 --- a/tox.ini +++ b/tox.ini @@ -79,4 +79,4 @@ changedir = {toxinidir} allowlist_externals = npx commands = - npx markdownlint-cli -c .markdown-lint.yml *.md **/*.md + npx markdownlint-cli@v0.34.0 -c .markdown-lint.yml *.md **/*.md