Skip to content

Commit 51adb33

Browse files
committed
updating tox file
1 parent 3799f18 commit 51adb33

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

tox.ini

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ envlist =
1717
# The `mpl` prefix specifies a separate target,
1818
# i.e. `mpllocal` instead of `local`.
1919
# `mplXXX` contains tests using MPL components.
20-
py{311,312}-mpl{local,examples}-mpl
20+
py{311,312}-mpl{local,examples,performance_tests}-mpl
2121
nocmk,
2222
bandit, doc8, readme, docs,
23-
{flake8,pylint}{,-tests,-examples},
23+
{flake8,pylint}{,-tests,-examples,-performance_tests},
2424
isort-check, black-check,
2525
# prone to false positives
2626
vulture
@@ -92,6 +92,7 @@ commands =
9292
examples: {[testenv:base-command]commands} examples/test/legacy/ -m examples
9393
# MPL keyring examples require a special IAM role; run these separately under a separate set of permissions
9494
mplexamples: {[testenv:base-command]commands} examples/test/ -m examples --ignore examples/test/legacy/
95+
performance_tests: {[testenv:base-command]commands} performance_tests/test/keyrings/ performance_tests/test/master_key_providers/
9596
all: {[testenv:base-command]commands} test/ examples/test/legacy/ --ignore test/mpl/
9697
mplall: {[testenv:base-command]commands} test/ examples/test/
9798
manual: {[testenv:base-command]commands}
@@ -175,6 +176,18 @@ commands =
175176
--ignore D103,E203,W503 \
176177
examples/test/
177178

179+
[testenv:flake8-performance_tests]
180+
basepython = {[testenv:flake8]basepython}
181+
deps = {[testenv:flake8]deps}
182+
commands =
183+
flake8 performance_tests/src/
184+
flake8 \
185+
# Ingore D103 missing docstring errors in tests (test names should be self-documenting)
186+
# E203 is not PEP8 compliant https://github.com/ambv/black#slices
187+
# W503 is not PEP8 compliant https://github.com/ambv/black#line-breaks--binary-operators
188+
--ignore D103,E203,W503 \
189+
performance_tests/test/
190+
178191
[testenv:pylint]
179192
basepython = python3
180193
deps =
@@ -195,6 +208,13 @@ commands =
195208
pylint --rcfile=examples/src/pylintrc examples/src/
196209
pylint --rcfile=examples/test/pylintrc --disable R0801 examples/test/
197210

211+
[testenv:pylint-performance_tests]
212+
basepython = {[testenv:pylint]basepython}
213+
deps = {[testenv:pylint]deps}
214+
commands =
215+
pylint --rcfile=performance_tests/pylintrc performance_tests/src/
216+
pylint --rcfile=performance_tests/pylintrc --disable R0801 performance_tests/test/
217+
198218
[testenv:pylint-tests]
199219
basepython = {[testenv:pylint]basepython}
200220
deps = {[testenv:pylint]deps}
@@ -215,6 +235,7 @@ commands =
215235
doc/conf.py \
216236
test/ \
217237
examples/ \
238+
performance_tests/ \
218239
{posargs}
219240

220241

@@ -245,6 +266,7 @@ commands = isort -rc \
245266
test \
246267
# We do not include examples/test because of the need to modify sys.path for some imports
247268
examples/src/ \
269+
performance_tests/ \
248270
doc \
249271
setup.py \
250272
{posargs}
@@ -319,6 +341,15 @@ commands =
319341
{[testenv:flake8-examples]commands}
320342
{[testenv:pylint-examples]commands}
321343

344+
[testenv:linters-performance-tests]
345+
basepython = python3
346+
deps =
347+
{[testenv:flake8-performance_tests]deps}
348+
{[testenv:pylint-performance_tests]deps}
349+
commands =
350+
{[testenv:flake8-performance_tests]commands}
351+
{[testenv:pylint-performance_tests]commands}
352+
322353
# Documentation
323354
[testenv:docs]
324355
basepython = python3

0 commit comments

Comments
 (0)