1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
[tool.black]
# 'extend-exclude' excludes files or directories in addition to the defaults
extend-exclude = '''
# A regex preceded with ^/ will apply only to files and directories
# in the root of the project.
(
.*_pb2.py # exclude autogenerated Protocol Buffer files anywhere in the project
| .*_pb2_grpc.py # exclude autogenerated Protocol Buffer files anywhere in the project
)
'''
[tool.coverage.run]
branch = true
omit = [
"/tmp/*",
"*/tests/*",
"*/.venv/*",
]
[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:",
]
|