Skip to content

Commit aac4d77

Browse files
authoredJul 26, 2023
Add markdownlint to pre-commit (openvinotoolkit#1996)
### Changes Add [markdownlint](https://github.com/DavidAnson/markdownlint) check to pre-commit Fixed: - Incorrect links - Ordered lists - Blank lines before and after headers and code blocks - Types for code blocks - Trailing spaces - Spellcheck - Removed module-timm_custom_modules from api doc
1 parent 76727f2 commit aac4d77

File tree

51 files changed

+1109
-821
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1109
-821
lines changed
 

‎.markdownlint.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Default state for all rules
2+
default: true
3+
4+
MD013: false # Line length
5+
MD033: false # Inline HTML
6+
MD034: false # Bare URL used
7+
MD036: false # Emphasis used instead of a heading
8+
MD037: false # Spaces inside emphasis markers
9+
MD041: false # First line

‎.pre-commit-config.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@ repos:
1414
hooks:
1515
- id: isort
1616
name: isort (python)
17+
18+
- repo: https://github.com/igorshubovych/markdownlint-cli
19+
rev: v0.33.0
20+
hooks:
21+
- id: markdownlint
22+
args: [--config=.markdownlint.yaml]

0 commit comments

Comments
 (0)