Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 3, 2025
1 parent 4636bcc commit 1c3017c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tap_github/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ class GitHubGraphqlStream(GraphQLStream, GitHubRestStream):

@property
def url_base(self) -> str:
return f'{self.config.get("api_url_base", self.DEFAULT_API_BASE_URL)}/graphql'
return f"{self.config.get('api_url_base', self.DEFAULT_API_BASE_URL)}/graphql"

# the jsonpath under which to fetch the list of records from the graphql response
query_jsonpath: str = "$.data.[*]"
Expand Down
6 changes: 3 additions & 3 deletions tap_github/tap.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ def logger(cls: type[TapGitHub]) -> logging.Logger: # noqa: N805
"""

LOGLEVEL = os.environ.get("LOGLEVEL", "INFO").upper() # noqa: N806
assert (
LOGLEVEL in logging._levelToName.values()
), f"Invalid LOGLEVEL configuration: {LOGLEVEL}"
assert LOGLEVEL in logging._levelToName.values(), (
f"Invalid LOGLEVEL configuration: {LOGLEVEL}"
)
logger = logging.getLogger(cls.name)
logger.setLevel(LOGLEVEL)
return logger
Expand Down

0 comments on commit 1c3017c

Please sign in to comment.