aboutsummaryrefslogblamecommitdiffstats
path: root/tox.ini
blob: d7734ab64ad2b51252829d4f43bee8c260eb9bd5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10





                                  
                           


                                  






                                                        


















                                            
                                                             



                        
                                                             



                       
                                                                  

























                                                                                 
[tox]
envlist = flake8

[testenv]
deps =
    -r{toxinidir}/requirements.txt
    avocado-framework<104.0
    python_magic
setenv =
    PYTHONPATH = {toxinidir}/tests
avocado_cmd =
    avocado run -p TESTLOCAL=true --max-parallel-tasks=1
stage_tests =
    tests/cleaner_tests \
    tests/collect_tests \
    tests/report_tests \
    tests/vendor_tests

[testenv:flake8]
deps = flake8
commands = flake8 sos tests

[testenv:pylint]
deps = pylint
commands = pylint --rcfile=tox.ini sos tests

[testenv:unit_tests]
basepython = python3
setenv =
    PYTHONPATH = .
commands =
    avocado run tests/unittests/

[testenv:stageone_tests]
basepython = python3
commands =
    {[testenv]avocado_cmd} -t stageone {[testenv]stage_tests}

[testenv:stagetwo_tests]
basepython = python3
commands =
    {[testenv]avocado_cmd} -t stagetwo {[testenv]stage_tests}

[testenv:foreman_tests]
basepython = python3
commands =
    {[testenv]avocado_cmd} -t foreman tests/product_tests/foreman/

[testenv:nosetests]
basepython = python3
deps =
    {[testenv]deps}
    nose3
commands =
    nosetests -v --with-coverage --cover-package=sos tests/unittests --cover-html

[pylint]
#    C0114, # missing-module-docstring
#    C0115, # missing-class-docstring
#    C0116, # missing-function-docstring
#    R0401, # cyclic-import
#    R0801, # duplicate-code
#    R0904, # too-many-public-methods
disable = all
enable =
    C0209, # consider-using-f-string
    C0411, # wrong-import-order
    E1101, # no-member
    R0912, # too-many-branches
    R0914, # too-many-locals
    R1725, # super-with-arguments
    W1404  # implicit-str-concat
max-line-length = 79