diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c225b839..3cd59ee9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -104,7 +104,7 @@ jobs: pkgname: python-images-upload-cli pkgbuild: ./PKGBUILD commit_username: DeadNews - commit_email: uhjnnn@gmail.com + commit_email: aurczpbgr@mozmail.com ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} commit_message: Upstream release ${{ github.ref }} updpkgsums: true diff --git a/pyproject.toml b/pyproject.toml index d591349c..37808fcb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,7 +69,11 @@ testpaths = ["tests"] markers = ["docker", "key_required"] [tool.coverage.report] -exclude_lines = ["if TYPE_CHECKING:", "if __name__ == .__main__.:"] +exclude_lines = [ + "# pragma: no cover", + "if __name__ == .__main__.:", + "if TYPE_CHECKING:", +] [tool.ruff] line-length = 99 diff --git a/src/images_upload_cli/util.py b/src/images_upload_cli/util.py index 013ec7f3..5e8195d4 100755 --- a/src/images_upload_cli/util.py +++ b/src/images_upload_cli/util.py @@ -65,8 +65,8 @@ def get_font() -> ImageFont.FreeTypeFont: msg = ( f"None of the default fonts were found: {font_names}.\n" f"Please setup CAPTION_FONT in environment variables or in '{get_config_path()}'.", - ) - raise GetEnvError(msg) + ) # pragma: no cover + raise GetEnvError(msg) # pragma: no cover def make_thumbnail(img: bytes, size: tuple[int, int] = (300, 300)) -> bytes: @@ -119,4 +119,4 @@ def make_thumbnail(img: bytes, size: tuple[int, int] = (300, 300)) -> bytes: def notify_send(text_to_print: str) -> None: """Send desktop notifications via libnotify.""" if notify_send := which("notify-send"): - Popen([notify_send, "-a", "images-upload-cli", text_to_print]) + Popen([notify_send, "-a", "images-upload-cli", text_to_print]) # pragma: no cover