Skip to content

Commit

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

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.5 → v0.5.6](astral-sh/ruff-pre-commit@v0.5.5...v0.5.6)
- [github.com/pycqa/flake8: 7.1.0 → 7.1.1](PyCQA/flake8@7.1.0...7.1.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Make Ruff happy

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Edgar Ramírez-Mondragón <edgarrm358@gmail.com>
  • Loading branch information
pre-commit-ci[bot] and edgarrmondragon authored Aug 5, 2024
1 parent c0cdafc commit 278fde4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
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

0 comments on commit 278fde4

Please sign in to comment.