-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
80 lines (65 loc) · 1.64 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
[metadata]
name = monitoringcustommetrics
version = 1.0
description = MonitoringCustomMetrics
description_file = README.md
[options]
zip_safe = True
include_package_data = True
package_dir =
= src
packages = find:
# Enable build-time format checking on the developer desktop. Set this to
# "strict" (no quotes) to enforce it on the build fleet (note that this carries risks,
# because formatter updates might cause your package to break. We recommend
# True for any code that's shared. Your own application code can be "strict" (no quotes)
check_format = True
# Enable type checking
test_mypy = True
# Enable linting at build time
test_flake8 = True
[options.packages.find]
where = src
exclude =
test
[aliases]
test = pytest
[options.entry_points]
[tool:pytest]
xfail_strict = true
addopts =
--verbose
--ignore=build/private
--cov src.monitoring_custom_metrics
--cov-config setup.cfg
--cov-report term-missing
--cov-report html:build/coverage
--cov-report xml:build/coverage/coverage.xml
# show the slowest 5 tests at the end
--durations=5
# Default to colorful output
--color=yes
# Uncomment to enforce a minimum code coverage threshold.
# --cov-fail-under 50
testpaths = test
looponfailroots = src test
[coverage:run]
branch = true
parallel = true
[coverage:paths]
source =
src/
build/lib/*/site-packages/
[coverage:html]
directory = build/coverage
[coverage:xml]
output = build/coverage/coverage.xml
[flake8]
ignore =
# Not pep8, black adds whitespace before ':'
E203,
# Not pep8, black adds line break before binary operator
W503,
E501,
F401,
max_line_length = 100