Skip to content

Instantly share code, notes, and snippets.

@nilreml
Last active March 20, 2024 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nilreml/987dafe8ca35e1a39da4fecf074d18b6 to your computer and use it in GitHub Desktop.
Save nilreml/987dafe8ca35e1a39da4fecf074d18b6 to your computer and use it in GitHub Desktop.
# Best practice pyproject.toml:
# https://github.com/airbytehq/airbyte/blob/master/airbyte-lib/pyproject.toml
[tool.coverage.run]
include = ["src/*"]
parallel = true
branch = true
[tool.coverage.paths]
source = ["src/"]
[tool.coverage.report]
skip_covered = true
show_missing = true
exclude_lines = [
'^\s*@overload( |$)',
'^\s*assert False(,|$)',
'if TYPE_CHECKING:',
'if typing.TYPE_CHECKING:',
]
[tool.coverage.run]
relative_files = true
[tool.coverage.report]
exclude_lines = [
"@deprecated",
"def __repr__",
"if 0:",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
"if self.debug:",
"if settings.DEBUG",
"input",
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
]
[tool.codespell]
ignore-words-list = "ot,atomate"
check-filenames = true
[tool.poetry.scripts]
generate-docs = "docs:run"
airbyte-lib-validate-source = "airbyte_lib.validate:run"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment