summaryrefslogtreecommitdiffstats
path: root/setup.cfg
blob: c8f1f9b87ec0e4f80af23aa44ff165cc482bcd0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
[bdist_wheel]
# This flag says that the code is written to work on both Python 2 and Python
# 3. If at all possible, it is good practice to do this. If you cannot, you
# will need to generate wheels for each Python version that you support.
universal=1

[nosetests]
tests=roles/lib_openshift/src/test/unit,
      roles/lib_utils/src/test/unit,
      roles/openshift_master_facts/test,
      test
verbosity=2
with-coverage=1
cover-html=1
cover-inclusive=1
cover-min-percentage=25
cover-erase=1
detailed-errors=1
cover-branches=1

[yamllint]
excludes=.tox,utils,files

[lint]
lint_disable=fixme,locally-disabled,file-ignored,duplicate-code

[flake8]
exclude=.tox/*,utils/*,inventory/*
max_line_length = 120
ignore = E501,T003

[tool:pytest]
norecursedirs =
    .*
    __pycache__
    cover
    docs
    # utils have its own config
    utils
python_files =
    # TODO(rhcarvalho): rename test files to follow a single pattern. "test*.py"
    # is Python unittest's default, while pytest discovers both "test_*.py" and
    # "*_test.py" by default.
    test_*.py
    *_tests.py
addopts =
    --cov=.
    --cov-report=term
    --cov-report=html