[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,ba [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 asyncio_mode = auto