-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.cfg
100 lines (86 loc) · 2.56 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
[metadata]
name = hyperpodcli
version = 1.0
description = SageMaker HyperPod CLI
long_description = file: README.md
long_description_content_type = text/markdown
[options]
zip_safe = True
include_package_data = True
package_dir =
= src
packages = find:
[options.packages.find]
where = src
exclude =
test
[options.package_data]
hyperpod_cli =
py.typed
[options.entry_points]
# declare your scripts
# If you want to create any Python executables in bin/, define them here.
# This is a three-step process:
#
# 1. Create the function you want to run on the CLI in src/hyperpod_cli/cli.py
# For convenience I usually recommend calling it main()
#
# 2. Uncomment this section of the setup.cfg options; this will create
# bin/HyperpodCLI (which you can obviously change!) as a script
# that will call your main() function, above.
#
# console_scripts =
# HyperpodCLI = hyperpod_cli.cli:main
#
# 3. Uncomment the Python interpreter and Python-setuptools in the
# dependencies section of your Config. This is necessary to guarantee the
# presence of a runtime interpreter and for the script generated by
# setuptools to find its function.
# Configuration for pytest; enable coverage for HyperpodCLI, emit
# XML, HTML, and terminal reports.
[tool:pytest]
xfail_strict = true
addopts =
--verbose
--ignore=build/private
--cov hyperpod_cli
--cov-config setup.cfg
--cov-report term-missing
--cov-report html:build/hyperpod-documentation/coverage
--cov-report xml:build/hyperpod-documentation/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
omit =
# omit anything in a .local directory anywhere
*/custom_launcher/*
[coverage:paths]
source =
src/
build/lib/*/site-packages/
[coverage:html]
directory = build/hyperpod-documentation/coverage
[coverage:xml]
output = build/hyperpod-documentation/coverage/coverage.xml
[flake8]
ignore =
# Not pep8, black adds whitespace before ':'
E203,
# Not pep8, black adds line break before binary operator
W503,
# Once `bb format` is done with things, the only remaining long lines do not
# matter; we can ignore them.
E501,
max_line_length = 100
# Uncomment to enforce a maximum cyclomatic complexity - more info https://en.wikipedia.org/wiki/Cyclomatic_complexity
# max_complexity=10
[build_sphinx]
warning-is-error = 1