diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b664866..f43e976 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,19 @@ 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] - - - repo: https://github.com/psf/black - rev: "23.9.1" - hooks: - - id: black + - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.5.1 + rev: v1.6.1 hooks: - id: mypy pass_filenames: true diff --git a/pyproject.toml b/pyproject.toml index 8577169..dc49eab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,27 +34,26 @@ singer-sdk = { version = "==0.33.*", extras = ["testing"] } # CLI declaration tap-jotform = 'tap_jotform.tap:TapJotform.cli' -[tool.black] -line-length = 88 - [tool.ruff] -ignore = ["ANN101", "DJ", "PD"] line-length = 88 -select = ["ALL"] src = ["tap_jotform", "tests", "noxfile.py"] target-version = "py38" -[tool.ruff.flake8-annotations] +[tool.ruff.lint] +ignore = ["ANN101", "DJ", "PD", "COM812", "ISC001"] +select = ["ALL"] + +[tool.ruff.lint.flake8-annotations] allow-star-arg-any = true -[tool.ruff.isort] +[tool.ruff.lint.isort] known-first-party = ["tap_jotform"] -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "noxfile.py" = ["ANN"] "tests/*" = ["ANN"] -[tool.ruff.pydocstyle] +[tool.ruff.lint.pydocstyle] convention = "google" [tool.pytest.ini_options]