summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2023-02-28 13:14:51 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-03-01 13:34:28 +0100
commit32f224e359c68e70e3f9a230be0265dcd6677079 (patch)
treef1f83e61d5f4888e3728c217b4c6c20441952914 /tox.ini
parent8d2ac000e43c1cfa3d331a1580525ead3d5f32d7 (diff)
[4.2.x] Refs #34140 -- Added configurations to run blacken-docs linter and adjusted docs.
This adds: - GitHub actions, - tox configuration, - pre-commit hook, and - makefile rules to run blacken-docs linter. Co-authored-by: David Smith <smithdc@gmail.com> Backport of 6015bab80e28aef2669f6fac53423aa65f70cb08 from main
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini11
1 files changed, 11 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index a9d4fc0a1a..48478ad51a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -9,6 +9,7 @@ skipsdist = true
envlist =
py3
black
+ blacken-docs
flake8
docs
isort
@@ -39,6 +40,16 @@ deps = black
changedir = {toxinidir}
commands = black --check --diff .
+[testenv:blacken-docs]
+basepython = python3
+usedevelop = false
+allowlist_externals =
+ make
+deps = blacken-docs
+changedir = docs
+commands =
+ make black
+
[testenv:flake8]
basepython = python3
usedevelop = false