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 #2588

Merged
merged 3 commits into from
Aug 5, 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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ repos:
- id: check-readthedocs

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.5
rev: v0.5.6
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
Expand All @@ -65,7 +65,7 @@ repos:
)$
- repo: https://github.com/pycqa/flake8
rev: 7.1.0
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion singer_sdk/_singerlib/json.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from __future__ import annotations
from __future__ import annotations # noqa: A005

import datetime
import decimal
Expand Down
6 changes: 3 additions & 3 deletions singer_sdk/helpers/capabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def emit_warning(self) -> None:
class DeprecatedEnumMeta(EnumMeta):
"""Metaclass for enumeration with deprecation support."""

def __getitem__(self, name: str) -> t.Any: # noqa: ANN401
def __getitem__(cls, name: str) -> t.Any: # noqa: ANN401
"""Retrieve mapping item.

Args:
Expand All @@ -253,7 +253,7 @@ def __getitem__(self, name: str) -> t.Any: # noqa: ANN401
obj.emit_warning()
return obj

def __getattribute__(cls, name: str) -> t.Any: # noqa: ANN401, N805
def __getattribute__(cls, name: str) -> t.Any: # noqa: ANN401
"""Retrieve enum attribute.

Args:
Expand All @@ -267,7 +267,7 @@ def __getattribute__(cls, name: str) -> t.Any: # noqa: ANN401, N805
obj.emit_warning()
return obj

def __call__(self, *args: t.Any, **kwargs: t.Any) -> t.Any: # noqa: ANN401
def __call__(cls, *args: t.Any, **kwargs: t.Any) -> t.Any: # noqa: ANN401
"""Call enum member.

Args:
Expand Down
2 changes: 1 addition & 1 deletion singer_sdk/helpers/types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Type aliases for use in the SDK."""
"""Type aliases for use in the SDK.""" # noqa: A005

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion singer_sdk/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
other valid implementations which are not syntactically identical to those generated
here.

"""
""" # noqa: A005

from __future__ import annotations

Expand Down
Loading