Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nsklikas committed Apr 19, 2023
1 parent 2edc700 commit d98fa4b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ def _apply_network_policies(self, event: HookEvent) -> None:
[
("admin", [self.admin_ingress.relation]),
("public", [self.public_ingress.relation]),
(),
]
)
except NetworkPoliciesHandlerError:
Expand Down
5 changes: 4 additions & 1 deletion tests/integration/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/usr/bin/env python3
# Copyright 2022 Canonical Ltd.

import os

from lightkube import Client, KubeConfig
import pytest
from lightkube import Client, KubeConfig

KUBECONFIG = os.environ.get("TESTING_KUBECONFIG", "~/.kube/config")

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
import pytest
import requests
import yaml
from pytest_operator.plugin import OpsTest
from lightkube import Client
from lightkube.resources.networking_v1 import NetworkPolicy
from pytest_operator.plugin import OpsTest

logger = logging.getLogger(__name__)

Expand Down

0 comments on commit d98fa4b

Please sign in to comment.