Skip to content

Commit

Permalink
chore: pre-commit autoupdate (#2149)
Browse files Browse the repository at this point in the history
* chore: pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.11 → v0.1.13](astral-sh/ruff-pre-commit@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>
  • Loading branch information
pre-commit-ci[bot] authored Jan 15, 2024
1 parent d67dbd1 commit 4e8509d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
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

0 comments on commit 4e8509d

Please sign in to comment.