setup.cfg 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. [bdist_wheel]
  2. # This flag says that the code is written to work on both Python 2 and Python
  3. # 3. If at all possible, it is good practice to do this. If you cannot, you
  4. # will need to generate wheels for each Python version that you support.
  5. universal=1
  6. [nosetests]
  7. tests=roles/lib_openshift/src/test/unit,
  8. roles/lib_utils/src/test/unit,
  9. roles/openshift_master_facts/test,
  10. test
  11. verbosity=2
  12. with-coverage=1
  13. cover-html=1
  14. cover-inclusive=1
  15. cover-min-percentage=25
  16. cover-erase=1
  17. detailed-errors=1
  18. cover-branches=1
  19. [yamllint]
  20. excludes=.tox,utils,files
  21. [lint]
  22. lint_disable=fixme,locally-disabled,file-ignored,duplicate-code
  23. [flake8]
  24. exclude=.tox/*,utils/*,inventory/*
  25. max_line_length = 120
  26. ignore = E501,T003
  27. [tool:pytest]
  28. norecursedirs =
  29. .*
  30. __pycache__
  31. cover
  32. docs
  33. # utils have its own config
  34. utils
  35. python_files =
  36. # TODO(rhcarvalho): rename test files to follow a single pattern. "test*.py"
  37. # is Python unittest's default, while pytest discovers both "test_*.py" and
  38. # "*_test.py" by default.
  39. test_*.py
  40. *_tests.py
  41. addopts =
  42. --cov=.
  43. --cov-report=term
  44. --cov-report=html