forked from DataDog/dd-trace-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
75 lines (70 loc) · 1.74 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
67
68
69
70
71
72
73
74
75
[build-system]
requires = ["setuptools >= 40.6.0,<64", "setuptools_scm[toml] >=4,<6.1", "cython", "cmake >= 3.14", "ninja"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
version_scheme = "release-branch-semver"
[tool.isort]
force_single_line = true
lines_after_imports = 2
force_sort_within_sections = true
known_first_party = "ddtrace"
default_section = "THIRDPARTY"
skip = ["ddtrace/vendor/", ".riot", ".ddriot", ".tox", ".ddtox", ".eggs", "build", "setup.py"]
skip_glob = [".venv*", "ddtrace/profiling/exporter/pprof_*pb2.py"]
line_length = 120
[tool.black]
line-length = 120
target_version = ['py27', 'py35', 'py36', 'py37', 'py38']
include = '''\.py[ix]?$'''
exclude = '''
(
.venv*
| \.riot/
| ddtrace/appsec/_ddwaf.pyx$
| ddtrace/internal/_encoding.pyx$
| ddtrace/internal/_rand.pyx$
| ddtrace/internal/_tagset.pyx$
| ddtrace/profiling/collector/_traceback.pyx$
| ddtrace/profiling/collector/_task.pyx$
| ddtrace/profiling/_threading.pyx$
| ddtrace/profiling/collector/stack.pyx$
| ddtrace/profiling/exporter/pprof_.*pb2.py$
| ddtrace/vendor/
| \.eggs
| \.git
| \.hg
| \.mypy_cache
| \.nox
| \.tox
| \.venv
| _build/
| buck-out/
| build/
| dist/
)
'''
[tool.pyright]
exclude = [
"**/__pycache__",
".git",
".ddriot",
".ddtox",
".riot",
".tox",
".venv",
]
[tool.slotscheck]
exclude-modules = '''
(
^ddtrace.(contrib|vendor)
| ^tests.(contrib|vendor)
# avoid sitecustomize modules as they start services
| ddtrace.bootstrap.sitecustomize
| ddtrace.profiling.bootstrap.sitecustomize
| ddtrace.profiling.auto
# protobuf file fails to import
| ddtrace.profiling.exporter.pprof_pre312_pb2
# TODO: resolve slot inheritance issues with profiling
| ddtrace.profiling.collector
)
'''