-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.cfg
116 lines (99 loc) · 2.38 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
[tool:pytest]
cache_dir = /tmp/pytest_cache
console_output_style = progress-even-when-capture-no
junit_family = legacy
addopts =
--ff
-k "not lib"
--no-header
--junit-xml=.reports/test-report.xml
--strict-config
--tb=short
--cov=beetsplug.bandcamp
--cov-report=xml:.reports/coverage.xml
--cov-report=html:.reports/html
--cov-branch
--cov-context=test
markers =
need_connection: end-to-end tests that require internet connection
jsons: tests that compare parsed releases with json fixtures
parsing: parsing tests
lib: library tests
testpaths =
beetsplug
tests
[coverage:run]
data_file = .reports/coverage/data
branch = true
relative_files = true
omit =
./beetsplug/bandcamp/genres_lookup.py
[coverage:report]
precision = 2
skip_empty = true
show_missing = true
exclude_lines =
pragma: no cover
if TYPE_CHECKING
if typing.TYPE_CHECKING
raise AssertionError
raise NotImplementedError
[coverage:html]
show_contexts = true
[flake8]
ignore = E203 E402 W503
max-line-length = 90
per-file-ignores =
test*:S101
tee = true
max-complexity = 7
[mypy]
files = beetsplug/bandcamp
exclude = test_*|migrations
explicit_package_bases = true
strict = true
warn_unreachable = true
warn_unused_ignores = true
warn_unused_configs = true
warn_redundant_casts = true
namespace_packages = true
show_error_codes = true
show_column_numbers = true
allow_subclassing_any = true
allow_untyped_decorators = true
allow_untyped_calls = true
[mypy-beets.*]
ignore_missing_imports = true
[mypy-pycountry]
ignore_missing_imports = true
[MASTER]
persistent = no
[pylint.IMPORTS]
known-third-party =
beets,
beetsplug
[pylint.VARIABLES]
ignored-argument-names = ^(exitstatus|_|__)
[pylint.MESSAGES]
disable = missing-function-docstring,
missing-class-docstring,
too-many-public-methods,
too-few-public-methods,
too-many-arguments,
protected-access,
line-too-long,
invalid-name,
import-outside-toplevel,
redefined-outer-name,
too-many-instance-attributes,
# covered by flake8
unused-import,
too-many-locals
[pylint.REPORTS]
output-format = parseable
[tool:isort]
honor_noqa = true
include_trailing_comma = true
multi_line_output = 3
line_length = 90
namespace_packages = beetsplug