From 631bd62eda5ec83896b1c76ce10bd3609724b4f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez-Mondrag=C3=B3n?= Date: Mon, 1 Jul 2024 08:20:20 -0600 Subject: [PATCH] chore: pre-commit autoupdate --- .pre-commit-config.yaml | 10 ++--- pyproject.toml | 86 ++++++++++++++++++++++++----------------- 2 files changed, 56 insertions(+), 40 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f6e7daf..cfc77ff 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.5.0 + rev: v4.6.0 hooks: - id: check-json exclude: "\\.vscode/.*.json" @@ -16,12 +16,12 @@ repos: - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: "1.7.0" + rev: "2.1.3" hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.15" + rev: "v0.5.0" hooks: - id: ruff name: Ruff lint @@ -30,12 +30,12 @@ repos: name: Ruff format - 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.4 + rev: 0.28.6 hooks: - id: check-dependabot - id: check-github-workflows diff --git a/pyproject.toml b/pyproject.toml index 5f36b69..34c094b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,8 +15,12 @@ keywords = [ "singer.io", ] license.file = "LICENSE" -maintainers = [{ name = "Edgar Ramírez-Mondragón", email = "edgarrmondragon@hey.com" }] -authors = [{ name = "Edgar Ramírez-Mondragón", email = "edgarrmondragon@hey.com" }] +maintainers = [ + { name = "Edgar Ramírez-Mondragón", email = "edgarrmondragon@hey.com" }, +] +authors = [ + { name = "Edgar Ramírez-Mondragón", email = "edgarrmondragon@hey.com" }, +] requires-python = ">=3.8" classifiers = [ "Programming Language :: Python :: 3 :: Only", @@ -56,7 +60,9 @@ console = "tap-hookdeck {args}" jsonl = "tap-hookdeck {args} > tap-hookdeck.jsonl" [tool.hatch.envs.test] -features = ["testing"] +features = [ + "testing", +] [tool.hatch.envs.test.scripts] integration = "pytest {args:tests}" dependencies = "deptry ." @@ -64,47 +70,55 @@ dependencies = "deptry ." [tool.hatch.envs.all] template = "test" [[tool.hatch.envs.all.matrix]] -python = ["3.8", "3.9", "3.10", "3.11", "3.12"] +python = [ + "3.8", + "3.9", + "3.10", + "3.11", + "3.12", +] [tool.hatch.envs.typing] -features = ["testing", "typing"] +features = [ + "testing", + "typing", +] [tool.hatch.envs.typing.scripts] check = "mypy --strict {args:tap_hookdeck tests}" [tool.ruff] line-length = 100 -[tool.ruff.lint] -ignore = [ - "ANN101", # missing-type-self - "DJ", # flake8-django - "PD", # pandas-vet - "FIX002", # line-contains-todo - "COM812", # missing-trailing-comma - "ISC001", # single-line-implicit-string-concatenation -] -select = ["ALL"] -unfixable = [ - "ERA001", # commented-out-code +lint.select = [ + "ALL", ] - -[tool.ruff.lint.flake8-annotations] -allow-star-arg-any = true - -[tool.ruff.lint.isort] -known-first-party = ["tap_hookdeck"] -required-imports = ["from __future__ import annotations"] - -[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 + "PD", # pandas-vet ] - -[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_hookdeck", +] +lint.isort.required-imports = [ + "from __future__ import annotations", +] +lint.pydocstyle.convention = "google" [tool.deptry.package_module_name_map] mypy = "mypy" @@ -130,4 +144,6 @@ warn_unused_ignores = true [[tool.mypy.overrides]] ignore_missing_imports = true -module = ["backoff.*"] +module = [ + "backoff.*", +]