Skip to content

Commit

Permalink
chore(deps): pre-commit autoupdate (#296)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.0.277 →
v0.0.278](astral-sh/ruff-pre-commit@v0.0.277...v0.0.278)
- [github.com/psf/black: 23.3.0 →
23.7.0](psf/black@23.3.0...23.7.0)
<!--pre-commit.ci end-->

---------

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 Jul 17, 2023
1 parent 556067a commit 2faad1a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ repos:

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: 'v0.0.277'
rev: 'v0.0.278'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.7.0
hooks:
- id: black

Expand Down
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ singer-sdk = {extras = ["testing"], version = ">=0.23.0"}
[tool.black]
line-length = 88

[tool.isort]
profile = "black"
multi_line_output = 3 # Vertical Hanging Indent
src_paths = "tap_stackexchange"

[tool.pytest.ini_options]
addopts = "-vvv"

Expand Down Expand Up @@ -53,5 +48,9 @@ target-version = "py37"
[tool.ruff.flake8-annotations]
allow-star-arg-any = true

[tool.ruff.isort]
known-first-party = ["tap_stackexchange"]
required-imports = ["from __future__ import annotations"]

[tool.ruff.pydocstyle]
convention = "google"
5 changes: 2 additions & 3 deletions tap_stackexchange/tap.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""StackExchange tap class."""

from typing import List
from __future__ import annotations

from singer_sdk import Stream, Tap
from singer_sdk import typing as th
Expand Down Expand Up @@ -58,7 +57,7 @@ class TapStackExchange(Tap):
),
).to_dict()

def discover_streams(self) -> List[Stream]:
def discover_streams(self) -> list[Stream]:
"""Return a list of discovered streams.
Returns:
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""Test Configuration."""
from __future__ import annotations

pytest_plugins = ("singer_sdk.testing.pytest_plugin",)
1 change: 1 addition & 0 deletions tests/test_core.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests standard tap features using the built-in SDK tests library."""
from __future__ import annotations

from singer_sdk.testing import SuiteConfig, get_tap_test_class

Expand Down

0 comments on commit 2faad1a

Please sign in to comment.