summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorCarlton Gibson <carlton.gibson@noumenal.es>2022-02-02 11:36:57 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-07 20:36:04 +0100
commitba94488196a74e312177ef2621fbd427956836ef (patch)
tree7eaf76d66ff1592780deff589d6ee825b660be23 /tox.ini
parent6f185a53a2a7acad0ad8383267942d554527688a (diff)
downloaddjango-ba94488196a74e312177ef2621fbd427956836ef.tar.gz
Refs #33476 -- Adjusted docs and config files for Black.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini10
1 files changed, 9 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index c6887b6ee4..3b9f663385 100644
--- a/tox.ini
+++ b/tox.ini
@@ -8,7 +8,8 @@ minversion = 3.18
skipsdist = true
envlist =
py3
- flake8
+ black
+ flake8 >= 3.7.0
docs
isort >= 5.1.0
@@ -31,6 +32,13 @@ changedir = tests
commands =
{envpython} runtests.py {posargs}
+[testenv:black]
+basepython = python3
+usedevelop = false
+deps = black
+changedir = {toxinidir}
+commands = black --check --diff .
+
[testenv:flake8]
basepython = python3
usedevelop = false