From f51289582eed85ff5d31e4f7a81e756fc9823b0f Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sat, 30 Oct 2021 12:05:39 +0300 Subject: [PATCH] Bring back tox -e linting It just runs pre-commit, and CI doesn't use i,t but I still find it useful for local development. --- tox.ini | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tox.ini b/tox.ini index ed569f4..9d63503 100644 --- a/tox.ini +++ b/tox.ini @@ -30,6 +30,14 @@ deps = pytest commands = pytest {posargs} +[testenv:linting] +skip_install = True +usedevelop = True +passenv = PRE_COMMIT_HOME +deps = + pre-commit +commands = pre-commit run --all-files --show-diff-on-failure + [testenv:release] changedir= decription = do a release, required posarg of the version number