diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 56dd664f8..729f7eee3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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] @@ -65,7 +65,7 @@ repos: )$ - repo: https://github.com/pycqa/flake8 - rev: 7.1.0 + rev: 7.1.1 hooks: - id: flake8 additional_dependencies: diff --git a/singer_sdk/_singerlib/json.py b/singer_sdk/_singerlib/json.py index acb94ad9c..184f1e945 100644 --- a/singer_sdk/_singerlib/json.py +++ b/singer_sdk/_singerlib/json.py @@ -1,4 +1,4 @@ -from __future__ import annotations +from __future__ import annotations # noqa: A005 import datetime import decimal diff --git a/singer_sdk/helpers/capabilities.py b/singer_sdk/helpers/capabilities.py index f76400c5a..3445c5bc6 100644 --- a/singer_sdk/helpers/capabilities.py +++ b/singer_sdk/helpers/capabilities.py @@ -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: @@ -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: @@ -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: diff --git a/singer_sdk/helpers/types.py b/singer_sdk/helpers/types.py index 39aaefef5..6d8c877ff 100644 --- a/singer_sdk/helpers/types.py +++ b/singer_sdk/helpers/types.py @@ -1,4 +1,4 @@ -"""Type aliases for use in the SDK.""" +"""Type aliases for use in the SDK.""" # noqa: A005 from __future__ import annotations diff --git a/singer_sdk/typing.py b/singer_sdk/typing.py index 908850686..a8ca332a4 100644 --- a/singer_sdk/typing.py +++ b/singer_sdk/typing.py @@ -48,7 +48,7 @@ other valid implementations which are not syntactically identical to those generated here. -""" +""" # noqa: A005 from __future__ import annotations