Skip to content

Commit

Permalink
[Docs] Replace markdownlint with mdformat for avoiding installing ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
MeowZheng committed May 20, 2022
1 parent 9c8658a commit 0945527
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
15 changes: 9 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@ repos:
args: ["--remove"]
- id: mixed-line-ending
args: ["--fix=lf"]
- repo: https://github.com/markdownlint/markdownlint
rev: v0.11.0
hooks:
- id: markdownlint
args: ["-r", "~MD002,~MD013,~MD029,~MD033,~MD034",
"-t", "allow_different_nesting"]
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.14
hooks:
- id: mdformat
args: ["--number"]
additional_dependencies:
- mdformat-gfm
- mdformat_frontmatter
- linkify-it-py
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
Expand Down
6 changes: 5 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ known_third_party = PIL,cityscapesscripts,cv2,detail,matplotlib,mmcv,numpy,onnxr
no_lines_before = STDLIB,LOCALFOLDER
default_section = THIRDPARTY

# ignore-words-list needs to be lowercase format. For example, if we want to
# ignore word "BA", then we need to append "ba" to ignore-words-list rather
# than "BA"
[codespell]
skip = *.po,*.ts,*.ipynb
count =
quiet-level = 3
ignore-words-list = formating,sur,hist,dota
ignore-words-list = formating,sur,hist,dota,ba

0 comments on commit 0945527

Please sign in to comment.