From a279629d451fc501dfac96e24782efd3f3eec80a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Jul 2023 12:43:40 -0600 Subject: [PATCH] chore(deps): pre-commit autoupdate (#16) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/tox-dev/pyproject-fmt: 0.12.0 → 0.13.0](https://github.com/tox-dev/pyproject-fmt/compare/0.12.0...0.13.0) - [github.com/astral-sh/ruff-pre-commit: v0.0.272 → v0.0.277](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.272...v0.0.277) - [github.com/pre-commit/mirrors-mypy: v1.3.0 → v1.4.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.3.0...v1.4.1) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Edgar Ramírez Mondragón --- .pre-commit-config.yaml | 6 +++--- tap_circle_ci/streams.py | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 258db94..a474319 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,12 +16,12 @@ repos: - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: "0.12.0" + rev: "0.13.0" hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.0.272' + rev: 'v0.0.277' hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix, --show-fixes] @@ -32,7 +32,7 @@ repos: - id: black - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.3.0 + rev: v1.4.1 hooks: - id: mypy pass_filenames: true diff --git a/tap_circle_ci/streams.py b/tap_circle_ci/streams.py index 962e9c4..b0434ef 100644 --- a/tap_circle_ci/streams.py +++ b/tap_circle_ci/streams.py @@ -2,8 +2,8 @@ from __future__ import annotations +import typing as t from pathlib import Path -from typing import Any from tap_circle_ci.client import CircleCIStream @@ -15,7 +15,7 @@ class PipelinesStream(CircleCIStream): name = "pipelines" path = "/pipeline" - primary_keys = ["id"] + primary_keys: t.ClassVar[list[str]] = ["id"] replication_key = "updated_at" replication_method = "INCREMENTAL" schema_filepath = SCHEMAS_DIR / "pipelines.json" @@ -31,8 +31,8 @@ def get_child_context( def get_url_params( self, context: dict | None, - next_page_token: Any | None, - ) -> dict[str, Any]: + next_page_token: t.Any | None, + ) -> dict[str, t.Any]: """Return a dictionary of values to be used in URL parameterization.""" params = super().get_url_params(context, next_page_token) params["org-slug"] = self.config.get("org_slug") @@ -45,7 +45,7 @@ class WorkflowsStream(CircleCIStream): parent_stream_type = PipelinesStream name = "workflows" path = "/pipeline/{pipeline_id}/workflow" - primary_keys = ["id"] + primary_keys: t.ClassVar[list[str]] = ["id"] schema_filepath = SCHEMAS_DIR / "workflows.json" def get_child_context( @@ -63,7 +63,7 @@ class JobsStream(CircleCIStream): parent_stream_type = WorkflowsStream name = "jobs" path = "/workflow/{workflow_id}/job" - primary_keys = ["id"] + primary_keys: t.ClassVar[list[str]] = ["id"] schema_filepath = SCHEMAS_DIR / "jobs.json" def post_process(self, row: dict, context: dict | None = None) -> dict | None: