diff --git a/src/sp_repo_review/checks/precommit.py b/src/sp_repo_review/checks/precommit.py index 02ea6efc..c45beca5 100644 --- a/src/sp_repo_review/checks/precommit.py +++ b/src/sp_repo_review/checks/precommit.py @@ -138,6 +138,7 @@ class PC180(PreCommit): "https://github.com/rbubley/mirrors-prettier", "https://github.com/hukkin/mdformat", "https://github.com/rvben/rumdl-pre-commit", + "https://github.com/davidanson/markdownlint-cli2", } diff --git a/tests/test_precommit.py b/tests/test_precommit.py index 379669e8..dfd63a30 100644 --- a/tests/test_precommit.py +++ b/tests/test_precommit.py @@ -166,6 +166,14 @@ def test_pc180_alt_3(): assert compute_check("PC180", precommit=precommit).result +def test_pc180_alt_4(): + precommit = yaml.safe_load(""" + repos: + - repo: https://github.com/DavidAnson/markdownlint-cli2 + """) + assert compute_check("PC180", precommit=precommit).result + + def test_pc191(ruff_check: str): precommit = yaml.safe_load(f""" repos: