Skip to content

Commit 3e55a01

Browse files
committed
fix: add a new md formatter
Signed-off-by: Henry Schreiner <[email protected]>
1 parent a85c2dc commit 3e55a01

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

src/sp_repo_review/checks/precommit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ class PC180(PreCommit):
135135
"https://github.com/rbubley/mirrors-prettier",
136136
"https://github.com/executablebooks/mdformat",
137137
"https://github.com/hukkin/mdformat",
138+
"https://github.com/rvben/rumdl-pre-commit",
138139
}
139140

140141

tests/test_precommit.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,23 @@ def test_pc180():
133133
def test_pc180_alt_1():
134134
precommit = yaml.safe_load("""
135135
repos:
136-
- repo: https://github.com/rbubley/mirrors-prettier
136+
- repo: https://github.com/executablebooks/mdformat
137+
""")
138+
assert compute_check("PC180", precommit=precommit).result
139+
140+
141+
def test_pc180_alt_2():
142+
precommit = yaml.safe_load("""
143+
repos:
144+
- repo: https://github.com/hukkin/mdformat
145+
""")
146+
assert compute_check("PC180", precommit=precommit).result
147+
148+
149+
def test_pc180_alt_3():
150+
precommit = yaml.safe_load("""
151+
repos:
152+
- repo: https://github.com/rvben/rumdl-pre-commit
137153
""")
138154
assert compute_check("PC180", precommit=precommit).result
139155

0 commit comments

Comments
 (0)