From 32d2f47ed1bf3f27fd46e1a54dd136688de9ab81 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 6 Jun 2023 04:21:31 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - https://github.com/asottile/reorder_python_imports → https://github.com/asottile/reorder-python-imports --- .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 22110a83..84d93cb1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ repos: hooks: - id: pyupgrade args: ["--py38-plus"] - - repo: https://github.com/asottile/reorder_python_imports + - repo: https://github.com/asottile/reorder-python-imports rev: v3.9.0 hooks: - id: reorder-python-imports From d614d6bf8c7b6db6f817648836f9044b13dc42b4 Mon Sep 17 00:00:00 2001 From: David Lord Date: Tue, 6 Jun 2023 09:30:34 -0700 Subject: [PATCH 2/2] ignore pytest ast warnings --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1fae1bcb..c0c7133f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,8 +54,8 @@ version = {attr = "flask.__version__"} testpaths = ["tests"] filterwarnings = [ "error", - # change in Python 3.12 alpha causes warning from inside pytest - "ignore:onerror argument:DeprecationWarning", + # change in Python 3.12 causes warning from inside pytest + "ignore:ast:DeprecationWarning", ] [tool.coverage.run]