From 90ba93a8267dcb749b5407476da0a4ce129ec582 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 May 2024 16:50:20 +0000 Subject: [PATCH 1/2] chore(deps): pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/tox-dev/pyproject-fmt: 2.0.4 → 2.1.1](https://github.com/tox-dev/pyproject-fmt/compare/2.0.4...2.1.1) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5f5c967..113f19e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: "2.0.4" + rev: "2.1.1" hooks: - id: pyproject-fmt From d4d25e86da85b289b64e6e658e0a745130d6d5b3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 May 2024 16:50:40 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes --- pyproject.toml | 88 +++++++++++++++++++++++++------------------------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a535059..e2a56f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,71 +34,71 @@ ruff = ">=0.2.1" tap-google-analytics = 'tap_google_analytics.tap:TapGoogleAnalytics.cli' [tool.ruff] -line-length = 100 target-version = "py38" -[tool.ruff.lint] -ignore = [ - "COM812", - "ISC001", -] -select = [ - "F", # Pyflakes - "W", # pycodestyle (warnings) - "E", # pycodestyle (errors) - "C90", # mccabe - "I", # isort - "N", # pep8-naming - "D", # pydocstyle - "UP", # pyupgrade - "YTT", # flake8-2020 - "S", # flake8-bandit - "BLE", # flake8-blind-except - "FBT", # flake8-boolean-trap - "B", # flake8-bugbear +line-length = 100 +lint.select = [ "A", # flake8-builtins - "COM", # flake8-commas + "ARG", # flake8-unused-arguments + "B", # flake8-bugbear + "BLE", # flake8-blind-except "C4", # flake8-comprehensions + "C90", # mccabe + "COM", # flake8-commas + "D", # pydocstyle "DTZ", # flake8-datetimez + "E", # pycodestyle (errors) + "ERA", # eradicate + "F", # Pyflakes "FA", # flake8-future-annotations - "ISC", # flake8-implicit-str-concat + "FBT", # flake8-boolean-trap + "FLY", # flynt + "FURB", # refurb "G", # flake8-logging-format + "I", # isort "INP", # flake8-no-pep420 + "ISC", # flake8-implicit-str-concat + "LOG", # flake8-logging + "N", # pep8-naming + "PERF", # perflint + "PGH", # pygrep-hooks "PIE", # flake8-pie - "T20", # flake8-print + "PL", # Pylint "PT", # flake8-pytest-style + "PTH", # flake8-use-pathlib "Q", # flake8-quotes - "RSE", # flake8-raise "RET", # flake8-return - "SLF", # flake8-self + "RSE", # flake8-raise + "RUF", # Ruff-specific rules + "S", # flake8-bandit "SIM", # flake8-simplify - "TID", # flake8-tidy-imports + "SLF", # flake8-self + "T20", # flake8-print "TCH", # flake8-type-checking - "ARG", # flake8-unused-arguments - "PTH", # flake8-use-pathlib - "ERA", # eradicate - "PGH", # pygrep-hooks - "PL", # Pylint + "TID", # flake8-tidy-imports "TRY", # tryceratops - "FLY", # flynt - "PERF", # perflint - "FURB", # refurb - "LOG", # flake8-logging - "RUF", # Ruff-specific rules + "UP", # pyupgrade + "W", # pycodestyle (warnings) + "YTT", # flake8-2020 +] +lint.per-file-ignores."tests/*" = [ + "S101", ] -unfixable = [ +lint.unfixable = [ "ERA", ] - -[tool.ruff.lint.isort] -required-imports = [ +lint.isort.required-imports = [ "from __future__ import annotations", ] +lint.pydocstyle.convention = "google" +lint.ignore = [ + "COM812", + "ISC001", +] + + [tool.ruff.lint.per-file-ignores] -"tests/*" = [ - "S101", -] + [tool.ruff.lint.pydocstyle] -convention = "google"