Skip to content

Commit

Permalink
Only run coverage for source paths
Browse files Browse the repository at this point in the history
  • Loading branch information
tdg5 committed Apr 7, 2024
1 parent 25beeb0 commit 700e022
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 46 deletions.
6 changes: 3 additions & 3 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.
71 changes: 28 additions & 43 deletions .meta/coverage/report.txt
Original file line number Diff line number Diff line change
@@ -1,43 +1,28 @@
Name Stmts Miss Cover
-------------------------------------------------------------------------------------------------------------------
service_oriented/__init__.py 2 0 100%
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%
service_oriented/application/config/__init__.py 2 0 100%
service_oriented/application/config/base_config.py 27 0 100%
service_oriented/application/config/yaml_config_settings_source.py 31 1 97%
service_oriented/application/entry_point_spec.py 21 0 100%
service_oriented/application/generic_main.py 32 2 94%
service_oriented/deployment_environment.py 18 0 100%
service_oriented/logging/__init__.py 2 0 100%
service_oriented/logging/normalized_json_formatter.py 16 2 88%
service_oriented/services/__init__.py 0 0 100%
service_oriented/services/logger_service/__init__.py 3 0 100%
service_oriented/services/logger_service/logger_service.py 4 0 100%
service_oriented/services/logger_service/logger_service_with_yaml_logging_config.py 22 1 95%
service_oriented_test/__init__.py 0 0 100%
service_oriented_test/application/__init__.py 0 0 100%
service_oriented_test/application/base_application_test.py 48 0 100%
service_oriented_test/application/config/__init__.py 0 0 100%
service_oriented_test/application/config/base_config_test.py 84 0 100%
service_oriented_test/application/config/yaml_config_settings_source_test.py 41 0 100%
service_oriented_test/application/entry_point_spec_test.py 38 1 97%
service_oriented_test/application/generic_main_test.py 65 2 97%
service_oriented_test/conftest.py 0 0 100%
service_oriented_test/deployment_environment_test.py 30 0 100%
service_oriented_test/example_application/__init__.py 0 0 100%
service_oriented_test/example_application/app/__init__.py 0 0 100%
service_oriented_test/example_application/app/application.py 4 0 100%
service_oriented_test/example_application/app/config.py 3 0 100%
service_oriented_test/example_application/app/entry_points/__init__.py 0 0 100%
service_oriented_test/example_application/app/entry_points/printer.py 21 0 100%
service_oriented_test/example_application_test/app/application_test.py 3 0 100%
service_oriented_test/example_application_test/app/config_test.py 62 0 100%
service_oriented_test/example_application_test/app/entry_points/printer_test.py 37 1 97%
service_oriented_test/example_application_test/factories.py 9 0 100%
service_oriented_test/fixtures/__init__.py 14 3 79%
service_oriented_test/logging/normalized_json_formatter_test.py 38 0 100%
service_oriented_test/services/logger_service/logger_service_with_yaml_logging_config_test.py 34 0 100%
-------------------------------------------------------------------------------------------------------------------
TOTAL 756 16 98%
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%
service_oriented/application/config/__init__.py 2 0 100%
service_oriented/application/config/base_config.py 27 0 100%
service_oriented/application/config/yaml_config_settings_source.py 31 1 97%
service_oriented/application/entry_point_spec.py 21 0 100%
service_oriented/application/generic_main.py 32 2 94%
service_oriented/deployment_environment.py 18 0 100%
service_oriented/logging/__init__.py 2 0 100%
service_oriented/logging/normalized_json_formatter.py 16 2 88%
service_oriented/services/__init__.py 0 0 100%
service_oriented/services/logger_service/__init__.py 3 0 100%
service_oriented/services/logger_service/logger_service.py 4 0 100%
service_oriented/services/logger_service/logger_service_with_yaml_logging_config.py 22 1 95%
service_oriented_test/example_application/__init__.py 0 0 100%
service_oriented_test/example_application/app/__init__.py 0 0 100%
service_oriented_test/example_application/app/application.py 4 0 100%
service_oriented_test/example_application/app/config.py 3 0 100%
service_oriented_test/example_application/app/entry_points/__init__.py 0 0 100%
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%
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ include = "service_oriented(_test)?/.*\\.py$"
line-length = 88
target-version = ["py39"]

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

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

0 comments on commit 700e022

Please sign in to comment.