forked from linux-system-roles/ha_cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
21 lines (18 loc) · 739 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# SPDX-License-Identifier: MIT
[lsr_config]
lsr_enable = true
[lsr_ansible-lint]
configfile = {toxinidir}/.ansible-lint
[lsr_black]
configfile = {toxinidir}/pyproject.toml
# NOTE: In order to run python unit tests locally, you will need
# to comment sitepackages=True then build and install the correct
# version of pcs in the testenv. See .github/workflows/python-unit-test.yml
# You will also need to comment out sitepackages=True in order to run
# most tox-lsr tests locally or you will get errors like this:
# ansible-lint-collection: failed with ansible-lint is not allowed, use allowlist_externals to allow it
[testenv]
sitepackages=True
setenv =
RUN_PYTEST_SETUP_MODULE_UTILS = true
RUN_PYLINT_SETUP_MODULE_UTILS = true