mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-11-25 09:38:03 +01:00
update pre-commit
This commit is contained in:
parent
53753c7c7d
commit
2d3b62bf24
4 changed files with 6 additions and 6 deletions
|
@ -40,7 +40,7 @@ repos:
|
|||
hooks:
|
||||
- id: djhtml
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.1.9
|
||||
rev: v0.1.14
|
||||
hooks:
|
||||
- id: ruff
|
||||
args: [--fix]
|
||||
|
@ -56,10 +56,10 @@ repos:
|
|||
args: [--fix]
|
||||
types_or: [javascript, css]
|
||||
additional_dependencies:
|
||||
- eslint@8.36.0
|
||||
- eslint@8.56.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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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"])
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue