@@ -17,10 +17,10 @@ envlist =
17
17
# The `mpl` prefix specifies a separate target,
18
18
# i.e. `mpllocal` instead of `local`.
19
19
# `mplXXX` contains tests using MPL components.
20
- py{311,312}-mpl{local,examples}-mpl
20
+ py{311,312}-mpl{local,examples,performance_tests }-mpl
21
21
nocmk,
22
22
bandit, doc8, readme, docs,
23
- {flake8,pylint}{,-tests,-examples},
23
+ {flake8,pylint}{,-tests,-examples,-performance_tests },
24
24
isort-check, black-check,
25
25
# prone to false positives
26
26
vulture
@@ -92,6 +92,7 @@ commands =
92
92
examples: {[testenv:base-command]commands} examples/test/legacy/ -m examples
93
93
# MPL keyring examples require a special IAM role; run these separately under a separate set of permissions
94
94
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/
95
96
all: {[testenv:base-command]commands} test/ examples/test/legacy/ --ignore test/mpl/
96
97
mplall: {[testenv:base-command]commands} test/ examples/test/
97
98
manual: {[testenv:base-command]commands}
@@ -175,6 +176,18 @@ commands =
175
176
--ignore D103,E203,W503 \
176
177
examples/test/
177
178
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
+
178
191
[testenv:pylint]
179
192
basepython = python3
180
193
deps =
@@ -195,6 +208,13 @@ commands =
195
208
pylint --rcfile =examples/src/pylintrc examples/src/
196
209
pylint --rcfile =examples/test/pylintrc --disable R0801 examples/test/
197
210
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 performance_tests/test/
217
+
198
218
[testenv:pylint-tests]
199
219
basepython = {[testenv:pylint]basepython}
200
220
deps = {[testenv:pylint]deps}
@@ -215,6 +235,7 @@ commands =
215
235
doc/conf.py \
216
236
test/ \
217
237
examples/ \
238
+ performance_tests/ \
218
239
{posargs}
219
240
220
241
@@ -245,6 +266,8 @@ commands = isort -rc \
245
266
test \
246
267
# We do not include examples/test because of the need to modify sys.path for some imports
247
268
examples/src/ \
269
+ performance_tests/src/ \
270
+ performance_tests/test/ \
248
271
doc \
249
272
setup.py \
250
273
{posargs}
0 commit comments