Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 15, 2024
1 parent cbca753 commit 932335c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion singer_sdk/_singerlib/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down
4 changes: 2 additions & 2 deletions singer_sdk/_singerlib/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions singer_sdk/helpers/_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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",
Expand Down
10 changes: 5 additions & 5 deletions singer_sdk/testing/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -130,7 +130,7 @@ class TapTestTemplate(TestTemplate):
plugin_type = "tap"

@property
def id(self) -> str: # noqa: A003
def id(self) -> str:
"""Test ID.
Returns:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -196,7 +196,7 @@ class AttributeTestTemplate(TestTemplate):
plugin_type = "attribute"

@property
def id(self) -> str: # noqa: A003
def id(self) -> str:
"""Test ID.
Returns:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 932335c

Please sign in to comment.