forked from DataDog/dd-trace-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
48 lines (44 loc) · 1.58 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
[bdist_wheel]
universal=1
[codespell]
skip = *.json,*.cpp,*.c,.riot,.tox,.mypy_cache,.git,*ddtrace/vendor
ignore-words-list = asend,dne,fo,medias,ment,nin,ot,setttings,statics
[flake8]
max-line-length=120
exclude=
.ddtox,.tox,.riot,.ddriot,.venv*
.git,__pycache__,
.eggs,*.egg,
build,
# We shouldn't lint our vendored dependencies
ddtrace/vendor/*
ddtrace/profiling/exporter/pprof_pb2.py
ddtrace/profiling/exporter/pprof_pre319_pb2.py
ddtrace/profiling/exporter/pprof_pre312_pb2.py
tests/profiling/simple_program_gevent.py
tests/contrib/grpc/hello_pb2.py
# 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,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
filterwarnings =
# Show any DeprecationWarnings once
once::DeprecationWarning
asyncio_mode = auto