From c6a0fa7985493bf04ed7e8704cedf29e6ef4e231 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 22 May 2024 14:57:26 +0530 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#489) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/PyCQA/pylint: v3.1.0 → v3.2.2](https://github.com/PyCQA/pylint/compare/v3.1.0...v3.2.2) * Ignore false positive --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kiran Jonnalagadda --- .pre-commit-config.yaml | 2 +- src/baseframe/views.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9b83f66b..09c0b356 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -71,7 +71,7 @@ repos: - id: flake8 additional_dependencies: *flake8deps - repo: https://github.com/PyCQA/pylint - rev: v3.1.0 + rev: v3.2.2 hooks: - id: pylint args: [ diff --git a/src/baseframe/views.py b/src/baseframe/views.py index 51251d70..7c672952 100644 --- a/src/baseframe/views.py +++ b/src/baseframe/views.py @@ -91,6 +91,7 @@ def gen_assets_url(assets: list[str]) -> str: else: abort(400) + # pylint: disable=possibly-used-before-assignment bundle.env = current_app.assets # type: ignore[attr-defined] return bundle.urls()[0]