Add precommit hook for enforcing markdown format with mdformat
This commit is contained in:
parent
19828a92f0
commit
51f4f33481
|
@ -67,3 +67,13 @@ repos:
|
||||||
language: system
|
language: system
|
||||||
types:
|
types:
|
||||||
- text
|
- text
|
||||||
|
|
||||||
|
- id: mdformat
|
||||||
|
name: mdformat
|
||||||
|
entry: mdformat
|
||||||
|
language: system
|
||||||
|
args:
|
||||||
|
- "--number"
|
||||||
|
- "--wrap=90"
|
||||||
|
types:
|
||||||
|
- markdown
|
||||||
|
|
10
tox.ini
10
tox.ini
|
@ -22,13 +22,15 @@ platform = linux
|
||||||
ignore_errors = true
|
ignore_errors = true
|
||||||
require_locked_deps = true
|
require_locked_deps = true
|
||||||
locked_deps =
|
locked_deps =
|
||||||
pre-commit
|
|
||||||
pre-commit-hooks
|
|
||||||
black
|
black
|
||||||
blacken-docs
|
blacken-docs
|
||||||
reorder-python-imports
|
mdformat
|
||||||
pylint
|
mdformat-gfm
|
||||||
mypy
|
mypy
|
||||||
|
reorder-python-imports
|
||||||
|
pre-commit
|
||||||
|
pre-commit-hooks
|
||||||
|
pylint
|
||||||
commands =
|
commands =
|
||||||
pre-commit run --all-files
|
pre-commit run --all-files
|
||||||
pylint --rcfile {toxinidir}/.pylintrc {toxinidir}/tox_poetry_installer/
|
pylint --rcfile {toxinidir}/.pylintrc {toxinidir}/tox_poetry_installer/
|
||||||
|
|
Loading…
Reference in New Issue