diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6d930aa..73dbcb2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,6 +26,7 @@ repos: hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix, --show-fixes] + - id: ruff-format - repo: https://github.com/psf/black rev: "23.10.1" diff --git a/poetry.lock b/poetry.lock index b410958..de983e2 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1234,4 +1234,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" python-versions = ">=3.8,<4," -content-hash = "49b391271b1300a2571a94b8390826150b052632b70807e20b5d476b4e7f7179" +content-hash = "27105b393fb84a4c86a33e00f8fca31af0fa7705b2834f438ba19cab8984ed2f" diff --git a/pyproject.toml b/pyproject.toml index e2ba656..f560954 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,8 +20,8 @@ python = ">=3.8,<4," singer-sdk = "~=0.33.0" [tool.poetry.group.dev.dependencies] -pytest = "^7.2.2" -singer-sdk = { version = ">=0.32,<0.34", extras = ["testing"] } +pytest = "~=7.4" +singer-sdk = { version = "~=0.33.0", extras = ["testing"] } [tool.pytest.ini_options] addopts = "-vvv" @@ -61,23 +61,27 @@ style = "pep440" vcs = "git" [tool.ruff] +line-length = 88 +src = ["tap_checkly", "tests"] +target-version = "py38" + +[tool.ruff.lint] ignore = [ "ANN101", # missing-type-self "DJ", # flake8-django + "COM812", # missing-trailing-comma + "ISC001", # single-line-implicit-string-concatenation ] -line-length = 88 select = ["ALL"] -src = ["tap_checkly", "tests"] -target-version = "py38" unfixable = [ "ERA001", # commented-out-code ] -[tool.ruff.isort] +[tool.ruff.lint.isort] known-first-party = ["tap_checkly"] required-imports = ["from __future__ import annotations"] -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "noxfile.py" = ["ANN", "INP001"] "tests/*" = [ "ANN201", # missing-return-type-public-function @@ -85,5 +89,5 @@ required-imports = ["from __future__ import annotations"] "SLF001", # private-member-access ] -[tool.ruff.pydocstyle] +[tool.ruff.lint.pydocstyle] convention = "google"