-
Notifications
You must be signed in to change notification settings - Fork 634
/
pyproject.toml
51 lines (45 loc) · 1018 Bytes
/
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
[tool.pytest.ini_options]
addopts = "-rs -v"
log_cli = true
[tool.pyright]
typeCheckingMode = "off"
reportMissingTypeStubs = "error"
include = [
"opentelemetry-api/src",
"opentelemetry-sdk/src",
"opentelemetry-semantic-conventions/src",
]
[tool.ruff]
# https://docs.astral.sh/ruff/configuration/
target-version = "py38"
line-length = 79
extend-exclude = [
"*_pb2*.py*",
]
output-format = "concise"
[tool.ruff.lint]
# https://docs.astral.sh/ruff/linter/#rule-selection
# pylint: https://github.com/astral-sh/ruff/issues/970
select = [
"I", # isort
"F", # pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"PLC", # pylint convention
"PLE", # pylint error
"Q", # flake8-quotes
]
ignore = [
"E501", # line-too-long
]
[tool.ruff.lint.per-file-ignores]
"docs/**/*.*" = ["PLE"]
[tool.ruff.lint.isort]
known-third-party = [
"psutil",
"pytest",
"redis",
"redis_opentracing",
"opencensus",
]
known-first-party = ["opentelemetry", "opentelemetry_example_app"]