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