From 150e6ec823332e6138a825b72114f717b660891a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Aug 2024 23:02:07 +0000 Subject: [PATCH 1/3] chore: pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.5 → v0.5.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.5...v0.5.6) - [github.com/pycqa/flake8: 7.1.0 → 7.1.1](https://github.com/pycqa/flake8/compare/7.1.0...7.1.1) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: From 178eed289fcf3199c881ece5d532dd70fb754393 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Aug 2024 23:02:47 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- singer_sdk/helpers/capabilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/singer_sdk/helpers/capabilities.py b/singer_sdk/helpers/capabilities.py index f76400c5a..544472e54 100644 --- a/singer_sdk/helpers/capabilities.py +++ b/singer_sdk/helpers/capabilities.py @@ -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: From 28013e27b80bf379f8049d74a60a6d7ad57a4134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez-Mondrag=C3=B3n?= Date: Mon, 5 Aug 2024 17:16:33 -0600 Subject: [PATCH 3/3] Make Ruff happy --- singer_sdk/_singerlib/json.py | 2 +- singer_sdk/helpers/capabilities.py | 4 ++-- singer_sdk/helpers/types.py | 2 +- singer_sdk/typing.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) 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 544472e54..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: @@ -267,7 +267,7 @@ def __getattribute__(cls, name: str) -> t.Any: # noqa: ANN401 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