setup.cfg 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. [bdist_wheel]
  2. universal=1
  3. [metadata]
  4. license_file = LICENSE
  5. [tool:pytest]
  6. addopts =
  7. -vvl
  8. --strict-markers
  9. --capture fd
  10. --tb short
  11. --pythonwarnings error::flaskbb.deprecation.FlaskBBDeprecation
  12. --cov flaskbb
  13. --cov-config setup.cfg
  14. --cov-append
  15. --numprocesses auto
  16. --dist load
  17. norecursedirs = node_modules
  18. [tool:isort]
  19. lines_after_imports=2
  20. skip_glob=20??????????_*_*.py, node_modules, .tox, docs, build, dist
  21. not_skip=__init__.py
  22. known_first_party=flaskbb
  23. use_parentheses=true
  24. [flake8]
  25. # B = bugbear
  26. # E = pycodestyle errors
  27. # F = flake8 pyflakes
  28. # W = pycodestyle warnings
  29. # B9 = bugbear opinions
  30. ignore = E203, E712, E711, W503
  31. select = C,E,F,W,B,B9
  32. max-complexity = 10
  33. max-line-length = 80
  34. exclude =
  35. # allowed to break the rules
  36. flaskbb/configs/default.py,
  37. flaskbb/_compat.py,
  38. # migrations are autogenerated
  39. migrations,
  40. # stuff to not inspect at all
  41. node_modules,
  42. .git,
  43. .tox,
  44. *.pyc,
  45. __pycache__,
  46. instance,
  47. dist,
  48. build,
  49. docs
  50. # .coveragerc to control coverage.py
  51. [coverage:run]
  52. branch = true
  53. source = flaskbb
  54. omit =
  55. flaskbb/configs/*
  56. flaskbb/migrations/*
  57. parallel = true
  58. [coverage:paths]
  59. source =
  60. flaskbb/
  61. .tox/*/lib/*/site-packages/flaskbb/
  62. [coverage:report]
  63. # Regexes for lines to exclude from consideration
  64. exclude_lines =
  65. # Have to re-enable the standard pragma
  66. pragma: no cover
  67. # Don't complain about missing debug-only code:
  68. def __repr__
  69. if self\.debug
  70. # Don't complain if tests don't hit defensive assertion code:
  71. raise AssertionError
  72. raise NotImplementedError
  73. # Don't complain if non-runnable code isn't run:
  74. if 0:
  75. if __name__ == .__main__.:
  76. @abstractmethod
  77. ignore_errors = True
  78. precision = 2
  79. show_missing = true
  80. [coverage:html]
  81. directory = tests/htmlcov