forked from DataDog/dd-trace-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
51 lines (47 loc) · 1.88 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
[bdist_wheel]
universal=1
[codespell]
skip = *.json,*.h,*.cpp,*.c,.riot,.tox,.mypy_cache,.git,ddtrace/vendor/*,tests/contrib/openai/cassettes/*,tests/contrib/langchain/cassettes/*,ddtrace/appsec/_iast/_taint_tracking/_vendor/*
exclude-file = .codespellignorelines
ignore-words-list = asend,dne,fo,medias,ment,nin,ot,setttings,statics,ba,spawnve,doas
[flake8]
max-line-length=120
exclude=
.ddtox,.tox,.riot,.ddriot,.venv*
.git,__pycache__,
.eggs,*.egg,
build,
ddtrace/__init__.py,
# We shouldn't lint our vendored dependencies
ddtrace/vendor/*
ddtrace/appsec/_iast/_taint_tracking/cmake-build-debug/*
ddtrace/appsec/_iast/_taint_tracking/_vendor/*
ddtrace/profiling/exporter/pprof_3_pb2.py
ddtrace/profiling/exporter/pprof_312_pb2.py
ddtrace/profiling/exporter/pprof_319_pb2.py
ddtrace/profiling/exporter/pprof_421_pb2.py
tests/profiling/simple_program_gevent.py
tests/contrib/grpc/hello_pb2.py
tests/contrib/django_celery/app/*
# Ignore:
# A003: XXX is a python builtin, consider renaming the class attribute
# G201 Logging: .exception(...) should be used instead of .error(..., exc_info=True)
# E231,W503,E203: not respected by black
# We ignore most of the D errors because there are too many; the goal is to fix them eventually
ignore = W503,E231,A003,G201,D100,D101,D102,D103,D104,D105,D106,D107,D200,D202,D204,D205,D208,D210,D300,D400,D401,D403,D413,G200,RST301,B902,E203
enable-extensions=G
rst-roles = class,meth,obj,ref,func
rst-directives = py:data
# DEV: We use `conftest.py` as a local pytest plugin to configure hooks for collection
[tool:pytest]
# --cov-report is intentionally empty else pytest-cov will default to generating a report
addopts =
--cov=ddtrace/
--cov=tests/
--cov-append
--cov-report=
--durations=10
--junitxml=test-results/junit.xml
# DEV: The default is `test_*\.py` which will miss `test.py` files
python_files = test*\.py
asyncio_mode = auto