diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9a24695..03627a6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,12 +16,12 @@ repos: - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: "1.8.0" + rev: "2.1.3" hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.4.3" + rev: "v0.4.7" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix, --show-fixes] @@ -36,6 +36,6 @@ repos: - types-requests - repo: https://github.com/pre-commit/pre-commit - rev: v3.7.0 + rev: v3.7.1 hooks: - id: validate_manifest diff --git a/pyproject.toml b/pyproject.toml index ab1d4a6..f56a8a5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,9 @@ requires = [ name = "tap-betterstack" version = "0.0.0" description = "`tap-betterstack` is a Singer tap for Better Stack, built with the Meltano SDK for Singer Taps." -authors = ["Edgar Ramírez-Mondragón "] +authors = [ + "Edgar Ramírez-Mondragón ", +] keywords = [ "ELT", "singer.io", @@ -26,7 +28,9 @@ python = ">=3.8" singer-sdk = "~=0.37.0" [tool.poetry.group.dev.dependencies] -singer-sdk = {version = "*", extras = ["testing"]} +singer-sdk = { version = "*", extras = [ + "testing", +] } [tool.poetry.scripts] # CLI declaration @@ -48,40 +52,42 @@ style = "pep440" vcs = "git" [tool.ruff] -line-length = 88 -src = ["tap_betterstack", "tests"] target-version = "py38" -[tool.ruff.lint] -ignore = [ - "ANN101", # missing-type-self - "DJ", # flake8-django - "FIX002", # line-contains-todo - "COM812", # missing-trailing-comma - "ISC001", # single-line-implicit-string-concatenation +line-length = 88 +src = [ + "tap_betterstack", + "tests", ] -select = ["ALL"] -unfixable = [ - "ERA001", # commented-out-code +lint.select = [ + "ALL", ] - -[tool.ruff.lint.flake8-annotations] -allow-star-arg-any = true - -[tool.ruff.lint.per-file-ignores] -"noxfile.py" = ["ANN"] -"tests/*" = [ - "ANN201", # missing-return-type-public-function - "S101", # assert - "SLF001", # private-member-access +lint.ignore = [ + "ANN101", # missing-type-self + "COM812", # missing-trailing-comma + "DJ", # flake8-django + "FIX002", # line-contains-todo + "ISC001", # single-line-implicit-string-concatenation ] - -[tool.ruff.lint.isort] -known-first-party = ["tap_betterstack"] -required-imports = ["from __future__ import annotations"] - -[tool.ruff.lint.pydocstyle] -convention = "google" +lint.per-file-ignores."noxfile.py" = [ + "ANN", +] +lint.per-file-ignores."tests/*" = [ + "ANN201", # missing-return-type-public-function + "S101", # assert + "SLF001", # private-member-access +] +lint.unfixable = [ + "ERA001", # commented-out-code +] +lint.flake8-annotations.allow-star-arg-any = true +lint.isort.known-first-party = [ + "tap_betterstack", +] +lint.isort.required-imports = [ + "from __future__ import annotations", +] +lint.pydocstyle.convention = "google" [tool.pytest.ini_options] addopts = "-vvv" @@ -92,4 +98,6 @@ warn_unused_configs = true [[tool.mypy.overrides]] ignore_missing_imports = true -module = ["backoff.*"] +module = [ + "backoff.*", +]