Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: pre-commit autoupdate #2149

Merged
merged 2 commits into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
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