Skip to content

Commit

Permalink
chore: Adjust .coveragerc settings
Browse files Browse the repository at this point in the history
  • Loading branch information
nakashima-hikaru committed Nov 20, 2023
1 parent 3f673f2 commit f79c9a3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
[run]
omit = */__init__.py
omit = */__init__.py

[report]
exclude_also =
def __repr__
if self.debug:
if settings.DEBUG
raise AssertionError
raise NotImplementedError
if 0:
if __name__ == .__main__.:
if TYPE_CHECKING:
class .*\bProtocol\):
@(abc\.)?abstractmethod
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_td_add_memory() -> None:
def test_update_with_empty_memory() -> None:
agent = TdAgent(gamma=0.9, alpha=0.1, seed=0)
with pytest.raises(
NotInitializedError, match=str(NotInitializedError(instance_name=str(agent), attribute_name="__memory"))
NotInitializedError, match=str(NotInitializedError(instance_name=str(agent), attribute_name="__memory"))
):
agent.update()

Expand Down

1 comment on commit f79c9a3

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCover
TOTAL6900100%

Tests Skipped Failures Errors Time
30 0 💤 0 ❌ 0 🔥 0.734s ⏱️

Please sign in to comment.