diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index add6285..33cb6ab 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -2,6 +2,7 @@ name: Check workflow running linter, unit and functional tests on: workflow_call: + workflow_dispatch: pull_request: types: [opened, synchronize, reopened] branches: [master, main] diff --git a/src/lib/lib_duplicity.py b/src/lib/lib_duplicity.py index ea18ae9..b6da353 100644 --- a/src/lib/lib_duplicity.py +++ b/src/lib/lib_duplicity.py @@ -1,4 +1,5 @@ """Duplicity juju actions.""" + import os import subprocess from urllib.parse import urlparse diff --git a/src/reactive/duplicity.py b/src/reactive/duplicity.py index 06b8702..a5dcc99 100644 --- a/src/reactive/duplicity.py +++ b/src/reactive/duplicity.py @@ -8,6 +8,7 @@ * https://jujucharms.com/docs/devel/developer-getting-started * https://github.com/juju-solutions/layer-basic#overview """ + import base64 import binascii import os diff --git a/src/tests/functional/tests/configure.py b/src/tests/functional/tests/configure.py index f17e7a4..1bbb104 100644 --- a/src/tests/functional/tests/configure.py +++ b/src/tests/functional/tests/configure.py @@ -1,4 +1,5 @@ """Set up functional tests.""" + import logging import subprocess diff --git a/src/tests/functional/tests/test_duplicity.py b/src/tests/functional/tests/test_duplicity.py index 77bf75a..3251a5c 100644 --- a/src/tests/functional/tests/test_duplicity.py +++ b/src/tests/functional/tests/test_duplicity.py @@ -1,4 +1,5 @@ """Zaza fun tests.""" + import asyncio import base64 import concurrent.futures diff --git a/src/tests/functional/tests/utils.py b/src/tests/functional/tests/utils.py index 23a7fc7..da2f621 100644 --- a/src/tests/functional/tests/utils.py +++ b/src/tests/functional/tests/utils.py @@ -1,4 +1,5 @@ """Zaza func tests utils.""" + from collections import namedtuple from functools import wraps from time import sleep diff --git a/src/tests/unit/test_actions.py b/src/tests/unit/test_actions.py index b78db72..96b2a51 100644 --- a/src/tests/unit/test_actions.py +++ b/src/tests/unit/test_actions.py @@ -1,4 +1,5 @@ """Unit tests for charm actions.""" + from subprocess import CalledProcessError from unittest.mock import patch diff --git a/src/tests/unit/test_reactive_duplicity.py b/src/tests/unit/test_reactive_duplicity.py index c48e46f..252af62 100644 --- a/src/tests/unit/test_reactive_duplicity.py +++ b/src/tests/unit/test_reactive_duplicity.py @@ -1,4 +1,5 @@ """Unit tests for reactive hooks.""" + from unittest.mock import ANY, MagicMock, call, mock_open, patch from croniter import CroniterBadCronError, CroniterBadDateError, CroniterNotAlphaError