Skip to content

Commit

Permalink
fixing lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Azfaar Qureshi committed Nov 20, 2020
1 parent 33a2677 commit e4d0c7d
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
import logging
from typing import Dict, Sequence

from opentelemetry.sdk.metrics.export import (
MetricsExporter,
)
from opentelemetry.sdk.metrics.export import (MetricsExporter)

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -70,9 +68,7 @@ def basic_auth(self):
@basic_auth.setter
def basic_auth(self, basic_auth: Dict):
if hasattr(self, "bearer_token") or hasattr(self, "bearer_token_file"):
raise ValueError(
"cannot contain basic_auth and bearer_token"
)
raise ValueError("cannot contain basic_auth and bearer_token")
if "username" not in basic_auth:
raise ValueError("username required in basic_auth")
if "password" not in basic_auth and "password_file" not in basic_auth:
Expand All @@ -90,9 +86,7 @@ def bearer_token(self):
@bearer_token.setter
def bearer_token(self, bearer_token: str):
if hasattr(self, "basic_auth"):
raise ValueError(
"cannot contain basic_auth and bearer_token"
)
raise ValueError("cannot contain basic_auth and bearer_token")
if hasattr(self, "bearer_token_file"):
raise ValueError(
"cannot contain bearer_token and bearer_token_file"
Expand Down

0 comments on commit e4d0c7d

Please sign in to comment.