setup.cfg 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. [metadata]
  2. name = FlaskBB
  3. version = attr: flaskbb.__version__
  4. url = https://flaskbb.org
  5. project_urls =
  6. Documentation = https://flaskbb.readthedocs.io/en/latest/
  7. Code = https://github.com/flaskbb/flaskbb
  8. Issue Tracker = https://github.com/flaskbb/flaskbb
  9. license = BSD-3-Clause
  10. license_file = LICENSE
  11. author = Peter Justin
  12. author_email = peter.justin@outlook.com
  13. description = A classic Forum Software in Python using Flask.
  14. long_description = file: README.md
  15. long_description_content_type = text/markdown
  16. platforms = any
  17. classifiers =
  18. Development Status :: 5 - Production/Stable
  19. Framework :: Flask
  20. Environment :: Web Environment
  21. Intended Audience :: Developers
  22. Intended Audience :: End Users/Desktop
  23. License :: OSI Approved :: BSD License
  24. Operating System :: OS Independent
  25. Programming Language :: Python :: 3.6
  26. Programming Language :: Python :: 3.7
  27. Programming Language :: Python :: 3.8
  28. Programming Language :: Python :: 3.9
  29. Topic :: Internet :: WWW/HTTP :: Dynamic Content
  30. Topic :: Software Development :: Libraries :: Python Modules
  31. [options]
  32. packages = find:
  33. include_package_data = True
  34. zip_safe = False
  35. python_requires = >= 3.6
  36. # Dependencies are in setup.py for GitHub's dependency graph.
  37. [options.entry_points]
  38. console_scripts =
  39. flaskbb=flaskbb.cli:flaskbb
  40. [tool:pytest]
  41. addopts =
  42. -vvl
  43. --strict-markers
  44. --capture fd
  45. --tb short
  46. --pythonwarnings error::flaskbb.deprecation.FlaskBBDeprecation
  47. --cov flaskbb
  48. --cov-config setup.cfg
  49. --cov-append
  50. --numprocesses auto
  51. --dist load
  52. norecursedirs = node_modules
  53. [tool:isort]
  54. lines_after_imports=2
  55. skip_glob=20??????????_*_*.py, node_modules, .tox, docs, build, dist
  56. not_skip=__init__.py
  57. known_first_party=flaskbb
  58. use_parentheses=true
  59. [flake8]
  60. # B = bugbear
  61. # E = pycodestyle errors
  62. # F = flake8 pyflakes
  63. # W = pycodestyle warnings
  64. # B9 = bugbear opinions
  65. ignore = E203, E712, E711, W503
  66. select = C,E,F,W,B,B9
  67. max-complexity = 10
  68. max-line-length = 88
  69. exclude =
  70. # allowed to break the rules
  71. flaskbb/configs/default.py,
  72. flaskbb/_compat.py,
  73. # migrations are autogenerated
  74. migrations,
  75. # stuff to not inspect at all
  76. node_modules,
  77. .git,
  78. .tox,
  79. *.pyc,
  80. __pycache__,
  81. instance,
  82. dist,
  83. build,
  84. docs
  85. # .coveragerc to control coverage.py
  86. [coverage:run]
  87. branch = true
  88. source = flaskbb
  89. omit =
  90. flaskbb/configs/*
  91. flaskbb/migrations/*
  92. parallel = true
  93. [coverage:paths]
  94. source =
  95. flaskbb/
  96. .tox/*/lib/*/site-packages/flaskbb/
  97. [coverage:report]
  98. # Regexes for lines to exclude from consideration
  99. exclude_lines =
  100. # Have to re-enable the standard pragma
  101. pragma: no cover
  102. # Don't complain about missing debug-only code:
  103. def __repr__
  104. if self\.debug
  105. # Don't complain if tests don't hit defensive assertion code:
  106. raise AssertionError
  107. raise NotImplementedError
  108. # Don't complain if non-runnable code isn't run:
  109. if 0:
  110. if __name__ == .__main__.:
  111. @abstractmethod
  112. ignore_errors = True
  113. precision = 2
  114. show_missing = true
  115. [coverage:html]
  116. directory = tests/htmlcov