Add Markdown reformat to lint.py
authorKirill Isakov <bootctl@gmail.com>
Sun, 29 May 2022 05:24:04 +0000 (11:24 +0600)
committerKirill Isakov <bootctl@gmail.com>
Sun, 29 May 2022 08:43:37 +0000 (14:43 +0600)
.github/workflows/test.yml
lint.py

index 61973df..ad86e0f 100644 (file)
@@ -100,7 +100,7 @@ jobs:
           chmod 755 ~/shfmt ~/shellcheck
           python3 -m venv /tmp/venv
           . /tmp/venv/bin/activate
-          pip3 install black pylint mypy
+          pip3 install black pylint mypy markflow
         env:
           CLANG: 11
           SHELLCHECK: 0.8.0
diff --git a/lint.py b/lint.py
index 076b3e7..d1cb245 100755 (executable)
--- a/lint.py
+++ b/lint.py
@@ -39,6 +39,7 @@ linters = (
     ["pylint", "."],
     ["mypy", "--exclude", "build", "."],
     ["shellcheck", "-x", *glob(".ci/**/*.sh", recursive=True)],
+    ["markflow", "--line-length", "80", "--check" if DRY else "--verbose", ".", ".ci"],
 )
 
 failed: bool = False