setup.cfg 1.7 KB

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