Skip to content

Commit

Permalink
Ignore parts from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja committed Aug 4, 2023
1 parent 610805b commit 0704a16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mkdocs_include_markdown_plugin/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def on_config(self, config: MkDocsConfig, **kwargs: Any) -> MkDocsConfig:

return config

def _watch_included_files(self) -> None:
def _watch_included_files(self) -> None: # pragma: no cover
global FILES_WATCHER, SERVER
SERVER = cast(LiveReloadServer, SERVER)
FILES_WATCHER = cast(FilesWatcher, FILES_WATCHER)
Expand All @@ -83,7 +83,7 @@ def on_page_content(
config: MkDocsConfig,
files: Files,
) -> str:
if SERVER is not None:
if SERVER is not None: # pragma: no cover
self._watch_included_files()
return html

Expand All @@ -94,7 +94,7 @@ def on_serve(
builder: Callable[[Any], Any],
) -> None:
global SERVER
if SERVER is None:
if SERVER is None: # pragma: no cover
SERVER = server
self._watch_included_files()

Expand Down

0 comments on commit 0704a16

Please sign in to comment.