-
Notifications
You must be signed in to change notification settings - Fork 10
/
pyproject.toml
66 lines (61 loc) · 2.03 KB
/
pyproject.toml
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
[tool.black]
line-length = 120
exclude = "(venv/|utils/grpc/weblog_pb2_grpc.py|utils/grpc/weblog_pb2.py|parametric/apps|parametric/protos/)"
[tool.pytest.ini_options]
addopts = "--json-report --json-report-indent=2 --color=yes --no-header --junitxml=reportJunit.xml -r Xf"
testpaths = [
"tests",
]
# log_cli = True
# log_cli_level = DEBUG
log_level = "DEBUG"
log_format = "%(asctime)s.%(msecs)03d %(levelname)-8s %(message)s"
log_date_format = "%H:%M:%S"
log_file_format = "%(asctime)s.%(msecs)03d %(levelname)-8s %(message)s"
log_file_date_format = "%H:%M:%S"
junit_family = "xunit2"
junit_logging = "no"
junit_duration_report = "call"
junit_suite_name = "system_tests_suite"
markers =[
"scenario: run a test only for a specified scenario"
]
python_files = "test_*.py _test_*.py"
[tool.pylint]
init-hook='import sys; sys.path.append(".")'
max-line-length = 120
disable = [
"missing-module-docstring",
"missing-class-docstring",
"missing-function-docstring",
"fixme",
"raise-missing-from",
"invalid-name",
"import-outside-toplevel",
"logging-fstring-interpolation",
"broad-except",
"too-few-public-methods",
"too-many-arguments",
"too-many-branches,",
"bare-except",
"too-many-instance-attributes",
"too-many-locals",
"too-many-public-methods",
"too-many-nested-blocks",
"too-many-return-statements",
"duplicate-code",
"abstract-method",
"inconsistent-return-statements", # because lot of validator function returns nothing
"unused-argument", # pain, as there are some function that MUST have a prototype. TODO...
"attribute-defined-outside-init",
]
ignore-paths = [
"utils/parametric/protos/.*" # generated by grpc
]
generated-members = [
"pb\\.(DistributedHTTPHeaders|FlushSpansArgs|FlushTraceStatsArgs|HeaderTuple|InjectHeadersArgs)",
"pb\\.(StartSpanArgs|StopTracerArgs|SpanSetMetaArgs|SpanSetMetricArgs|SpanSetErrorArgs|FinishSpanArgs)",
"pb\\.(Otel.*|ListVal|AttrVal|Attributes)",
"(ok_summary|err_summary)\\.mapping",
"Span\\.__annotations__"
]