-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.cfg
executable file
·92 lines (79 loc) · 1.75 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
[bdist_wheel]
universal=1
[metadata]
license_file = LICENSE
[tool:pytest]
addopts =
-vvl
--strict
--capture fd
--tb short
--pythonwarnings error::flaskbb.deprecation.FlaskBBDeprecation
--cov flaskbb
--cov-config setup.cfg
--cov-append
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 = 80
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/_compat.py
flaskbb/configs/*
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