Add precommit hook for enforcing markdown format with mdformat

This commit is contained in:
Ethan Paul 2021-04-16 01:26:12 -04:00
parent 19828a92f0
commit 51f4f33481
No known key found for this signature in database
GPG Key ID: D0E2CBF1245E92BF
2 changed files with 16 additions and 4 deletions

View File

@ -67,3 +67,13 @@ repos:
language: system
types:
- text
- id: mdformat
name: mdformat
entry: mdformat
language: system
args:
- "--number"
- "--wrap=90"
types:
- markdown

10
tox.ini
View File

@ -22,13 +22,15 @@ platform = linux
ignore_errors = true
require_locked_deps = true
locked_deps =
pre-commit
pre-commit-hooks
black
blacken-docs
reorder-python-imports
pylint
mdformat
mdformat-gfm
mypy
reorder-python-imports
pre-commit
pre-commit-hooks
pylint
commands =
pre-commit run --all-files
pylint --rcfile {toxinidir}/.pylintrc {toxinidir}/tox_poetry_installer/