Skip to content

Commit

Permalink
chore(deps): pre-commit autoupdate (#16)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/tox-dev/pyproject-fmt: 0.12.0 →
0.13.0](tox-dev/pyproject-fmt@0.12.0...0.13.0)
- [github.com/astral-sh/ruff-pre-commit: v0.0.272 →
v0.0.277](astral-sh/ruff-pre-commit@v0.0.272...v0.0.277)
- [github.com/pre-commit/mirrors-mypy: v1.3.0 →
v1.4.1](pre-commit/mirrors-mypy@v1.3.0...v1.4.1)
<!--pre-commit.ci end-->

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Edgar Ramírez Mondragón <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and edgarrmondragon authored Jul 10, 2023
1 parent d78b9ca commit a279629
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand Down
12 changes: 6 additions & 6 deletions tap_circle_ci/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"
Expand All @@ -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")
Expand All @@ -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(
Expand All @@ -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:
Expand Down

0 comments on commit a279629

Please sign in to comment.