From a9e3907ed37fc0247cc3e6fb023f4788f39b3187 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 Jan 2024 20:32:15 +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: - [github.com/astral-sh/ruff-pre-commit: v0.1.9 → v0.1.13](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.9...v0.1.13) - [github.com/pre-commit/mirrors-eslint: v8.56.0 → v9.0.0-alpha.1](https://github.com/pre-commit/mirrors-eslint/compare/v8.56.0...v9.0.0-alpha.1) - [github.com/tox-dev/pyproject-fmt: 1.5.3 → 1.6.0](https://github.com/tox-dev/pyproject-fmt/compare/1.5.3...1.6.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7d1e3e8..6101773 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -40,7 +40,7 @@ repos: hooks: - id: djhtml - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.9 + rev: v0.1.13 hooks: - id: ruff args: [--fix] @@ -50,7 +50,7 @@ repos: - id: prettier types_or: [javascript, css] - repo: https://github.com/pre-commit/mirrors-eslint - rev: v8.56.0 + rev: v9.0.0-alpha.1 hooks: - id: eslint args: [--fix] @@ -59,7 +59,7 @@ repos: - eslint@8.36.0 - eslint-config-prettier@8.5.0 - repo: https://github.com/tox-dev/pyproject-fmt - rev: 1.5.3 + rev: 1.6.0 hooks: - id: pyproject-fmt - repo: https://github.com/jazzband/pip-tools From aa281161975db354adaa58f2c9b68deb75277502 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 Jan 2024 20:33:01 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/purchase/management/commands/clear_all_data.py | 2 +- src/purchase/management/commands/generate_dummy_baskets.py | 2 +- src/purchase/management/commands/refresh_cache.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/purchase/management/commands/clear_all_data.py b/src/purchase/management/commands/clear_all_data.py index 38b7b8a..e3c1857 100644 --- a/src/purchase/management/commands/clear_all_data.py +++ b/src/purchase/management/commands/clear_all_data.py @@ -11,7 +11,7 @@ from purchase.models import ( class Command(BaseCommand): - help = "Clear all data" # noqa: A003 + help = "Clear all data" def handle(self, *args, **options): # noqa: ARG002 self.delete(BasketItem) diff --git a/src/purchase/management/commands/generate_dummy_baskets.py b/src/purchase/management/commands/generate_dummy_baskets.py index c466037..fa0643d 100644 --- a/src/purchase/management/commands/generate_dummy_baskets.py +++ b/src/purchase/management/commands/generate_dummy_baskets.py @@ -11,7 +11,7 @@ from purchase.models import Basket, BasketItem, Cache, PaymentMethod, Product class Command(BaseCommand): - help = "Generates dummy baskets" # noqa: A003 + help = "Generates dummy baskets" def handle(self, *args, **options): # noqa: ARG002 call_command("loaddata", ["payment_methods", "products"]) diff --git a/src/purchase/management/commands/refresh_cache.py b/src/purchase/management/commands/refresh_cache.py index 2e9ecc2..218b234 100644 --- a/src/purchase/management/commands/refresh_cache.py +++ b/src/purchase/management/commands/refresh_cache.py @@ -4,7 +4,7 @@ from purchase.models import Cache class Command(BaseCommand): - help = "Refresh cache" # noqa: A003 + help = "Refresh cache" def handle(self, *args, **options): # noqa: ARG002 Cache.get_solo().refresh()