diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9274ed8..13be74e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-json exclude: "\\.vscode/.*.json" @@ -16,23 +16,24 @@ repos: - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: "1.2.0" + rev: "1.3.0" hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.0.292" + rev: "v0.1.3" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix, --show-fixes] + - id: ruff-format - repo: https://github.com/psf/black - rev: "23.9.1" + rev: "23.10.1" hooks: - id: black - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.5.1 + rev: v1.6.1 hooks: - id: mypy pass_filenames: true @@ -40,6 +41,6 @@ repos: - types-requests - repo: https://github.com/pre-commit/pre-commit - rev: v3.4.0 + rev: v3.5.0 hooks: - id: validate_manifest diff --git a/poetry.lock b/poetry.lock index 5919c3f..a639766 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1233,5 +1233,5 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" -python-versions = "<3.12,>=3.8" -content-hash = "fb8de55d9ccba413f676f31365454789bc3b76546c318d9b2db719dcf93089fd" +python-versions = ">=3.8,<4" +content-hash = "a7249aeebcb885638b1e6fa72969b86ee95c9f58360a93c6d49bc5fd7e253403" diff --git a/pyproject.toml b/pyproject.toml index 179f329..590e37d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,7 @@ repository = "https://github.com/edgarrmondragon/tap-betterstack" documentation = "https://github.com/edgarrmondragon/tap-betterstack#readme" [tool.poetry.dependencies] -python = "<3.12,>=3.8" +python = ">=3.8,<4" singer-sdk = "~=0.33.0" [tool.poetry.group.dev.dependencies] @@ -33,23 +33,27 @@ singer-sdk = {version = "*", extras = ["testing"]} "tap-betterstack" = "tap_betterstack.tap:TapBetterStack.cli" [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 select = ["ALL"] -src = ["tap_betterstack", "tests"] -target-version = "py38" unfixable = [ "ERA001", # commented-out-code ] -[tool.ruff.flake8-annotations] +[tool.ruff.lint.flake8-annotations] allow-star-arg-any = true -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "noxfile.py" = ["ANN"] "tests/*" = [ "ANN201", # missing-return-type-public-function @@ -57,11 +61,11 @@ allow-star-arg-any = true "SLF001", # private-member-access ] -[tool.ruff.isort] +[tool.ruff.lint.isort] known-first-party = ["tap_betterstack"] required-imports = ["from __future__ import annotations"] -[tool.ruff.pydocstyle] +[tool.ruff.lint.pydocstyle] convention = "google" [tool.pytest.ini_options]