mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 07:33:27 -06:00
3237ade3d2
This script allows developers to check if prci definition jobs have the correct format, which is defined in prci_jobs_spec.yaml Useful when adding new jobs to the definitions. Signed-off-by: David Pascual <davherna@redhat.com> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com> Reviewed-By: Petr Vobornik <pvoborni@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Stanislav Levin <slev@altlinux.org>
66 lines
1.7 KiB
INI
66 lines
1.7 KiB
INI
[tox]
|
|
minversion=2.3.1
|
|
envlist=py36,py37,py38,pylint3,pypi
|
|
skip_missing_interpreters=true
|
|
skipsdist=true
|
|
|
|
[testenv]
|
|
# always re-create virtual env. A special install helper is used to configure,
|
|
# build and install packages.
|
|
recreate=True
|
|
install_command={toxinidir}/.tox-install.sh wheel_bundle {envpython} {envsitepackagesdir} {packages}
|
|
changedir={envdir}
|
|
setenv=
|
|
HOME={envtmpdir}
|
|
deps=
|
|
ipaclient
|
|
ipatests
|
|
commands=
|
|
{envbindir}/ipa --help
|
|
{envbindir}/ipa-run-tests --junitxml={envdir}/junit-{envname}.xml {posargs:--ipaclient-unittests}
|
|
|
|
[testenv:pylint3]
|
|
basepython=python3
|
|
deps=
|
|
ipaclient[otptoken_yubikey,ldap]
|
|
pylint
|
|
commands=
|
|
{envpython} -m pylint \
|
|
--rcfile={toxinidir}/pylintrc \
|
|
--load-plugins pylint_plugins \
|
|
{envsitepackagesdir}/ipaclient \
|
|
{envsitepackagesdir}/ipalib \
|
|
{envsitepackagesdir}/ipapython
|
|
|
|
[testenv:pypi]
|
|
recreate=True
|
|
install_command={toxinidir}/.tox-install.sh pypi_packages {envpython} {envsitepackagesdir} {packages}
|
|
changedir={envdir}
|
|
setenv=
|
|
HOME={envtmpdir}
|
|
deps=
|
|
pytest
|
|
ipaclient
|
|
# placeholder
|
|
ipaplatform
|
|
ipaserver
|
|
ipatests
|
|
commands=
|
|
{envpython} -m pytest {posargs:{toxinidir}/pypi/test_placeholder.py}
|
|
|
|
[pycodestyle]
|
|
# E402 module level import not at top of file
|
|
# E203 whitespace before ':' (not PEP-8)
|
|
# E231 missing whitespace after ',' (used by black)
|
|
# W503 line break before binary operator (not PEP-8)
|
|
# E731 do not assign a lambda expression
|
|
# E741 ambiguous variable name 'l'
|
|
ignore = E203, E402, E231, W503, E731, E741
|
|
max-line-length = 80
|
|
# exclude auto-generated remote plugins
|
|
exclude=.git,.venv,build,_build,rpmbuild,2_49,2_114,2_156,2_164
|
|
filename=*.py,*.in
|
|
|
|
[pytest]
|
|
addopts = -ra -v --ignore=prci_definitions/prci_checker.py
|