# 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 needs to be enabled for the unit tests to be able to find pcs
# built from upstream sources
sitepackages=True
setenv =
    RUN_PYTEST_SETUP_MODULE_UTILS = true
    RUN_PYLINT_SETUP_MODULE_UTILS = true
