Skip to content

Commit

Permalink
Remove shared black/lint/lint-incr envdir in tox.ini` (#9800)
Browse files Browse the repository at this point in the history
Under tox3, it was faster to have the `black`, `lint`, and `lint-incr`
environments share an `envdir`.  However, tox4 recreates the environment
every time one switches from one to another when they share an `envdir`,
leading to much slower execution.  Here I've changed these environments
to all use the default (unique) directory rather than a shared one.

Closes #9782
  • Loading branch information
garrison committed Mar 16, 2023
1 parent b047a7c commit a85456d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ commands =
stestr run {posargs}

[testenv:lint]
envdir = .tox/lint
basepython = python3
commands =
black --check {posargs} qiskit test tools examples setup.py
Expand All @@ -36,7 +35,6 @@ commands =
reno lint

[testenv:lint-incr]
envdir = .tox/lint
basepython = python3
allowlist_externals = git
commands =
Expand All @@ -50,7 +48,6 @@ commands =
reno lint

[testenv:black]
envdir = .tox/lint
commands = black {posargs} qiskit test tools examples setup.py

[testenv:coverage]
Expand Down

0 comments on commit a85456d

Please sign in to comment.