Closed kloczek closed 3 years ago
Hi @kloczek, I am closing this in favor of your other post https://github.com/arrow-py/arrow/issues/864.
The solution to this is to only run the test suites: tox -e py27,py35,py36,py37,py38,py39 --skip-missing-interpreters
. I am thinking of a way to elegantly add linting to tox since we rely on pre-commit for it.
As I'm working on multiple packages I forgot to add to my spec refference to the prev ticket :/ My fault. Sorry.
No problem! This issue has been on my mind, and I am still trying to figure out the best solution. I wish there was a way to skip test environments easily in Tox. Do you know of a way to do this @kloczek ?
With suggested in your prev comment command tox -e py27,py35,py36,py37,py38,py39 --skip-missing-interpreters
you gave me hint of what I need to modify to not have lint
executet on running my standard tox command which I'm trying to use across all my python packages which are using tox in test suite framework which is tox --skip-missing-interpreters
.
I've just added to my package patch:
--- a/tox.ini~
+++ b/tox.ini
@@ -1,6 +1,6 @@
[tox]
minversion = 3.18.0
-envlist = py{py3,27,35,36,37,38,39},lint,docs
+envlist = py{py3,27,35,36,37,38,39},docs
skip_missing_interpreters = true
[gh-actions]
This patch only removes lint
from default set of targets however lint
looks like still should be available (please correct me if I'm wrong).
I think that you could apply that patch and use explicite tox lint
in your CI.
Ah yeah, I guess that makes sense. I am going to remove lint and docs targets from the default tox
command since they are primarily used in CI. I will submit a PR to get this fixed. Thanks for bringing it up!
I've skipped all bug rapot details because all is in tox output. Looks like tox test suite cannot be used with dist tar ball and want to be executed in git tree. How to remove that pre-commit test on which everything is failing? 100% tests are OK axcept that pre-commit.