Skip to content

Commit

Permalink
chore: pre-commit autoupdate (MeltanoLabs#352)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.6 →
v0.9.4](astral-sh/ruff-pre-commit@v0.8.6...v0.9.4)
<!--pre-commit.ci end-->

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Feb 4, 2025
1 parent 131d25d commit 5140b50
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
Expand Down
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 5140b50

Please sign in to comment.