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.*" ]