Reference Airship manifests, CICD, and reference architecture.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tox.ini 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. [tox]
  2. # Allows docs to be built without setup.py having to exist. Requires that
  3. # usedevelop be False as well (which it is by default).
  4. envlist = pep8
  5. minversion = 2.3.1
  6. skipsdist = True
  7. [testenv]
  8. setenv = VIRTUAL_ENV={envdir}
  9. LANGUAGE=en_US
  10. LC_ALL=en_US.utf-8
  11. passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
  12. [testenv:venv]
  13. commands = {posargs}
  14. [testenv:docs]
  15. basepython = python3
  16. whitelist_externals = rm
  17. deps =
  18. -r{toxinidir}/doc/requirements.txt
  19. commands =
  20. rm -rf doc/build
  21. sphinx-build -W -b html doc/source doc/build/html
  22. [testenv:fmt]
  23. basepython = python3
  24. deps =
  25. -r{toxinidir}/test-requirements.txt
  26. commands =
  27. yapf -ir {toxinidir}/tools
  28. [testenv:pep8]
  29. basepython = python3
  30. deps =
  31. -r{toxinidir}/test-requirements.txt
  32. commands =
  33. bandit -r {toxinidir}/tools -n 5
  34. flake8 {toxinidir}/tools
  35. yapf -dr {toxinidir}/tools
  36. [flake8]
  37. filename = *.py
  38. show-source = true
  39. # [H106] Don't put vim configuration in source files.
  40. # [H201] No 'except:' at least use 'except Exception:'
  41. # [H904] Delay string interpolations at logging calls.
  42. enable-extensions = H106,H201,H904
  43. # [W503] line break before binary operator
  44. ignore = W503
  45. exclude=.venv,.git,.tox,build,dist,*lib/python*,*egg,tools,*.ini,*.po,*.pot
  46. max-complexity = 24
  47. application-import-names = treasuremap
  48. import-order-style = pep8