From 73a28b76452e76281942f12c8616934975116ed4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Jul 2024 15:54:04 -0600 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#108) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0) - [github.com/tox-dev/pyproject-fmt: 1.5.3 → 2.1.4](https://github.com/tox-dev/pyproject-fmt/compare/1.5.3...2.1.4) - https://github.com/charliermarsh/ruff-pre-commit → https://github.com/astral-sh/ruff-pre-commit - [github.com/astral-sh/ruff-pre-commit: v0.1.9 → v0.5.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.9...v0.5.1) - [github.com/pre-commit/mirrors-mypy: v1.7.1 → v1.10.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.7.1...v1.10.1) - [github.com/pre-commit/pre-commit: v3.6.0 → v3.7.1](https://github.com/pre-commit/pre-commit/compare/v3.6.0...v3.7.1) - [github.com/python-jsonschema/check-jsonschema: 0.27.3 → 0.29.0](https://github.com/python-jsonschema/check-jsonschema/compare/0.27.3...0.29.0) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 14 +++++++------- pyproject.toml | 43 ++++++++++++++++++++--------------------- 2 files changed, 28 insertions(+), 29 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 265539b..4ef3fb2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: check-json exclude: "\\.vscode/.*.json" @@ -13,18 +13,18 @@ repos: - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: "1.5.3" + rev: "2.1.4" hooks: - id: pyproject-fmt -- repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.1.9 +- repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.5.1 hooks: - id: ruff - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.7.1 + rev: v1.10.1 hooks: - id: mypy pass_filenames: true @@ -32,12 +32,12 @@ repos: - types-requests - repo: https://github.com/pre-commit/pre-commit - rev: v3.6.0 + rev: v3.7.1 hooks: - id: validate_manifest - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.3 + rev: 0.29.0 hooks: - id: check-dependabot - id: check-github-workflows diff --git a/pyproject.toml b/pyproject.toml index 5853590..b6cd3bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,8 +8,8 @@ requires = [ name = "tap-pomelo" version = "0.0.1" description = "`tap-pomelo` is a Singer tap for Pomelo, built with the Meltano SDK for Singer Taps." -authors = ["Edgar-Ramírez "] -maintainers = ["Edgar-Ramírez "] +authors = [ "Edgar-Ramírez " ] +maintainers = [ "Edgar-Ramírez " ] keywords = [ "ELT", "singer.io", @@ -21,36 +21,35 @@ homepage = "https://github.com/edgarrmondragon/tap-pomelo" repository = "https://github.com/edgarrmondragon/tap-pomelo" documentation = "https://github.com/edgarrmondragon/tap-pomelo#readme" scripts."tap-pomelo" = "tap_pomelo.tap:TapPomelo.cli" -dependencies = {python = ">=3.8", singer-sdk = "~=0.34.0"} +dependencies = { python = ">=3.8", singer-sdk = "~=0.34.0" } [tool.poetry.dev-dependencies] -singer-sdk = { version = "*", extras = ["testing"] } +singer-sdk = { version = "*", extras = [ "testing" ] } [tool.ruff] -line-length = 88 target-version = "py38" -[tool.ruff.lint] -ignore = [ +line-length = 88 +lint.select = [ + "ALL", +] +lint.ignore = [ "ANN101", # missing-type-self - "DJ", # flake8-django + "DJ", # flake8-django ] -select = ["ALL"] - -[tool.ruff.lint.per-file-ignores] -"noxfile.py" = ["ANN"] -"tests/*" = [ +lint.per-file-ignores."noxfile.py" = [ + "ANN", +] +lint.per-file-ignores."tests/*" = [ "ANN201", # missing-return-type-public-function - "S101", # assert + "S101", # assert "SLF001", # private-member-access ] - -[tool.ruff.lint.isort] -known-first-party = ["tap_pomelo"] -required-imports = ["from __future__ import annotations"] - -[tool.ruff.lint.pydocstyle] -convention = "google" +lint.isort.known-first-party = [ "tap_pomelo" ] +lint.isort.required-imports = [ + "from __future__ import annotations", +] +lint.pydocstyle.convention = "google" [tool.pytest.ini_options] addopts = "-vvv" @@ -61,4 +60,4 @@ warn_unused_configs = true [[tool.mypy.overrides]] ignore_missing_imports = true -module = ["backoff.*"] +module = [ "backoff.*" ]