From 6015bab80e28aef2669f6fac53423aa65f70cb08 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Tue, 28 Feb 2023 13:14:51 +0100 Subject: 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 --- tox.ini | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 38fbaaab65..fa32144e68 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 -- cgit v1.3