From 5140b507f8ce7e2f1a189008da9972bf25aa6074 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 22:31:07 -0600 Subject: [PATCH] chore: pre-commit autoupdate (#352) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.6...v0.9.4) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- tap_github/client.py | 2 +- tap_github/tap.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b993271a..ea43c35e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.6 + rev: v0.9.4 hooks: - id: ruff args: [ --fix ] diff --git a/tap_github/client.py b/tap_github/client.py index b4ff6a03..0c042c73 100644 --- a/tap_github/client.py +++ b/tap_github/client.py @@ -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.[*]" diff --git a/tap_github/tap.py b/tap_github/tap.py index 97f7c601..de607f01 100644 --- a/tap_github/tap.py +++ b/tap_github/tap.py @@ -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