Skip to content

Commit

Permalink
Exclude __version__.py from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tdg5 committed Apr 7, 2024
1 parent 6d64c7e commit cf1ba87
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .meta/coverage/badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions .meta/coverage/report.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
Name Stmts Miss Cover
---------------------------------------------------------------------------------------------------------
service_oriented/__init__.py 2 0 100%
service_oriented/__version__.py 11 11 0%
service_oriented/application/__init__.py 4 0 100%
service_oriented/application/abstract_composition_root.py 19 3 84%
service_oriented/application/base_application.py 22 0 100%
Expand All @@ -25,4 +24,4 @@ service_oriented_test/example_application/app/entry_points/__init__.py
service_oriented_test/example_application/app/entry_points/printer.py 21 0 100%
service_oriented_test/example_application/main.py 6 6 0%
---------------------------------------------------------------------------------------------------------
TOTAL 270 26 90%
TOTAL 259 15 94%
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,16 @@ line-length = 88
target-version = ["py39"]

[tool.coverage.run]
omit = [
"service_oriented/__version__.py",
]
source = [
"service_oriented",
"service_oriented_test/example_application",
]

[tool.coverage.report]
fail_under = 90
fail_under = 94

[tool.flake8]
ignore = ["E203", "E251", "E701", "N805", "W503", "DAR101", "DAR201", "DAR301", "DAR401"]
Expand Down

0 comments on commit cf1ba87

Please sign in to comment.