File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,14 +102,23 @@ tox -e docs-clean
102102# Build docs (incremental)
103103tox -e docs-update
104104
105- # Build with a specific builder (e.g., linkcheck)
106- BUILDER=linkcheck tox -e docs-update
105+ # Build with a specific builder (e.g., linkcheck to validate external links )
106+ tox -e docs-update -- linkcheck
107107```
108108
109109### Code Quality
110110
111111``` bash
112- # Run pre-commit hooks on all files
112+ # Run all pre-commit hooks (ruff, mypy, trailing whitespace, etc.)
113+ tox -e pre-commit
114+
115+ # Run pre-commit with specific hook
116+ tox -e pre-commit -- --all-files ruff
117+
118+ # Run mypy type checking
119+ tox -e mypy
120+
121+ # Run pre-commit hooks directly (if pre-commit is installed)
113122pre-commit run --all-files
114123```
115124
Original file line number Diff line number Diff line change @@ -19,3 +19,11 @@ allowlist_externals = rm
1919commands =
2020 clean: rm -rf docs/_build
2121 sphinx-build -nW --keep-going -b {posargs:html} docs/ docs/_build/{posargs:html}
22+
23+ [testenv:pre-commit]
24+ deps = pre-commit
25+ commands = pre-commit run {posargs:--all-files}
26+
27+ [testenv:mypy]
28+ deps = mypy
29+ commands = mypy mdit_py_plugins {posargs}
You can’t perform that action at this time.
0 commit comments