From ef0c6a845220ad8c68402b0f5ed25c8203aade27 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 08:15:51 -0700 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#204) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- pyproject.toml | 46 +++++++++++++++++++++++++++-------------- 2 files changed, 32 insertions(+), 18 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3c977c3..cd1fdb7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,12 +14,12 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "1.8.0" + rev: "2.0.3" hooks: - id: pyproject-fmt additional_dependencies: ["tox>=4.11.3"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.4.2" + rev: "v0.4.4" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/pyproject.toml b/pyproject.toml index 698e6f6..36ffcd6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,34 +59,46 @@ urls.Tracker = "https://github.com/tox-dev/tox-ini-fmt/issues" scripts.tox-ini-fmt = "tox_ini_fmt.__main__:run" [tool.hatch] -build.dev-mode-dirs = ["src"] +build.dev-mode-dirs = [ + "src", +] build.hooks.vcs.version-file = "src/tox_ini_fmt/version.py" -build.targets.sdist.include = ["/src", "/tests", "/tox.ini"] +build.targets.sdist.include = [ + "/src", + "/tests", + "/tox.ini", +] version.source = "vcs" [tool.black] line-length = 120 [tool.ruff] -select = ["ALL"] +select = [ + "ALL", +] line-length = 120 target-version = "py37" -isort = {known-first-party = ["tox_ini_fmt"], required-imports = ["from __future__ import annotations"]} +isort = { known-first-party = [ + "tox_ini_fmt", +], required-imports = [ + "from __future__ import annotations", +] } ignore = [ - "ANN101", # no typoe annotation for self - "ANN401", # allow Any as type annotation - "D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible - "D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible - "S104", # Possible binding to all interface + "ANN101", # no typoe annotation for self + "ANN401", # allow Any as type annotation + "D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible + "D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible + "S104", # Possible binding to all interface ] [tool.ruff.per-file-ignores] "tests/**/*.py" = [ - "S101", # asserts allowed in tests... - "FBT", # don"t care about booleans as positional arguments in tests - "INP001", # no implicit namespace - "D", # don"t care about documentation in tests - "S603", # `subprocess` call: check for execution of untrusted input - "PLR2004", # Magic value used in comparison, consider replacing with a constant variable + "S101", # asserts allowed in tests... + "FBT", # don"t care about booleans as positional arguments in tests + "INP001", # no implicit namespace + "D", # don"t care about documentation in tests + "S603", # `subprocess` call: check for execution of untrusted input + "PLR2004", # Magic value used in comparison, consider replacing with a constant variable ] [tool.coverage] @@ -102,7 +114,9 @@ paths.source = [ ] report.fail_under = 100 run.parallel = true -run.plugins = ["covdefaults"] +run.plugins = [ + "covdefaults", +] [tool.mypy] python_version = "3.11"