Skip to content

Commit 9ac8c79

Browse files
committed
test(pre-commit): add asciidoctor test
Refs scop#673
1 parent 0602158 commit 9ac8c79

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.pre-commit-config.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,23 @@ repos:
116116
- scan
117117
exclude: ^CHANGELOG\.md$
118118

119+
- repo: local
120+
hooks:
121+
- id: asciidoctor
122+
name: asciidoctor
123+
language: docker_image
124+
entry: asciidoctor/docker-asciidoctor:1.15 asciidoctor
125+
args:
126+
- --out-file
127+
- /dev/null
128+
- --failure-level
129+
- WARN
130+
- --doctype
131+
- book
132+
- doc/main.txt
133+
pass_filenames: false
134+
files: ^doc/.*\.txt$
135+
119136
- repo: https://github.com/pre-commit/pre-commit-hooks
120137
rev: v4.0.1
121138
hooks:

0 commit comments

Comments
 (0)