From 5be1c3ec4efb773d0330298621704e876afa7c16 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Aug 2024 23:55:45 +0000 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=F0=9F=AA=9D=20update=20pre-c?= =?UTF-8?q?ommit=20hooks=20(#675)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/sirosen/texthooks: 0.6.6 → 0.6.7](https://github.com/sirosen/texthooks/compare/0.6.6...0.6.7) - [github.com/astral-sh/ruff-pre-commit: v0.5.7 → v0.6.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.7...v0.6.1) --------- Signed-off-by: burgholzer Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: burgholzer --- .pre-commit-config.yaml | 6 ++---- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 91cd310f0..d64a56103 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,7 +43,7 @@ repos: # Handling unwanted unicode characters - repo: https://github.com/sirosen/texthooks - rev: 0.6.6 + rev: 0.6.7 hooks: - id: fix-ligatures - id: fix-smartquotes @@ -58,13 +58,11 @@ repos: # Python linting using ruff - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.7 + rev: v0.6.1 hooks: - id: ruff args: ["--fix", "--show-fixes"] - types_or: [python, pyi, jupyter] - id: ruff-format - types_or: [python, pyi, jupyter] # Static type checking using mypy - repo: https://github.com/pre-commit/mirrors-mypy diff --git a/pyproject.toml b/pyproject.toml index 30cc7ab1e..f92f92882 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -169,7 +169,6 @@ ignore_missing_imports = true [tool.ruff] line-length = 120 -src = ["src"] preview = true unsafe-fixes = true @@ -273,6 +272,7 @@ mch = "mch" ignore = [ "PC160", # "Uses codespell" -> switched to https://github.com/crate-ci/typos "PC180", # "Uses prettier" -> switched to different prettier-mirror that is not recognized by the check + "RF003", # "src directory specified if used" -> obsolete for new ruff versions ]