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: