Skip to content

Commit

Permalink
Introduce coverage settings and failure number (mckinsey#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxschulz-COL authored Sep 27, 2023
1 parent 4303ae0 commit 770df7e
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 16 deletions.
16 changes: 0 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,6 @@ exclude_dirs = ["tests"]
line-length = 120
target-version = ["py38"]

[tool.coverage.paths]
tests = ["tests"]
vizro = ["src/vizro"]

[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:"
]

[tool.coverage.run]
branch = true
parallel = true
source_pkgs = ["vizro", "tests"]

[tool.mypy]
# strict checks : strict = true
check_untyped_defs = true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<!--
A new scriv changelog fragment.
Uncomment the section that is right (remove the HTML comment wrapper).
-->

<!--
### Removed
- A bullet item for the Removed category.
-->
<!--
### Added
- A bullet item for the Added category.
-->
<!--
### Changed
- A bullet item for the Changed category.
-->
<!--
### Deprecated
- A bullet item for the Deprecated category.
-->
<!--
### Fixed
- A bullet item for the Fixed category.
-->
<!--
### Security
- A bullet item for the Security category.
-->
18 changes: 18 additions & 0 deletions vizro-core/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,21 @@ kedro = [
Documentation = "https://github.com/mckinsey/vizro#readme"
Issues = "https://github.com/mckinsey/vizro/issues"
Source = "https://github.com/mckinsey/vizro"

[tool.coverage.paths]
vizro = ["src/vizro"] # omit tests for clarity, although this can be useful to see what test lines DID NOT run

[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:"
]
fail_under = 82
show_missing = true
skip_covered = true

[tool.coverage.run]
branch = true
parallel = true
source_pkgs = ["vizro"]

0 comments on commit 770df7e

Please sign in to comment.