From 4e8509da64e5b49b4715140057458f83761f9e3e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 Jan 2024 14:35:50 -0600 Subject: [PATCH] chore: pre-commit autoupdate (#2149) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.11 → v0.1.13](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.11...v0.1.13) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- singer_sdk/_singerlib/messages.py | 2 +- singer_sdk/_singerlib/schema.py | 4 ++-- singer_sdk/helpers/_batch.py | 4 ++-- singer_sdk/testing/templates.py | 10 +++++----- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a9707001c..cf0c9db99 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -45,7 +45,7 @@ repos: - id: check-readthedocs - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.11 + rev: v0.1.13 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix, --show-fixes] diff --git a/singer_sdk/_singerlib/messages.py b/singer_sdk/_singerlib/messages.py index cbea58527..6a9fc24ef 100644 --- a/singer_sdk/_singerlib/messages.py +++ b/singer_sdk/_singerlib/messages.py @@ -54,7 +54,7 @@ def exclude_null_dict(pairs: list[tuple[str, t.Any]]) -> dict[str, t.Any]: class Message: """Singer base message.""" - type: SingerMessageType = field(init=False) # noqa: A003 + type: SingerMessageType = field(init=False) """The message type.""" def to_dict(self) -> dict[str, t.Any]: diff --git a/singer_sdk/_singerlib/schema.py b/singer_sdk/_singerlib/schema.py index 41dd8104b..1be527a97 100644 --- a/singer_sdk/_singerlib/schema.py +++ b/singer_sdk/_singerlib/schema.py @@ -47,7 +47,7 @@ class Schema: This is because we wanted to expand it with extra STANDARD_KEYS. """ - type: str | list[str] | None = None # noqa: A003 + type: str | list[str] | None = None default: t.Any | None = None properties: dict | None = None items: t.Any | None = None @@ -60,7 +60,7 @@ class Schema: maxLength: int | None = None # noqa: N815 minLength: int | None = None # noqa: N815 anyOf: t.Any | None = None # noqa: N815 - format: str | None = None # noqa: A003 + format: str | None = None additionalProperties: t.Any | None = None # noqa: N815 patternProperties: t.Any | None = None # noqa: N815 required: list[str] | None = None diff --git a/singer_sdk/helpers/_batch.py b/singer_sdk/helpers/_batch.py index 490e2ef8b..b57002e1d 100644 --- a/singer_sdk/helpers/_batch.py +++ b/singer_sdk/helpers/_batch.py @@ -37,7 +37,7 @@ class BaseBatchFileEncoding: __encoding_format__: t.ClassVar[str] = "OVERRIDE_ME" # Base encoding fields - format: str = field(init=False) # noqa: A003 + format: str = field(init=False) """The format of the batch file.""" compression: str | None = None @@ -188,7 +188,7 @@ def fs(self, **kwargs: t.Any) -> t.Generator[FS, None, None]: filesystem.close() @contextmanager - def open( # noqa: A003 + def open( self, filename: str, mode: str = "rb", diff --git a/singer_sdk/testing/templates.py b/singer_sdk/testing/templates.py index 4a16feb05..0f82b41c0 100644 --- a/singer_sdk/testing/templates.py +++ b/singer_sdk/testing/templates.py @@ -38,7 +38,7 @@ class TestTemplate: plugin_type: str | None = None @property - def id(self) -> str: # noqa: A003 + def id(self) -> str: """Test ID. Raises: @@ -130,7 +130,7 @@ class TapTestTemplate(TestTemplate): plugin_type = "tap" @property - def id(self) -> str: # noqa: A003 + def id(self) -> str: """Test ID. Returns: @@ -162,7 +162,7 @@ class StreamTestTemplate(TestTemplate): required_kwargs: t.ClassVar[list[str]] = ["stream"] @property - def id(self) -> str: # noqa: A003 + def id(self) -> str: """Test ID. Returns: @@ -196,7 +196,7 @@ class AttributeTestTemplate(TestTemplate): plugin_type = "attribute" @property - def id(self) -> str: # noqa: A003 + def id(self) -> str: """Test ID. Returns: @@ -292,7 +292,7 @@ def run( # type: ignore[override] super().run(config, resource, runner) @property - def id(self) -> str: # noqa: A003 + def id(self) -> str: """Test ID. Returns: