Skip to content

Commit cf316d7

Browse files
committed
Add markdownlint to pre-commit
1 parent 3ec9457 commit cf316d7

File tree

3 files changed

+40
-18
lines changed

3 files changed

+40
-18
lines changed

.markdownlint.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
default: true
2+
MD001: false
3+
MD004: false
4+
MD007: false
5+
MD012: false
6+
MD013: false
7+
MD022: false
8+
MD024: false
9+
MD030: false
10+
MD032: false
11+
MD033: false
12+
MD038: false
13+
MD046: false
14+
MD049: false
15+
MD053: false
16+
MD059: false

.pre-commit-config.yaml

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
33
rev: v6.0.0
44
hooks:
5-
- id: check-added-large-files
6-
- id: check-case-conflict
7-
- id: check-executables-have-shebangs
8-
- id: check-json
9-
- id: check-merge-conflict
10-
- id: check-shebang-scripts-are-executable
11-
- id: check-symlinks
12-
- id: check-vcs-permalinks
13-
- id: check-yaml
14-
- id: destroyed-symlinks
15-
- id: detect-private-key
16-
- id: fix-byte-order-marker
17-
- id: file-contents-sorter
5+
- id: check-added-large-files
6+
- id: check-case-conflict
7+
- id: check-executables-have-shebangs
8+
- id: check-json
9+
- id: check-merge-conflict
10+
- id: check-shebang-scripts-are-executable
11+
- id: check-symlinks
12+
- id: check-vcs-permalinks
13+
- id: check-yaml
14+
- id: destroyed-symlinks
15+
- id: detect-private-key
16+
- id: fix-byte-order-marker
17+
- id: file-contents-sorter
1818
args: [--unique]
1919
files: '\.epubcheck\.tsv|\.htmlvalidateignore'
20-
- id: forbid-new-submodules
21-
- id: end-of-file-fixer
22-
- id: mixed-line-ending
23-
- id: trailing-whitespace
20+
- id: forbid-new-submodules
21+
- id: end-of-file-fixer
22+
- id: mixed-line-ending
23+
- id: trailing-whitespace
24+
- repo: https://github.com/igorshubovych/markdownlint-cli
25+
rev: v0.47.0
26+
hooks:
27+
- id: markdownlint
28+
files: 'src/.*\.md'

src/plfa/part2/Properties.lagda.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,7 @@ _ : eval 3 ⊢sucμ ≡
10021002
refl
10031003
_ = refl
10041004
```
1005+
10051006
The returned reduction sequence has length `3`, the same
10061007
as the number of steps of gas provided, and the `refl` that
10071008
is the second argument to `out-of-gas` is a proof that `3 ≡ 3`.

0 commit comments

Comments
 (0)