From c26d73036d6b043034bdbf34dc9c80d9c99e1b6b Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Mon, 19 Aug 2024 22:41:37 +0200 Subject: [PATCH] bump version --- .pre-commit-config.yaml | 6 +++--- src/backend/InvenTree/part/views.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c4d13efeef..42ec1e692a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: - id: check-yaml - id: mixed-line-ending - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.1 + rev: v0.6.1 hooks: - id: ruff-format args: [--preview] @@ -27,7 +27,7 @@ repos: --preview ] - repo: https://github.com/astral-sh/uv-pre-commit - rev: 0.2.13 + rev: 0.2.37 hooks: - id: pip-compile name: pip-compile requirements-dev.in @@ -77,7 +77,7 @@ repos: - "prettier@^2.4.1" - "@trivago/prettier-plugin-sort-imports" - repo: https://github.com/pre-commit/mirrors-eslint - rev: "v9.6.0" + rev: "v9.9.0" hooks: - id: eslint additional_dependencies: diff --git a/src/backend/InvenTree/part/views.py b/src/backend/InvenTree/part/views.py index 7acb92886b..6c11b48011 100644 --- a/src/backend/InvenTree/part/views.py +++ b/src/backend/InvenTree/part/views.py @@ -180,9 +180,9 @@ class PartImport(FileManagementFormView): if idx in self.file_manager.OPTIONAL_MATCH_HEADERS: try: - exact_match = self.allowed_items[idx].get(**{ - a: data for a in self.matches[idx] - }) + exact_match = self.allowed_items[idx].get( + **dict.fromkeys(self.matches[idx], data) + ) except ( ValueError, self.allowed_items[idx].model.DoesNotExist,