forked from DataDog/dd-trace-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
126 lines (118 loc) · 3.27 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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
[build-system]
requires = ["setuptools >= 40.6.0", "setuptools_scm[toml] >=4,<6.1", "cython", "cmake"]
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", "ddtrace/appsec/iast/_taint_tracking/_vendor/*"]
line_length = 120
[tool.cython-lint]
max-line-length = 120
exclude = '''
(
.venv*
| \.riot
| ddtrace/profiling/
)
'''
[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/profiling/exporter/pprof.pyx$
| ddtrace/internal/datadog/profiling/ddup.pyx$
| ddtrace/vendor/
| ddtrace/appsec/iast/_taint_tracking/_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_3_pb2
| ddtrace.profiling.exporter.pprof_312_pb2
| ddtrace.profiling.exporter.pprof_319_pb2
| ddtrace.profiling.exporter.pprof_421_pb2
# TODO: resolve slot inheritance issues with profiling
| ddtrace.profiling.collector
| ddtrace,appsec,iast,_taint_tracking.vendor
| ddtrace.appsec.ddwaf.ddwaf_types
| ddtrace.appsec.iast._taint_tracking
| ddtrace.appsec.iast._ast.aspects
| ddtrace.appsec.iast._taint_utils
| ddtrace.appsec.iast.taint_sinks.sql_injection
)
'''
[tool.bandit]
targets = ["ddtrace/"]
# TODO: Remove excludes
exclude_dirs = [
"ddtrace/vendor/",
"ddtrace/appsec/iast/_taint_tracking/_vendor/",
"ddtrace/appsec/iast/_ast/visitor.py",
"ddtrace/appsec/iast/_loader.py",
"ddtrace/appsec/iast/_patch.py",
"ddtrace/appsec/iast/_taint_tracking/__init__.py",
"ddtrace/commands/ddtrace_run.py",
"ddtrace/debugging/_debugger.py",
"ddtrace/debugging/_function/discovery.py",
"ddtrace/debugging/_probe/registry.py",
"ddtrace/debugging/_probe/status.py",
"ddtrace/debugging/_signal/metric_sample.py",
"ddtrace/ext/git.py",
"ddtrace/ext/test.py",
"ddtrace/internal/module.py",
"ddtrace/internal/processor/stats.py",
"ddtrace/internal/rate_limiter.py",
"ddtrace/internal/serverless/mini_agent.py",
"ddtrace/internal/uwsgi.py",
"ddtrace/internal/wrapping.py",
"ddtrace/profiling/collector/_lock.py",
"ddtrace/sourcecode/_utils.py",
]